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) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
MarkupParseContext self() nothrowReturns `this`, for use in `with` statements.
bool endParse()Signals to the #GMarkupParseContext that all data has been fed into the parse context with [glib.markup_parse_context.MarkupParseContext.parse].
string getElement() nothrowRetrieves the name of the currently open element.
string[] getElementStack() nothrowRetrieves the element stack from the internal state of the parser.
void getPosition(out int lineNumber, out int charNumber) nothrowRetrieves 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() nothrowReturns the user_data associated with context.
bool parse(string text)Feed some data to the #GMarkupParseContext.
void * pop() nothrowCompletes the process of a temporary sub-parser redirection.
void push(glib.types.MarkupParser parser, void * userData = null) nothrowTemporarily redirects markup data to a sub-parser.
Constructors
this(void * ptr, Flag!"Take" take)