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

◆ SkipDtdAsync()

async Task System.Xml.XmlTextReaderImpl.SkipDtdAsync ( )
inlineprivate

Definition at line 12191 of file XmlTextReaderImpl.cs.

12192 {
12194 _ = tuple.Item1;
12195 int item = tuple.Item2;
12196 _ps.charPos = item;
12198 if (_ps.chars[_ps.charPos] == 'P')
12199 {
12200 while (_ps.charsUsed - _ps.charPos < 6)
12201 {
12202 if (await ReadDataAsync().ConfigureAwait(continueOnCapturedContext: false) == 0)
12203 {
12205 }
12206 }
12207 if (!XmlConvert.StrEqual(_ps.chars, _ps.charPos, 6, "PUBLIC"))
12208 {
12209 ThrowUnexpectedToken("PUBLIC");
12210 }
12211 _ps.charPos += 6;
12212 if (await EatWhitespacesAsync(null).ConfigureAwait(continueOnCapturedContext: false) == 0)
12213 {
12215 }
12217 if (await EatWhitespacesAsync(null).ConfigureAwait(continueOnCapturedContext: false) == 0)
12218 {
12220 }
12223 }
12224 else if (_ps.chars[_ps.charPos] == 'S')
12225 {
12226 while (_ps.charsUsed - _ps.charPos < 6)
12227 {
12228 if (await ReadDataAsync().ConfigureAwait(continueOnCapturedContext: false) == 0)
12229 {
12231 }
12232 }
12233 if (!XmlConvert.StrEqual(_ps.chars, _ps.charPos, 6, "SYSTEM"))
12234 {
12235 ThrowUnexpectedToken("SYSTEM");
12236 }
12237 _ps.charPos += 6;
12238 if (await EatWhitespacesAsync(null).ConfigureAwait(continueOnCapturedContext: false) == 0)
12239 {
12241 }
12244 }
12245 else if (_ps.chars[_ps.charPos] != '[' && _ps.chars[_ps.charPos] != '>')
12246 {
12248 }
12249 if (_ps.chars[_ps.charPos] == '[')
12250 {
12251 _ps.charPos++;
12254 if (_ps.chars[_ps.charPos] != '>')
12255 {
12257 }
12258 }
12259 else if (_ps.chars[_ps.charPos] == '>')
12260 {
12261 _curNode.SetValue(string.Empty);
12262 }
12263 else
12264 {
12266 }
12267 _ps.charPos++;
12268 }
static string Xml_UnexpectedEOF1
Definition SR.cs:38
static string Xml_ExpectSubOrClose
Definition SR.cs:270
static string Xml_ExpectExternalOrClose
Definition SR.cs:76
Definition SR.cs:7
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
async Task SkipUntilAsync(char stopChar, bool recognizeLiterals)
async Task< int > EatWhitespacesAsync(StringBuilder sb)
void Throw(int pos, string res, string arg)
void ThrowUnexpectedToken(int pos, string expectedToken)

References System.Xml.XmlTextReaderImpl._curNode, System.Xml.XmlTextReaderImpl._ps, System.Xml.XmlTextReaderImpl.ParsingState.charPos, System.Xml.XmlTextReaderImpl.ParsingState.chars, System.Xml.XmlTextReaderImpl.ParsingState.charsUsed, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.Dictionary, System.Xml.XmlTextReaderImpl.EatWhitespacesAsync(), System.Xml.XmlTextReaderImpl.int, System.item, System.Xml.XmlTextReaderImpl.ParseQNameAsync(), System.Xml.XmlTextReaderImpl.ReadDataAsync(), System.Xml.XmlTextReaderImpl.NodeData.SetValue(), System.Xml.XmlTextReaderImpl.SkipPublicOrSystemIdLiteralAsync(), System.Xml.XmlTextReaderImpl.SkipUntilAsync(), System.Xml.XmlConvert.StrEqual(), System.Xml.XmlTextReaderImpl.Throw(), System.Xml.XmlTextReaderImpl.ThrowExpectingWhitespace(), System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(), System.SR.Xml_ExpectExternalOrClose, System.SR.Xml_ExpectSubOrClose, and System.SR.Xml_UnexpectedEOF1.

Referenced by System.Xml.XmlTextReaderImpl.ParseDoctypeDeclAsync().