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

◆ WriteDocType() [1/2]

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

Definition at line 39 of file HtmlUtf8RawTextWriter.cs.

40 {
41 RawText("<!DOCTYPE ");
42 if (name == "HTML")
43 {
44 RawText("HTML");
45 }
46 else
47 {
48 RawText("html");
49 }
50 if (pubid != null)
51 {
52 RawText(" PUBLIC \"");
54 if (sysid != null)
55 {
56 RawText("\" \"");
58 }
59 _bufBytes[_bufPos++] = 34;
60 }
61 else if (sysid != null)
62 {
63 RawText(" SYSTEM \"");
65 _bufBytes[_bufPos++] = 34;
66 }
67 else
68 {
69 _bufBytes[_bufPos++] = 32;
70 }
71 if (subset != null)
72 {
73 _bufBytes[_bufPos++] = 91;
75 _bufBytes[_bufPos++] = 93;
76 }
77 _bufBytes[_bufPos++] = 62;
78 }

References System.Xml.XmlUtf8RawTextWriter._bufBytes, System.Xml.XmlUtf8RawTextWriter._bufPos, System.Xml.Dictionary, and System.Xml.XmlUtf8RawTextWriter.RawText().