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

◆ WriteEscapedText() [1/4]

override void System.Xml.XmlUTF8NodeWriter.WriteEscapedText ( byte[] chars,
int offset,
int count )
inline

Definition at line 451 of file XmlUTF8NodeWriter.cs.

452 {
454 int num = array.Length;
455 int num2 = 0;
456 for (int i = 0; i < count; i++)
457 {
458 byte b = chars[offset + i];
459 if (b < num && array[b])
460 {
463 num2 = i + 1;
464 }
465 else if (b == 239 && offset + i + 2 < count)
466 {
467 byte b2 = chars[offset + i + 1];
468 byte b3 = chars[offset + i + 2];
469 if (b2 == 191 && (b3 == 190 || b3 == 191))
470 {
472 WriteCharEntity((b3 == 190) ? 65534 : 65535);
473 num2 = i + 3;
474 }
475 }
476 }
478 }
void WriteUTF8Chars(byte[] chars, int charOffset, int charCount)
override void WriteCharEntity(int ch)
readonly bool[] _isEscapedAttributeChar

References System.Xml.XmlUTF8NodeWriter._inAttribute, System.Xml.XmlUTF8NodeWriter._isEscapedAttributeChar, System.Xml.XmlUTF8NodeWriter._isEscapedElementChar, System.array, System.chars, System.count, System.Xml.Dictionary, System.offset, System.Xml.XmlUTF8NodeWriter.WriteCharEntity(), and System.Xml.XmlStreamNodeWriter.WriteUTF8Chars().