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

◆ IsProcessingInstructionName()

static bool System.Xml.Xsl.XsltOld.ProcessingInstructionAction.IsProcessingInstructionName ( string name)
inlinestaticpackage

Definition at line 96 of file ProcessingInstructionAction.cs.

97 {
98 if (name == null)
99 {
100 return false;
101 }
102 int length = name.Length;
103 int i;
104 for (i = 0; i < length && XmlCharType.IsWhiteSpace(name[i]); i++)
105 {
106 }
107 if (i >= length)
108 {
109 return false;
110 }
111 int num = ValidateNames.ParseNCName(name, i);
112 if (num == 0)
113 {
114 return false;
115 }
116 for (i += num; i < length && XmlCharType.IsWhiteSpace(name[i]); i++)
117 {
118 }
119 if (i < length)
120 {
121 return false;
122 }
123 if (length == 3 && (name[0] == 'X' || name[0] == 'x') && (name[1] == 'M' || name[1] == 'm') && (name[2] == 'L' || name[2] == 'l'))
124 {
125 return false;
126 }
127 return true;
128 }

References System.Xml.XmlCharType.IsWhiteSpace(), System.length, and System.Xml.ValidateNames.ParseNCName().

Referenced by System.Xml.Xsl.XsltOld.ProcessingInstructionAction.Compile(), and System.Xml.Xsl.XsltOld.ProcessingInstructionAction.Execute().