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

◆ ParseSubset()

void System.Xml.DtdParser.ParseSubset ( )
inlineprivate

Definition at line 451 of file DtdParser.cs.

452 {
453 while (true)
454 {
455 Token token = GetToken(needWhiteSpace: false);
457 switch (token)
458 {
459 case Token.AttlistDecl:
461 break;
462 case Token.ElementDecl:
464 break;
465 case Token.EntityDecl:
467 break;
468 case Token.NotationDecl:
470 break;
471 case Token.Comment:
472 ParseComment();
473 break;
474 case Token.PI:
475 ParsePI();
476 break;
477 case Token.CondSectionStart:
479 {
481 }
484 break;
485 case Token.CondSectionEnd:
486 if (_condSectionDepth > 0)
487 {
490 {
492 }
493 }
494 else
495 {
497 }
498 break;
499 case Token.RightBracket:
501 {
502 if (_condSectionDepth != 0)
503 {
505 }
506 if (_internalSubsetValueSb != null)
507 {
511 }
513 {
515 }
516 }
517 else
518 {
520 }
521 return;
522 case Token.Eof:
524 {
526 }
527 if (_condSectionDepth != 0)
528 {
530 }
531 return;
532 }
534 {
535 if (_validate)
536 {
538 }
539 else if (!_v1Compat)
540 {
542 }
543 }
544 }
545 }
static string Xml_ExpectDtdMarkup
Definition SR.cs:244
static string Xml_InvalidConditionalSection
Definition SR.cs:238
static string Xml_IncompleteDtdContent
Definition SR.cs:246
static string Xml_UnexpectedCDataEnd
Definition SR.cs:240
static string Sch_ParEntityRefNesting
Definition SR.cs:392
static string Xml_UnclosedConditionalSection
Definition SR.cs:242
Definition SR.cs:7
override string ToString()
void SendValidationEvent(int pos, XmlSeverityType severity, string code, string arg)
void Throw(int curPos, string res)
Token GetToken(bool needWhiteSpace)
void ThrowUnexpectedToken(int pos, string expectedToken)
StringBuilder _internalSubsetValueSb
Definition DtdParser.cs:178

References System.Xml.DtdParser._condSectionDepth, System.Xml.DtdParser._condSectionEntityIds, System.Xml.DtdParser._curPos, System.Xml.DtdParser._currentEntityId, System.Xml.DtdParser._freeFloatingDtd, System.Xml.DtdParser._internalSubsetValueSb, System.Xml.DtdParser._v1Compat, System.Xml.DtdParser._validate, System.Xml.Dictionary, System.Xml.DtdParser.GetToken(), System.Xml.DtdParser.ParseAttlistDecl(), System.Xml.DtdParser.ParseComment(), System.Xml.DtdParser.ParseCondSection(), System.Xml.DtdParser.ParseElementDecl(), System.Xml.DtdParser.ParseEntityDecl(), System.Xml.DtdParser.ParseNotationDecl(), System.Xml.DtdParser.ParsePI(), System.Xml.DtdParser.ParsingInternalSubset, System.Xml.DtdParser.SaveParsingBuffer(), System.SR.Sch_ParEntityRefNesting, System.Xml.DtdParser.SendValidationEvent(), System.Xml.DtdParser.Throw(), System.Xml.DtdParser.ThrowUnexpectedToken(), System.Text.StringBuilder.ToString(), System.SR.Xml_ExpectDtdMarkup, System.SR.Xml_IncompleteDtdContent, System.SR.Xml_InvalidConditionalSection, System.SR.Xml_UnclosedConditionalSection, and System.SR.Xml_UnexpectedCDataEnd.

Referenced by System.Xml.DtdParser.ParseExternalSubset(), and System.Xml.DtdParser.ParseInternalSubset().