MarkupParseContext

class MarkupParseContext(pointer: <Error class: unknown class><<Error class: unknown class>>) : Record

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.

Skipped during bindings generation

  • parameter line_number: line_number: Out parameter is not supported

  • method get_user_data: Return type gpointer is unsupported

  • method pop: Return type gpointer is unsupported

  • parameter user_data: gpointer

  • parameter user_data: gpointer

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion : RecordCompanion<MarkupParseContext, <Error class: unknown class>>

Properties

Link copied to clipboard
val glibMarkupParseContextPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun endParse(): <Error class: unknown class><Boolean>

Signals to the #GMarkupParseContext that all data has been fed into the parse context with g_markup_parse_context_parse().

Link copied to clipboard
fun free()

Frees a #GMarkupParseContext.

Link copied to clipboard

Retrieves the name of the currently open element.

Link copied to clipboard
fun parse(text: String, textLen: Long): <Error class: unknown class><Boolean>

Feed some data to the #GMarkupParseContext.

Link copied to clipboard

Increases the reference count of @context.

Link copied to clipboard
fun unref()

Decreases the reference count of @context. When its reference count drops to 0, it is freed.