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

◆ WriteDocType() [1/2]

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

Definition at line 149 of file XmlUtf8RawTextWriter.cs.

150 {
151 RawText("<!DOCTYPE ");
152 RawText(name);
153 if (pubid != null)
154 {
155 RawText(" PUBLIC \"");
156 RawText(pubid);
157 RawText("\" \"");
158 if (sysid != null)
159 {
160 RawText(sysid);
161 }
162 _bufBytes[_bufPos++] = 34;
163 }
164 else if (sysid != null)
165 {
166 RawText(" SYSTEM \"");
167 RawText(sysid);
168 _bufBytes[_bufPos++] = 34;
169 }
170 else
171 {
172 _bufBytes[_bufPos++] = 32;
173 }
174 if (subset != null)
175 {
176 _bufBytes[_bufPos++] = 91;
178 _bufBytes[_bufPos++] = 93;
179 }
180 _bufBytes[_bufPos++] = 62;
181 }

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