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

◆ EncodeChar()

unsafe void System.Xml.XmlUtf8RawTextWriter.EncodeChar ( ref char * pSrc,
char * pSrcEnd,
ref byte * pDst )
inlinepackageinherited

Definition at line 1184 of file XmlUtf8RawTextWriter.cs.

1185 {
1186 int num = *pSrc;
1187 if (XmlCharType.IsSurrogate(num))
1188 {
1190 pSrc += 2;
1191 }
1192 else if (num <= 127 || num >= 65534)
1193 {
1195 pSrc++;
1196 }
1197 else
1198 {
1200 pSrc++;
1201 }
1202 }
unsafe byte * InvalidXmlChar(int ch, byte *pDst, bool entitize)
static unsafe byte * EncodeMultibyteUTF8(int ch, byte *pDst)
static unsafe byte * EncodeSurrogate(char *pSrc, char *pSrcEnd, byte *pDst)

References System.Xml.Dictionary, System.Xml.XmlUtf8RawTextWriter.EncodeMultibyteUTF8(), System.Xml.XmlUtf8RawTextWriter.EncodeSurrogate(), System.Xml.XmlUtf8RawTextWriter.InvalidXmlChar(), and System.Xml.XmlCharType.IsSurrogate().

Referenced by System.Xml.HtmlUtf8RawTextWriter.WriteHtmlAttributeText().