GLib.MarkupParseContext (original) (raw)

Struct

GLibMarkupParseContext

Description [src]


struct GMarkupParseContext {
  /* No available fields */
}

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

See g_markup_parse_context_new(), GMarkupParser, and so on for more details.

Constructors

g_markup_parse_context_new

Creates a new parse context. A parse context is used to parse marked-up documents. You can feed any number of documents into a context, as long as no errors occur; once an error occurs, the parse context can’t continue to parse text (you have to free it and create a new parse context).

Instance methods

g_markup_parse_context_get_position

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 other than “the best number we could come up with for error messages.”.