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

◆ ParseNameNoNamespaces()

static int System.Xml.ValidateNames.ParseNameNoNamespaces ( string s,
int offset )
inlinestaticpackage

Definition at line 45 of file ValidateNames.cs.

46 {
47 int i = offset;
48 if (i < s.Length)
49 {
50 if (!XmlCharType.IsStartNCNameSingleChar(s[i]) && s[i] != ':')
51 {
52 return 0;
53 }
54 for (i++; i < s.Length && (XmlCharType.IsNCNameSingleChar(s[i]) || s[i] == ':'); i++)
55 {
56 }
57 }
58 return i - offset;
59 }

References System.Xml.Dictionary, System.Xml.XmlCharType.IsNCNameSingleChar(), System.Xml.XmlCharType.IsStartNCNameSingleChar(), System.offset, and System.s.

Referenced by System.Xml.ValidateNames.IsNameNoNamespaces(), System.Xml.XmlConvert.TryVerifyName(), and System.Xml.XmlConvert.VerifyName().