terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ GetToken()

DtdParser.Token System.Xml.DtdParser.GetToken ( bool needWhiteSpace)
inlineprivate

Definition at line 538 of file DtdParser.cs.

539 {
540 for (;;)
541 {
542 int num = 1;
543 int num2 = 1;
544 char[] array = this.chars;
545 int num3 = this.curPos;
546 if (num != 0)
547 {
548 break;
549 }
550 int num4 = this.charsUsed;
551 IDtdParserAdapter dtdParserAdapter = this.readerAdapter;
552 this.whitespaceSeen = num2 != 0;
554 if (scanningFunction != DtdParser.ScanningFunction.SubsetContent)
555 {
556 int num5 = this.charsUsed;
557 IDtdParserAdapter dtdParserAdapter2 = this.readerAdapter;
558 if (scanningFunction != DtdParser.ScanningFunction.SubsetContent)
559 {
560 }
561 if (scanningFunction != DtdParser.ScanningFunction.SubsetContent)
562 {
563 }
564 int num6 = this.curPos;
565 char[] array2 = this.chars;
566 IDtdParserAdapter dtdParserAdapter3 = this.readerAdapter;
568 if (scanningFunction != DtdParser.ScanningFunction.SubsetContent)
569 {
570 }
571 }
572 IDtdParserAdapter dtdParserAdapter4 = this.readerAdapter;
573 if (scanningFunction != DtdParser.ScanningFunction.SubsetContent)
574 {
575 }
576 if (this.ReadData() == 0)
577 {
578 goto Block_2;
579 }
580 }
581 return "'{0}' is an unexpected token. Expecting white space.";
582 Block_2:
583 long num7 = 0L;
584 bool flag = this.HandleEntityEnd(num7 != 0L);
585 if (this.scanningFunction != DtdParser.ScanningFunction.SubsetContent)
586 {
587 int num8 = this.curPos;
588 this.Throw(num8, "Incomplete DTD content.");
589 if (!this.whitespaceSeen)
590 {
592 int num9 = this.curPos;
593 string text;
594 this.Throw(num9, "'{0}' is an unexpected token. Expecting white space.", text);
595 }
596 int num10 = this.curPos;
598 int num11 = 1;
601 this.whitespaceSeen = num11 != 0;
603 return this.ScanSubsetContent();
604 }
605 long num12 = 0L;
606 this.ScanQName(num12 != 0L);
608 bool flag2 = this.supportNamespaces;
609 this.ScanQName(flag2);
611 this.ScanNmtoken();
614 return this.ScanDoctype1();
615 }
class f__AnonymousType0<< Count > j__TPar
DtdParser.Token ScanDoctype1()
Definition DtdParser.cs:655
IDtdParserAdapter readerAdapter
DtdParser.ScanningFunction scanningFunction
void Throw(int curPos, string res)
bool HandleEntityEnd(bool inLiteral)
DtdParser.ScanningFunction nextScaningFunction
DtdParser.ScanningFunction savedScanningFunction
DtdParser.Token ScanSubsetContent()
Definition DtdParser.cs:618

References System.array, System.Xml.DtdParser.chars, System.Xml.DtdParser.charsUsed, System.Xml.DtdParser.curPos, System.Xml.DtdParser.HandleEntityEnd(), j__TPar, System.L, System.Xml.DtdParser.nextScaningFunction, System.Xml.DtdParser.ReadData(), System.Xml.DtdParser.readerAdapter, System.Xml.DtdParser.savedScanningFunction, System.Xml.DtdParser.ScanDoctype1(), System.Xml.DtdParser.scanningFunction, System.Xml.DtdParser.ScanNmtoken(), System.Xml.DtdParser.ScanQName(), System.Xml.DtdParser.ScanSubsetContent(), System.Xml.DtdParser.supportNamespaces, System.text, System.Xml.DtdParser.Throw(), and System.Xml.DtdParser.whitespaceSeen.

Referenced by System.Xml.DtdParser.ParseAttlistDecl(), System.Xml.DtdParser.ParseAttlistDefault(), System.Xml.DtdParser.ParseAttlistType(), System.Xml.DtdParser.ParseCondSection(), System.Xml.DtdParser.ParseElementDecl(), System.Xml.DtdParser.ParseElementMixedContent(), System.Xml.DtdParser.ParseExternalId(), System.Xml.DtdParser.ParseHowMany(), System.Xml.DtdParser.ParseInDocumentDtd(), and System.Xml.DtdParser.ParseNotationDecl().