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

◆ WriteWhitespaceAsync() [1/2]

override Task System.Xml.XmlCharCheckingWriter.WriteWhitespaceAsync ( string ws)
inline

Definition at line 646 of file XmlCharCheckingWriter.cs.

647 {
648 if (ws == null)
649 {
650 ws = string.Empty;
651 }
652 int invCharIndex;
653 if (_checkNames && (invCharIndex = XmlCharType.IsOnlyWhitespaceWithPos(ws)) != -1)
654 {
656 object[] args = XmlException.BuildCharExceptionArgs(ws, invCharIndex);
658 }
660 {
662 }
664 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Xml_InvalidWhitespaceCharacter
Definition SR.cs:200
Definition SR.cs:7
virtual Task WriteWhitespaceAsync(string? ws)
Definition XmlWriter.cs:663

References System.Xml.XmlCharCheckingWriter._checkNames, System.Xml.XmlCharCheckingWriter._replaceNewLines, System.Xml.ArgumentException, System.Xml.XmlException.BuildCharExceptionArgs(), System.Xml.Dictionary, System.SR.Format(), System.Xml.XmlCharType.IsOnlyWhitespaceWithPos(), System.Xml.XmlCharCheckingWriter.ReplaceNewLines(), System.Xml.XmlWrappingWriter.writer, System.Xml.XmlWriter.WriteWhitespaceAsync(), and System.SR.Xml_InvalidWhitespaceCharacter.