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

◆ CharEntity()

static unsafe char * System.Xml.XmlEncodedRawTextWriter.CharEntity ( char * pDst,
char ch )
inlinestaticprivateinherited

Definition at line 1489 of file XmlEncodedRawTextWriter.cs.

1490 {
1491 int num = ch;
1492 string text = num.ToString("X", NumberFormatInfo.InvariantInfo);
1493 *pDst = '&';
1494 pDst[1] = '#';
1495 pDst[2] = 'x';
1496 pDst += 3;
1497 fixed (char* ptr = text)
1498 {
1499 char* ptr2 = ptr;
1500 while ((*(pDst++) = *(ptr2++)) != 0)
1501 {
1502 }
1503 }
1504 pDst[-1] = ';';
1505 return pDst;
1506 }

References System.ch, System.Xml.Dictionary, System.Globalization.NumberFormatInfo.InvariantInfo, and System.text.

Referenced by System.Xml.XmlEncodedRawTextWriter.InvalidXmlChar().