Definition at line 114 of file XmlCollation.cs.
115 {
116 if (
collationLiteral ==
"http://www.w3.org/2004/10/xpath-functions/collation/codepoint")
117 {
119 }
121 Options
options =
default(Options);
122 Uri result;
124 {
126 }
128 {
129 return null;
130 }
132 if (
components ==
"http://collations.microsoft.com")
133 {
134 string text = result.LocalPath.Substring(1);
135 if (
text.Length != 0)
136 {
137 try
138 {
140 }
142 {
144 {
145 return null;
146 }
148 }
149 }
150 }
151 else
152 {
153 if (!result.IsBaseOf(new Uri("http://www.w3.org/2004/10/xpath-functions/collation/codepoint")))
154 {
156 {
157 return null;
158 }
160 }
162 }
163 string query = result.Query;
165 if (
query.Length != 0)
166 {
167 string[]
array =
query.Substring(1).Split(
'&');
169 {
172 {
174 {
175 return null;
176 }
178 }
182 {
184 continue;
185 }
186 int flag;
188 {
189 case "IGNORECASE":
190 flag = 1;
191 break;
192 case "IGNORENONSPACE":
193 flag = 2;
194 break;
195 case "IGNORESYMBOLS":
196 flag = 4;
197 break;
198 case "IGNOREKANATYPE":
199 flag = 8;
200 break;
201 case "IGNOREWIDTH":
202 flag = 16;
203 break;
204 case "UPPERFIRST":
205 flag = 4096;
206 break;
207 case "EMPTYGREATEST":
208 flag = 8192;
209 break;
210 case "DESCENDINGORDER":
211 flag = 16384;
212 break;
213 default:
215 {
216 return null;
217 }
219 }
221 {
222 case "0":
223 case "FALSE":
225 continue;
226 case "1":
227 case "TRUE":
229 continue;
230 }
232 {
233 return null;
234 }
236 }
237 }
239 {
241 }
243 {
246 }
248 {
251 {
252 case "bopo":
253 if (name == "zh-TW")
254 {
256 }
257 break;
258 case "strk":
259 switch (name)
260 {
261 case "zh-CN":
262 case "zh-HK":
263 case "zh-SG":
264 case "zh-MO":
266 break;
267 }
268 break;
269 case "uni":
270 if (name == "ja-JP" || name == "ko-KR")
271 {
273 }
274 break;
275 case "phn":
276 if (name == "de-DE")
277 {
279 }
280 break;
281 case "tech":
282 if (name == "hu-HU")
283 {
285 }
286 break;
287 case "mod":
288 if (name == "ka-GE")
289 {
291 }
292 break;
293 default:
295 {
296 return null;
297 }
299 case "pron":
300 case "dict":
301 case "trad":
302 break;
303 }
304 }
306 }
static string Coll_UnsupportedOpt
static string Coll_UnsupportedOptVal
static string Coll_Unsupported
static string Coll_UnsupportedLanguage
static string Coll_UnsupportedSortOpt
static string Coll_BadOptFormat
static XmlCollation CodePointCollation
XmlCollation(CultureInfo cultureInfo, Options options)
References System.Xml.Xsl.Runtime.XmlCollation.XmlCollation(), System.array, System.Xml.Xsl.Runtime.XmlCollation.CodePointCollation, System.SR.Coll_BadOptFormat, System.SR.Coll_Unsupported, System.SR.Coll_UnsupportedLanguage, System.SR.Coll_UnsupportedOpt, System.SR.Coll_UnsupportedOptVal, System.SR.Coll_UnsupportedSortOpt, System.Xml.Dictionary, System.Uri.GetComponents(), System.Uri.IsBaseOf(), System.Uri.LocalPath, System.options, System.Uri.Query, System.text, System.Uri.TryCreate(), and System.value.