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

◆ ParseUnexpectedToken() [1/2]

string System.Xml.XmlTextReaderImpl.ParseUnexpectedToken ( )
inlineprivate

Definition at line 7899 of file XmlTextReaderImpl.cs.

7900 {
7901 if (_ps.charPos == _ps.charsUsed)
7902 {
7903 return null;
7904 }
7905 if (XmlCharType.IsNCNameSingleChar(_ps.chars[_ps.charPos]))
7906 {
7907 int i;
7908 for (i = _ps.charPos + 1; XmlCharType.IsNCNameSingleChar(_ps.chars[i]); i++)
7909 {
7910 }
7911 return new string(_ps.chars, _ps.charPos, i - _ps.charPos);
7912 }
7913 return new string(_ps.chars, _ps.charPos, 1);
7914 }

References System.Xml.XmlTextReaderImpl._ps, System.Xml.XmlTextReaderImpl.ParsingState.charPos, System.Xml.XmlTextReaderImpl.ParsingState.chars, System.Xml.XmlTextReaderImpl.ParsingState.charsUsed, and System.Xml.XmlCharType.IsNCNameSingleChar().

Referenced by System.Xml.XmlTextReaderImpl.ParseDocumentContent(), System.Xml.XmlTextReaderImpl.ParseDocumentContentAsync(), System.Xml.XmlTextReaderImpl.ParseElementContent(), System.Xml.XmlTextReaderImpl.ParseElementContentAsync(), System.Xml.XmlTextReaderImpl.ParseUnexpectedToken(), System.Xml.XmlTextReaderImpl.ThrowExpectingWhitespace(), and System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken().