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

◆ WriteStartElement() [3/4]

override void System.Xml.HtmlEncodedRawTextWriterIndent.WriteStartElement ( string prefix,
string localName,
string ns )
inline

Definition at line 33 of file HtmlEncodedRawTextWriterIndent.cs.

34 {
36 {
38 }
40 if (ns.Length == 0)
41 {
42 _currentElementProperties = (ElementProperties)HtmlEncodedRawTextWriter._elementPropertySearch.FindCaseInsensitiveString(localName);
43 if (_endBlockPos == _bufPos && (_currentElementProperties & ElementProperties.BLOCK_WS) != 0)
44 {
46 }
48 _bufChars[_bufPos++] = '<';
49 }
50 else
51 {
53 if (_endBlockPos == _bufPos)
54 {
56 }
58 _bufChars[_bufPos++] = '<';
59 if (prefix.Length != 0)
60 {
62 _bufChars[_bufPos++] = ':';
63 }
64 }
65 RawText(localName);
67 }
void Push(byte data)
Definition ByteStack.cs:21
HtmlEncodedRawTextWriter(TextWriter writer, XmlWriterSettings settings)

References System.Xml.XmlEncodedRawTextWriter._attrEndPos, System.Xml.XmlEncodedRawTextWriter._bufChars, System.Xml.XmlEncodedRawTextWriter._bufPos, System.Xml.HtmlEncodedRawTextWriter._currentElementProperties, System.Xml.HtmlEncodedRawTextWriter._elementPropertySearch, System.Xml.HtmlEncodedRawTextWriter._elementScope, System.Xml.HtmlEncodedRawTextWriterIndent._endBlockPos, System.Xml.HtmlEncodedRawTextWriterIndent._indentLevel, System.Xml.XmlEncodedRawTextWriter._inTextContent, System.Xml.XmlEncodedRawTextWriter._trackTextContent, System.Xml.XmlEncodedRawTextWriter.ChangeTextContentMark(), System.Xml.Dictionary, System.prefix, System.Xml.ByteStack.Push(), System.Xml.XmlEncodedRawTextWriter.RawText(), System.value, and System.Xml.HtmlEncodedRawTextWriterIndent.WriteIndent().