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

◆ SkipDtd()

void System.Xml.XmlTextReaderImpl.SkipDtd ( )
inlineprivate

Definition at line 6239 of file XmlTextReaderImpl.cs.

6240 {
6241 int colonPos;
6242 int charPos = ParseQName(out colonPos);
6243 _ps.charPos = charPos;
6244 EatWhitespaces(null);
6245 if (_ps.chars[_ps.charPos] == 'P')
6246 {
6247 while (_ps.charsUsed - _ps.charPos < 6)
6248 {
6249 if (ReadData() == 0)
6250 {
6252 }
6253 }
6254 if (!XmlConvert.StrEqual(_ps.chars, _ps.charPos, 6, "PUBLIC"))
6255 {
6256 ThrowUnexpectedToken("PUBLIC");
6257 }
6258 _ps.charPos += 6;
6259 if (EatWhitespaces(null) == 0)
6260 {
6262 }
6264 if (EatWhitespaces(null) == 0)
6265 {
6267 }
6269 EatWhitespaces(null);
6270 }
6271 else if (_ps.chars[_ps.charPos] == 'S')
6272 {
6273 while (_ps.charsUsed - _ps.charPos < 6)
6274 {
6275 if (ReadData() == 0)
6276 {
6278 }
6279 }
6280 if (!XmlConvert.StrEqual(_ps.chars, _ps.charPos, 6, "SYSTEM"))
6281 {
6282 ThrowUnexpectedToken("SYSTEM");
6283 }
6284 _ps.charPos += 6;
6285 if (EatWhitespaces(null) == 0)
6286 {
6288 }
6290 EatWhitespaces(null);
6291 }
6292 else if (_ps.chars[_ps.charPos] != '[' && _ps.chars[_ps.charPos] != '>')
6293 {
6295 }
6296 if (_ps.chars[_ps.charPos] == '[')
6297 {
6298 _ps.charPos++;
6300 EatWhitespaces(null);
6301 if (_ps.chars[_ps.charPos] != '>')
6302 {
6304 }
6305 }
6306 else if (_ps.chars[_ps.charPos] == '>')
6307 {
6308 _curNode.SetValue(string.Empty);
6309 }
6310 else
6311 {
6313 }
6314 _ps.charPos++;
6315 }
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
void SkipUntil(char stopChar, bool recognizeLiterals)
int EatWhitespaces(StringBuilder sb)
void Throw(int pos, string res, string arg)
void ThrowUnexpectedToken(int pos, string expectedToken)
int ParseQName(out int colonPos)

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.Xml.Dictionary, System.Xml.XmlTextReaderImpl.EatWhitespaces(), System.Xml.XmlTextReaderImpl.ParseQName(), System.Xml.XmlTextReaderImpl.ReadData(), System.Xml.XmlTextReaderImpl.NodeData.SetValue(), System.Xml.XmlTextReaderImpl.SkipPublicOrSystemIdLiteral(), System.Xml.XmlTextReaderImpl.SkipUntil(), 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.ParseDoctypeDecl().