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

◆ ScanNmtokenAsync()

async Task System.Xml.DtdParser.ScanNmtokenAsync ( )
inlineprivate

Definition at line 5361 of file DtdParser.cs.

5362 {
5364 int len;
5365 while (true)
5366 {
5367 if (XmlCharType.IsNCNameSingleChar(_chars[_curPos]) || _chars[_curPos] == ':')
5368 {
5369 _curPos++;
5370 continue;
5371 }
5372 if (_curPos < _charsUsed)
5373 {
5374 if (_curPos - _tokenStartPos == 0)
5375 {
5377 }
5378 return;
5379 }
5382 if (await ReadDataAsync().ConfigureAwait(continueOnCapturedContext: false) == 0)
5383 {
5384 if (len > 0)
5385 {
5386 break;
5387 }
5389 }
5391 _curPos += len;
5392 }
5394 _curPos += len;
5395 }
static string Xml_BadNameChar
Definition SR.cs:44
static string Xml_UnexpectedEOF
Definition SR.cs:36
Definition SR.cs:7
async Task< int > ReadDataAsync()
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.len, System.Xml.DtdParser.ReadDataAsync(), System.Xml.DtdParser.Throw(), System.SR.Xml_BadNameChar, and System.SR.Xml_UnexpectedEOF.

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