C# Class Gumbo.GumboExtensions

Show file Open project: rgripper/GumboBindings Class Usage Examples

Public Methods

Method Description
GetAttributes ( this node ) : IEnumerable
GetChildren ( this node ) : IEnumerable
GetDocument ( this output ) : GumboDocumentNode
GetErrors ( this output ) : IEnumerable
GetRoot ( this output ) : GumboElementNode
MarshalToString ( this stringPiece ) : string

Private Methods

Method Description
MarshalToPtrArray ( GumboVector vector ) : System.IntPtr[]
MarshalToSpecificErrorContainer ( IntPtr errorPointer ) : GumboErrorContainer
MarshalToSpecificNode ( IntPtr nodePointer ) : GumboNode

Dealing with C unions, we need a two-step marshalling to get an actual instance.

Method Details

GetAttributes() public static method

public static GetAttributes ( this node ) : IEnumerable
node this
return IEnumerable

GetChildren() public static method

public static GetChildren ( this node ) : IEnumerable
node this
return IEnumerable

GetDocument() public static method

public static GetDocument ( this output ) : GumboDocumentNode
output this
return GumboDocumentNode

GetErrors() public static method

public static GetErrors ( this output ) : IEnumerable
output this
return IEnumerable

GetRoot() public static method

public static GetRoot ( this output ) : GumboElementNode
output this
return GumboElementNode

MarshalToString() public static method

public static MarshalToString ( this stringPiece ) : string
stringPiece this
return string