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

◆ VerifyTOKEN()

static ? string System.Xml.XmlConvert.VerifyTOKEN ( string? token)
inlinestatic

Definition at line 363 of file XmlConvert.cs.

364 {
365 if (string.IsNullOrEmpty(token))
366 {
367 return token;
368 }
369 if (token[0] == ' ' || token[token.Length - 1] == ' ' || token.IndexOfAny(crt) != -1 || token.IndexOf(" ", StringComparison.Ordinal) != -1)
370 {
371 throw new XmlException(System.SR.Sch_NotTokenString, token);
372 }
373 return token;
374 }
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.SchemaCollectionPreprocessor.Preprocess(), and System.Xml.Schema.Preprocessor.PreprocessNotation().