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

◆ WriteStartAttribute() [3/4]

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

Definition at line 167 of file HtmlEncodedRawTextWriter.cs.

168 {
169 if (ns.Length == 0)
170 {
172 {
174 }
175 if (_attrEndPos == _bufPos)
176 {
177 _bufChars[_bufPos++] = ' ';
178 }
179 RawText(localName);
180 if ((_currentElementProperties & (ElementProperties)7u) != 0)
181 {
182 _currentAttributeProperties = (AttributeProperties)((uint)_attributePropertySearch.FindCaseInsensitiveString(localName) & (uint)_currentElementProperties);
183 if ((_currentAttributeProperties & AttributeProperties.BOOLEAN) != 0)
184 {
185 _inAttributeValue = true;
186 return;
187 }
188 }
189 else
190 {
191 _currentAttributeProperties = AttributeProperties.DEFAULT;
192 }
193 _bufChars[_bufPos++] = '=';
194 _bufChars[_bufPos++] = '"';
195 }
196 else
197 {
198 base.WriteStartAttribute(prefix, localName, ns);
199 _currentAttributeProperties = AttributeProperties.DEFAULT;
200 }
201 _inAttributeValue = true;
202 }
static TernaryTreeReadOnly _attributePropertySearch

References System.Xml.XmlEncodedRawTextWriter._attrEndPos, System.Xml.HtmlEncodedRawTextWriter._attributePropertySearch, System.Xml.XmlEncodedRawTextWriter._bufChars, System.Xml.XmlEncodedRawTextWriter._bufPos, System.Xml.HtmlEncodedRawTextWriter._currentAttributeProperties, System.Xml.HtmlEncodedRawTextWriter._currentElementProperties, System.Xml.XmlEncodedRawTextWriter._inAttributeValue, System.Xml.XmlEncodedRawTextWriter._inTextContent, System.Xml.XmlEncodedRawTextWriter._trackTextContent, System.Xml.XmlEncodedRawTextWriter.ChangeTextContentMark(), System.Xml.Dictionary, System.prefix, System.Xml.XmlEncodedRawTextWriter.RawText(), and System.value.