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

◆ CheckNCName()

void System.Xml.XmlWellFormedWriter.CheckNCName ( string ncname)
inlineprivate

Definition at line 2935 of file XmlWellFormedWriter.cs.

2936 {
2937 int length = ncname.Length;
2938 if (XmlCharType.IsStartNCNameSingleChar(ncname[0]))
2939 {
2940 for (int i = 1; i < length; i++)
2941 {
2942 if (!XmlCharType.IsNCNameSingleChar(ncname[i]))
2943 {
2944 throw InvalidCharsException(ncname, i);
2945 }
2946 }
2947 return;
2948 }
2949 throw InvalidCharsException(ncname, 0);
2950 }
static Exception InvalidCharsException(string name, int badCharIndex)

References System.Xml.XmlWellFormedWriter.InvalidCharsException(), System.Xml.XmlCharType.IsNCNameSingleChar(), System.Xml.XmlCharType.IsStartNCNameSingleChar(), and System.length.

Referenced by System.Xml.XmlWellFormedWriter.WriteEntityRef(), System.Xml.XmlWellFormedWriter.WriteEntityRefAsync(), System.Xml.XmlWellFormedWriter.WriteProcessingInstruction(), System.Xml.XmlWellFormedWriter.WriteProcessingInstructionAsync(), System.Xml.XmlWellFormedWriter.WriteQualifiedName(), System.Xml.XmlWellFormedWriter.WriteQualifiedNameAsync(), System.Xml.XmlWellFormedWriter.WriteStartAttribute(), System.Xml.XmlWellFormedWriter.WriteStartAttributeAsync(), System.Xml.XmlWellFormedWriter.WriteStartAttributeAsync_NoAdvanceState(), System.Xml.XmlWellFormedWriter.WriteStartElement(), System.Xml.XmlWellFormedWriter.WriteStartElementAsync(), and System.Xml.XmlWellFormedWriter.WriteStartElementAsync_NoAdvanceState().