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

◆ EatPublicKeywordAsync()

async Task< bool > System.Xml.DtdParser.EatPublicKeywordAsync ( )
inlineprivate

Definition at line 5397 of file DtdParser.cs.

5398 {
5399 while (_charsUsed - _curPos < 6)
5400 {
5401 if (await ReadDataAsync().ConfigureAwait(continueOnCapturedContext: false) == 0)
5402 {
5403 return false;
5404 }
5405 }
5406 if (_chars[_curPos + 1] != 'U' || _chars[_curPos + 2] != 'B' || _chars[_curPos + 3] != 'L' || _chars[_curPos + 4] != 'I' || _chars[_curPos + 5] != 'C')
5407 {
5408 return false;
5409 }
5410 _curPos += 6;
5411 return true;
5412 }
async Task< int > ReadDataAsync()

References System.Xml.DtdParser._chars, System.Xml.DtdParser._charsUsed, System.Xml.DtdParser._curPos, and System.Xml.DtdParser.ReadDataAsync().

Referenced by System.Xml.DtdParser.ScanDoctype1Async(), System.Xml.DtdParser.ScanEntity2Async(), and System.Xml.DtdParser.ScanNotation1Async().