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

◆ WriteDocType() [1/2]

override void System.Xml.HtmlEncodedRawTextWriter.WriteDocType ( string name,
string pubid,
string sysid,
string subset )
inline

Definition at line 45 of file HtmlEncodedRawTextWriter.cs.

46 {
48 {
50 }
51 RawText("<!DOCTYPE ");
52 if (name == "HTML")
53 {
54 RawText("HTML");
55 }
56 else
57 {
58 RawText("html");
59 }
60 if (pubid != null)
61 {
62 RawText(" PUBLIC \"");
64 if (sysid != null)
65 {
66 RawText("\" \"");
68 }
69 _bufChars[_bufPos++] = '"';
70 }
71 else if (sysid != null)
72 {
73 RawText(" SYSTEM \"");
75 _bufChars[_bufPos++] = '"';
76 }
77 else
78 {
79 _bufChars[_bufPos++] = ' ';
80 }
81 if (subset != null)
82 {
83 _bufChars[_bufPos++] = '[';
85 _bufChars[_bufPos++] = ']';
86 }
87 _bufChars[_bufPos++] = '>';
88 }

References System.Xml.XmlEncodedRawTextWriter._bufChars, System.Xml.XmlEncodedRawTextWriter._bufPos, System.Xml.XmlEncodedRawTextWriter._inTextContent, System.Xml.XmlEncodedRawTextWriter._trackTextContent, System.Xml.XmlEncodedRawTextWriter.ChangeTextContentMark(), System.Xml.Dictionary, System.Xml.XmlEncodedRawTextWriter.RawText(), and System.value.