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

◆ GetIndexOfAttributeWithoutPrefix()

int System.Xml.XmlTextReaderImpl.GetIndexOfAttributeWithoutPrefix ( string name)
inlineprivate

Definition at line 7929 of file XmlTextReaderImpl.cs.

7930 {
7931 string text = _nameTable.Get(name);
7932 if (text == null)
7933 {
7934 return -1;
7935 }
7936 for (int i = _index + 1; i < _index + _attrCount + 1; i++)
7937 {
7938 if (Ref.Equal(_nodes[i].localName, text) && _nodes[i].prefix.Length == 0)
7939 {
7940 return i;
7941 }
7942 }
7943 return -1;
7944 }
string? Get(char[] array, int offset, int length)

References System.Xml.XmlTextReaderImpl._attrCount, System.Xml.XmlTextReaderImpl._index, System.Xml.XmlTextReaderImpl._nameTable, System.Xml.XmlTextReaderImpl._nodes, System.Xml.Ref.Equal(), System.Xml.XmlNameTable.Get(), System.Xml.XmlTextReaderImpl.NodeData.localName, System.Xml.XmlTextReaderImpl.NodeData.prefix, and System.text.

Referenced by System.Xml.XmlTextReaderImpl.GetAttribute(), and System.Xml.XmlTextReaderImpl.MoveToAttribute().