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

◆ WriteStartAttribute() [3/4]

override void System.Xml.HtmlUtf8RawTextWriter.WriteStartAttribute ( string prefix,
string localName,
string ns )
inline

Definition at line 145 of file HtmlUtf8RawTextWriter.cs.

146 {
147 if (ns.Length == 0)
148 {
149 if (_attrEndPos == _bufPos)
150 {
151 _bufBytes[_bufPos++] = 32;
152 }
153 RawText(localName);
154 if ((_currentElementProperties & (ElementProperties)7u) != 0)
155 {
156 _currentAttributeProperties = (AttributeProperties)((uint)_attributePropertySearch.FindCaseInsensitiveString(localName) & (uint)_currentElementProperties);
157 if ((_currentAttributeProperties & AttributeProperties.BOOLEAN) != 0)
158 {
159 _inAttributeValue = true;
160 return;
161 }
162 }
163 else
164 {
165 _currentAttributeProperties = AttributeProperties.DEFAULT;
166 }
167 _bufBytes[_bufPos++] = 61;
168 _bufBytes[_bufPos++] = 34;
169 }
170 else
171 {
172 base.WriteStartAttribute(prefix, localName, ns);
173 _currentAttributeProperties = AttributeProperties.DEFAULT;
174 }
175 _inAttributeValue = true;
176 }
static TernaryTreeReadOnly _attributePropertySearch
AttributeProperties _currentAttributeProperties

References System.Xml.XmlUtf8RawTextWriter._attrEndPos, System.Xml.HtmlUtf8RawTextWriter._attributePropertySearch, System.Xml.XmlUtf8RawTextWriter._bufBytes, System.Xml.XmlUtf8RawTextWriter._bufPos, System.Xml.HtmlUtf8RawTextWriter._currentAttributeProperties, System.Xml.HtmlUtf8RawTextWriter._currentElementProperties, System.Xml.XmlUtf8RawTextWriter._inAttributeValue, System.Xml.Dictionary, System.prefix, and System.Xml.XmlUtf8RawTextWriter.RawText().