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

◆ ParseEntityName()

string System.Xml.XmlTextReaderImpl.ParseEntityName ( )
inlineprivate

Definition at line 6912 of file XmlTextReaderImpl.cs.

6913 {
6914 int num;
6915 try
6916 {
6917 num = ParseName();
6918 }
6919 catch (XmlException)
6920 {
6922 return null;
6923 }
6924 if (_ps.chars[num] != ';')
6925 {
6927 }
6928 string result = _nameTable.Add(_ps.chars, _ps.charPos, num - _ps.charPos);
6929 _ps.charPos = num + 1;
6930 return result;
6931 }
static string Xml_ErrorParsingEntityName
Definition SR.cs:136
Definition SR.cs:7
string Add(char[] array, int offset, int length)
void Throw(int pos, string res, string arg)

References System.Xml.XmlTextReaderImpl._nameTable, System.Xml.XmlTextReaderImpl._ps, System.Xml.XmlNameTable.Add(), System.Xml.XmlTextReaderImpl.ParsingState.charPos, System.Xml.XmlTextReaderImpl.ParsingState.chars, System.Xml.Dictionary, System.Xml.XmlTextReaderImpl.ParseName(), System.Xml.XmlTextReaderImpl.Throw(), and System.SR.Xml_ErrorParsingEntityName.

Referenced by System.Xml.XmlTextReaderImpl.ParseAttributeValueChunk(), System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(), and System.Xml.XmlTextReaderImpl.ParseEntityReference().