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

◆ InvalidXmlChar()

unsafe char * System.Xml.XmlEncodedRawTextWriter.InvalidXmlChar ( int ch,
char * pDst,
bool entitize )
inlineprivateinherited

Definition at line 1357 of file XmlEncodedRawTextWriter.cs.

1358 {
1359 if (_checkCharacters)
1360 {
1361 throw XmlConvert.CreateInvalidCharException((char)ch, '\0');
1362 }
1363 if (entitize)
1364 {
1365 return CharEntity(pDst, (char)ch);
1366 }
1367 *pDst = (char)ch;
1368 pDst++;
1369 return pDst;
1370 }
static unsafe char * CharEntity(char *pDst, char ch)

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

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