Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TryVerifyTOKEN()

static Exception System.Xml.XmlConvert.TryVerifyTOKEN ( string token)
inlinestaticpackage

Definition at line 376 of file XmlConvert.cs.

377 {
378 if (token == null || token.Length == 0)
379 {
380 return null;
381 }
382 if (token[0] == ' ' || token[token.Length - 1] == ' ' || token.IndexOfAny(crt) != -1 || token.IndexOf(" ", StringComparison.Ordinal) != -1)
383 {
384 return new XmlException(System.SR.Sch_NotTokenString, token);
385 }
386 return null;
387 }
static string Sch_NotTokenString
Definition SR.cs:394
Definition SR.cs:7
static char[] crt
Definition XmlConvert.cs:14

References System.Xml.XmlConvert.crt, System.SR.Sch_NotTokenString, and System.Xml.XmlException.

Referenced by System.Xml.Schema.StringFacetsChecker.CheckBuiltInFacets().