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

◆ ParseEntityNameAsync()

async Task< string > System.Xml.XmlTextReaderImpl.ParseEntityNameAsync ( )
inlineprivate

Definition at line 12663 of file XmlTextReaderImpl.cs.

12664 {
12665 int num;
12666 try
12667 {
12668 num = await ParseNameAsync().ConfigureAwait(continueOnCapturedContext: false);
12669 }
12670 catch (XmlException)
12671 {
12673 return null;
12674 }
12675 if (_ps.chars[num] != ';')
12676 {
12678 }
12679 string result = _nameTable.Add(_ps.chars, _ps.charPos, num - _ps.charPos);
12680 _ps.charPos = num + 1;
12681 return result;
12682 }
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.ParseNameAsync(), System.Xml.XmlTextReaderImpl.Throw(), and System.SR.Xml_ErrorParsingEntityName.

Referenced by System.Xml.XmlTextReaderImpl.ParseAttributeValueSlowAsync(), and System.Xml.XmlTextReaderImpl.ParseEntityReferenceAsync().