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

◆ Equals2()

bool System.Xml.ValueHandle.Equals2 ( string str,
bool checkLower )
inline

Definition at line 505 of file ValueHandle.cs.

506 {
507 if (_type != ValueHandleType.UTF8)
508 {
509 return GetString() == str;
510 }
511 if (_length != str.Length)
512 {
513 return false;
514 }
515 byte[] buffer = _bufferReader.Buffer;
516 for (int i = 0; i < _length; i++)
517 {
518 byte b = buffer[i + _offset];
519 if (b != str[i] && (!checkLower || char.ToLowerInvariant((char)b) != str[i]))
520 {
521 return false;
522 }
523 }
524 return true;
525 }
ValueHandleType _type
readonly XmlBufferReader _bufferReader
Definition ValueHandle.cs:9

References System.Xml.ValueHandle._bufferReader, System.Xml.ValueHandle._length, System.Xml.ValueHandle._offset, System.Xml.ValueHandle._type, System.buffer, System.Xml.XmlBufferReader.Buffer, System.Xml.Dictionary, System.Xml.ValueHandle.GetString(), and System.str.