glib.markup_parse_context

Module for [MarkupParseContext] class

Types 1

A parse context is used to parse a stream of bytes that you expect to contain marked-up text.

See [glib.markup_parse_context.MarkupParseContext.new_], #GMarkupParser, and so on for more details.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
MarkupParseContext self()Returns `this`, for use in `with` statements.
bool endParse()Signals to the #GMarkupParseContext that all data has been fed into the parse context with [glib.markupparsecontext.MarkupParseContext.parse].
string getElement()Retrieves the name of the currently open element.
string[] getElementStack()Retrieves the element stack from the internal state of the parser.
void getPosition(out int lineNumber, out int charNumber)Retrieves the current line number and the number of the character on that line. Intended for use in error messages; there are no strict semantics for what constitutes the "current" line number othe...
void * getUserData()Returns the user_data associated with context.
bool parse(string text)Feed some data to the #GMarkupParseContext.
void * pop()Completes the process of a temporary sub-parser redirection.
void push(glib.types.MarkupParser parser, void * userData = null)Temporarily redirects markup data to a sub-parser.
Constructors
this(void * ptr, Flag!"Take" take)