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

◆ InvalidXmlChar()

unsafe byte * System.Xml.XmlUtf8RawTextWriter.InvalidXmlChar ( int ch,
byte * pDst,
bool entitize )
inlineprivateinherited

Definition at line 1162 of file XmlUtf8RawTextWriter.cs.

1163 {
1164 if (_checkCharacters)
1165 {
1166 throw XmlConvert.CreateInvalidCharException((char)ch, '\0');
1167 }
1168 if (entitize)
1169 {
1170 return CharEntity(pDst, (char)ch);
1171 }
1172 if (ch < 128)
1173 {
1174 *pDst = (byte)ch;
1175 pDst++;
1176 }
1177 else
1178 {
1180 }
1181 return pDst;
1182 }
static unsafe byte * CharEntity(byte *pDst, char ch)
static unsafe byte * EncodeMultibyteUTF8(int ch, byte *pDst)

References System.Xml.XmlUtf8RawTextWriter._checkCharacters, System.ch, System.Xml.XmlUtf8RawTextWriter.CharEntity(), System.Xml.XmlConvert.CreateInvalidCharException(), System.Xml.Dictionary, and System.Xml.XmlUtf8RawTextWriter.EncodeMultibyteUTF8().

Referenced by System.Xml.XmlUtf8RawTextWriter.EncodeChar(), System.Xml.XmlUtf8RawTextWriter.RawText(), System.Xml.XmlUtf8RawTextWriter.RawTextNoFlush(), System.Xml.XmlUtf8RawTextWriter.WriteAttributeTextBlock(), System.Xml.XmlUtf8RawTextWriter.WriteAttributeTextBlockNoFlush(), System.Xml.XmlUtf8RawTextWriter.WriteCDataSection(), System.Xml.XmlUtf8RawTextWriter.WriteCDataSectionNoFlush(), System.Xml.XmlUtf8RawTextWriter.WriteCommentOrPi(), System.Xml.XmlUtf8RawTextWriter.WriteCommentOrPiNoFlush(), System.Xml.XmlUtf8RawTextWriter.WriteElementTextBlock(), System.Xml.XmlUtf8RawTextWriter.WriteElementTextBlockNoFlush(), System.Xml.XmlUtf8RawTextWriter.WriteRawWithCharChecking(), and System.Xml.XmlUtf8RawTextWriter.WriteRawWithCharCheckingNoFlush().