MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ParseAttributeName

Method ParseAttributeName

Source/Engine/Utilities/HtmlParser.cs:283–294  ·  view source on GitHub ↗

Parses an attribute name. The current position should be the first character of the name. Returns the parsed name string.

()

Source from the content-addressed store, hash-verified

281 /// </summary>
282 /// <returns>Returns the parsed name string.</returns>
283 private string ParseAttributeName()
284 {
285 int start = _pos;
286 while (!EOF)
287 {
288 var c = Peek();
289 if (!char.IsLetterOrDigit(c) && c != '-')
290 break;
291 Move();
292 }
293 return _html.Substring(start, _pos - start);
294 }
295
296 /// <summary>
297 /// Parses an attribute value. The current position should be the first non-whitespace character following the equal sign.

Callers

nothing calls this directly

Calls 3

SubstringMethod · 0.80
PeekFunction · 0.50
MoveFunction · 0.50

Tested by

no test coverage detected