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

◆ ScanNmtoken()

void System.Xml.DtdParser.ScanNmtoken ( )
inlineprivate

Definition at line 2733 of file DtdParser.cs.

2734 {
2736 int num;
2737 while (true)
2738 {
2739 if (XmlCharType.IsNCNameSingleChar(_chars[_curPos]) || _chars[_curPos] == ':')
2740 {
2741 _curPos++;
2742 continue;
2743 }
2744 if (_curPos < _charsUsed)
2745 {
2746 if (_curPos - _tokenStartPos == 0)
2747 {
2749 }
2750 return;
2751 }
2752 num = _curPos - _tokenStartPos;
2754 if (ReadData() == 0)
2755 {
2756 if (num > 0)
2757 {
2758 break;
2759 }
2761 }
2763 _curPos += num;
2764 }
2766 _curPos += num;
2767 }
static string Xml_BadNameChar
Definition SR.cs:44
static string Xml_UnexpectedEOF
Definition SR.cs:36
Definition SR.cs:7
void Throw(int curPos, string res)

References System.Xml.DtdParser._chars, System.Xml.DtdParser._charsUsed, System.Xml.DtdParser._curPos, System.Xml.DtdParser._tokenStartPos, System.Xml.XmlException.BuildCharExceptionArgs(), System.Xml.XmlCharType.IsNCNameSingleChar(), System.Xml.DtdParser.ReadData(), System.Xml.DtdParser.Throw(), System.SR.Xml_BadNameChar, and System.SR.Xml_UnexpectedEOF.

Referenced by System.Xml.DtdParser.ScanNmtokenExpected().