@@ -5,10 +5,7 @@ URI path scanf
55.. image :: https://travis-ci.com/DmitryFillo/UriPathScanf.svg?branch=master
66 :target: https://travis-ci.com/DmitryFillo/UriPathScanf
77
8- TBD: scan -> scanAll; scanDict -> scan; tryCast -> tryCastToDict
9- TBD: nuget pkg rc
10- TBD: logo
11- TBD: nuget pkg release
8+ TBD: nuget pkg rc, logo, nuget pkg release
129
1310Reversed String.Format for URI path.
1411
@@ -43,13 +40,13 @@ Usage
4340 var uriPathScanf = new UriPathScanf (descriptors );
4441
4542 // scan some URI path
46- var result = uriPathScanf .ScanDict (" /path/some/xxx?a=1" );
43+ var result = uriPathScanf .Scan (" /path/some/xxx?a=1" );
4744
4845 // result.UriType == "firstType"
4946 // result.Meta is Dictionary<string, string> with "varOne" == "xxx" and "qs__a" = "1"
5047
5148 // scan some URI path
52- result = uriPathScanf .ScanDict (" /path/some/xxx/123y////?a=1" );
49+ result = uriPathScanf .Scan (" /path/some/xxx/123y////?a=1" );
5350
5451 // result.UriType == "secondType"
5552 // result.Meta is Dictionary<string, string> with "someVar" == "xxx", "someVar2" == "123y" and "qs__a" = "1"
@@ -138,7 +135,7 @@ Diffrenently typed descriptors:
138135 // result.UriType == "secondType"
139136 // result.Meta.X == null
140137
141- result = uriPathScanf .Scan (" /some/path/x=x" );
138+ result = uriPathScanf .ScanAll (" /some/path/x=x" );
142139
143140 // result.UriType == "secondType"
144141 // result.Meta is object
@@ -177,7 +174,7 @@ Typed and non-typed descriptors:
177174
178175 var uriPathScanf = new UriPathScanf (descriptors );
179176
180- var result = uriPathScanf .Scan (" /path/some/1/2" );
177+ var result = uriPathScanf .ScanAll (" /path/some/1/2" );
181178
182179 // result.UriType == "someType"
183180 // result.Meta is object
@@ -193,16 +190,16 @@ Typed and non-typed descriptors:
193190 // resultCastedToMeta.SomeVar = "1"
194191 // resultCastedToMeta.SomeVar2 = "2"
195192
196- result .TryCast (out var resultCastedToDict )
193+ result .TryCastToDict (out var resultCastedToDict )
197194
198195 // resultCastedToDict == null
199196
200- result = uriPathScanf .Scan (" /some/path/?x=3&m=n" );
197+ result = uriPathScanf .ScanAll (" /some/path/?x=3&m=n" );
201198
202199 // result.UriType == "someType"
203200 // result.Meta is object
204201
205- result .TryCast (out resultCastedToDict )
202+ result .TryCastToDict (out resultCastedToDict )
206203
207204 // resultCastedToDict is Dictionary<string, string> with keys "qs__x" and "qs__m"
208205
0 commit comments