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

◆ ParseNCNameInternal()

static bool System.Xml.ValidateNames.ParseNCNameInternal ( string s,
bool throwOnError )
inlinestaticprivate

Definition at line 98 of file ValidateNames.cs.

99 {
100 int num = ParseNCName(s, 0);
101 if (num == 0 || num != s.Length)
102 {
103 if (throwOnError)
104 {
105 ThrowInvalidName(s, 0, num);
106 }
107 return false;
108 }
109 return true;
110 }
static void ThrowInvalidName(string s, int offsetStartChar, int offsetBadChar)
static int ParseNCName(string s, int offset)

References System.Xml.Dictionary, System.Xml.ValidateNames.ParseNCName(), System.s, and System.Xml.ValidateNames.ThrowInvalidName().

Referenced by System.Xml.ValidateNames.ParseNCNameThrow(), and System.Xml.ValidateNames.ValidateNameInternal().