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

◆ SplitQName()

static void System.Xml.ValidateNames.SplitQName ( string name,
out string prefix,
out string lname )
inlinestaticpackage

Definition at line 431 of file ValidateNames.cs.

432 {
433 int num = name.IndexOf(':');
434 if (-1 == num)
435 {
436 prefix = string.Empty;
437 lname = name;
438 return;
439 }
440 if (num == 0 || name.Length - 1 == num)
441 {
443 object[] args = XmlException.BuildCharExceptionArgs(':', '\0');
445 }
446 prefix = name.Substring(0, num);
447 num++;
448 lname = name.Substring(num, name.Length - num);
449 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Xml_BadNameChar
Definition SR.cs:44
Definition SR.cs:7

References System.Xml.ArgumentException, System.Xml.XmlException.BuildCharExceptionArgs(), System.Xml.Dictionary, System.SR.Format(), System.prefix, and System.SR.Xml_BadNameChar.

Referenced by System.Xml.XPath.XPathNavigatorReader.GetAttribute(), System.Xml.XsdValidatingReader.GetAttributePSVI(), System.Xml.XsdValidatingReader.GetDefaultAttribute(), System.Xml.XmlSqlBinaryReader.LocateAttribute(), and System.Xml.XPath.XPathNavigatorReader.MoveToAttribute().