MarkupParseContext

class MarkupParseContext(val glibMarkupParseContextPointer: <Error class: unknown class><<Error class: unknown class>>) : ProxyInstance

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

  • parameter user_data_dnotify: DestroyNotify

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val glibMarkupParseContextPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val handle: <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
open operator override fun equals(other: Any?): Boolean

Compare two proxy instances for equality. This will compare both the type of the instances, and their memory addresses.

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

Retrieves the element stack from the internal state of the parser.

Link copied to clipboard
fun getUserData(): <Error class: unknown class>?

Returns the user_data associated with @context.

Link copied to clipboard
open override fun hashCode(): Int
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
fun pop(): <Error class: unknown class>?

Completes the process of a temporary sub-parser redirection.

Link copied to clipboard
fun push(parser: MarkupParser, userData: <Error class: unknown class>? = null)

Temporarily redirects markup data to a sub-parser.

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.