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

◆ AddAttribute() [1/2]

NodeData System.Xml.XmlTextReaderImpl.AddAttribute ( int endNamePos,
int colonPos )
inlineprivate

Definition at line 6970 of file XmlTextReaderImpl.cs.

6971 {
6972 if (colonPos == -1 || !_supportNamespaces)
6973 {
6975 return AddAttribute(text, string.Empty, text);
6976 }
6978 int charPos = _ps.charPos;
6979 int num = colonPos - charPos;
6980 if (num != _lastPrefix.Length || !XmlConvert.StrEqual(_ps.chars, charPos, num, _lastPrefix))
6981 {
6982 return AddAttribute(prefix: _lastPrefix = _nameTable.Add(_ps.chars, charPos, num), localName: _nameTable.Add(_ps.chars, colonPos + 1, endNamePos - colonPos - 1), nameWPrefix: null);
6983 }
6985 }
string Add(char[] array, int offset, int length)
NodeData AddAttribute(int endNamePos, int colonPos)

References System.Xml.XmlTextReaderImpl._attrNeedNamespaceLookup, System.Xml.XmlTextReaderImpl._lastPrefix, System.Xml.XmlTextReaderImpl._nameTable, System.Xml.XmlTextReaderImpl._ps, System.Xml.XmlTextReaderImpl._supportNamespaces, System.Xml.XmlNameTable.Add(), System.Xml.XmlTextReaderImpl.AddAttribute(), System.Xml.XmlTextReaderImpl.ParsingState.charPos, System.Xml.XmlTextReaderImpl.ParsingState.chars, System.prefix, System.Xml.XmlConvert.StrEqual(), and System.text.

Referenced by System.Xml.XmlTextReaderImpl.AddAttribute(), System.Xml.XmlTextReaderImpl.AddDefaultAttributeInternal(), System.Xml.XmlTextReaderImpl.ParseAttributes(), and System.Xml.XmlTextReaderImpl.ParseAttributesAsync().