C# Class Gumbo.GumboAttribute

Datei anzeigen Open project: rgripper/GumboBindings Class Usage Examples

Public Properties

Property Type Description
attr_namespace GumboAttributeNamespaceEnum
name System.IntPtr
name_end GumboSourcePosition
name_start GumboSourcePosition
original_name GumboStringPiece
original_value GumboStringPiece
value System.IntPtr
value_end GumboSourcePosition
value_start GumboSourcePosition

Property Details

attr_namespace public_oe property

The namespace for the attribute. This will usually be GUMBO_ATTR_NAMESPACE_NONE, but some XLink/XMLNS/XML attributes take special values, per: http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html#adjust-foreign-attributes
public GumboAttributeNamespaceEnum attr_namespace
return GumboAttributeNamespaceEnum

name public_oe property

The name of the attribute. This is in a freshly-allocated buffer to deal with case-normalization, and is null-terminated.
public IntPtr,System name
return System.IntPtr

name_end public_oe property

The ending position of the attribute name. This is not always derivable from the starting position of the value because of the possibility of whitespace around the = sign.
public GumboSourcePosition,Gumbo name_end
return GumboSourcePosition

name_start public_oe property

The starting position of the attribute name.
public GumboSourcePosition,Gumbo name_start
return GumboSourcePosition

original_name public_oe property

The original text of the attribute name, as a pointer into the original source buffer.
public GumboStringPiece original_name
return GumboStringPiece

original_value public_oe property

The original text of the value of the attribute. This points into the original source buffer. It includes any quotes that surround the attribute, and you can look at original_value.data[0] and original_value.data[original_value.length - 1] to determine what the quote characters were. If the attribute has no value, this will be a 0-length string.
public GumboStringPiece original_value
return GumboStringPiece

value public_oe property

The value of the attribute. This is in a freshly-allocated buffer to deal with unescaping, and is null-terminated. It does not include any quotes that surround the attribute. If the attribute has no value (for example, 'selected' on a checkbox), this will be an empty string.
public IntPtr,System value
return System.IntPtr

value_end public_oe property

The ending position of the attribute value.
public GumboSourcePosition,Gumbo value_end
return GumboSourcePosition

value_start public_oe property

The starting position of the attribute value.
public GumboSourcePosition,Gumbo value_start
return GumboSourcePosition