Packages

builtin
cbindgen
core
core.alloc
core.alloc.arena
core.alloc.atomic
core.alloc.debug
core.alloc.fixed
core.alloc.gc
core.alloc.heap
core.alloc.log
core.alloc.memwatch
core.alloc.pool
core.alloc.ring
core.arg_parse
core.array
core.avl_tree
core.bucket_array
core.conv
core.crypto
core.crypto.keys
core.doc
core.encoding
core.encoding.base64
core.encoding.csv
core.encoding.hex
core.encoding.json
core.encoding.kdl
core.encoding.osad
core.encoding.utf8
core.encoding.xml
core.hash
core.hash.md5
core.hash.sha1
core.hash.sha256
core.heap
core.intrinsics
core.intrinsics.atomics
core.intrinsics.onyx
core.intrinsics.types
core.intrinsics.wasm
core.io
core.io.binary
core.iter
core.js
core.list
core.map
core.math
core.memory
core.misc
core.net
core.os
core.random
core.set
core.slice
core.string
core.sync
core.test
core.thread
core.time
main
runtime
runtime.info
runtime.platform
runtime.vars
simd

package core.encoding.xml

Attribute
Attribute :: struct {
    key: [] u8
    value: [] u8
}
Document
Document :: struct {
    elements: [..] Element
    strings: StringPool
}
Methods
Document.child_with_name
Document.child_with_name :: (doc: &Document, parent: u32, name: [] u8) -> ? u32
Document.children
Document.children :: (doc: &Document, parent: u32) -> Iterator(u32)
Document.destroy
Document.destroy :: (doc: &Document) -> void
Element
Element :: struct {
    name: [] u8
    parent: u32
    attributes: [..] Attribute
    children: [..] Child
}
Token
Token :: struct {
    kind: Kind
    pos: Position
}
Tokenizer
Tokenizer :: struct {
    arena: Arena
    s: &Stream
    r: Reader
    current: i32
    offset: i32
    line: i32
    line_offset: i32
    error: Error
    peeked_token: ? Token
}
Methods
Tokenizer.advance
Tokenizer.advance :: (self: &Tokenizer) -> void
Tokenizer.destroy
Tokenizer.destroy :: (self: &Tokenizer) -> void
Tokenizer.make
Tokenizer.make :: (a: Allocator, s: &Stream) -> Tokenizer
Tokenizer.peek
Tokenizer.peek :: (self: &Tokenizer) -> Token
Tokenizer.scan
Tokenizer.scan :: (self: &Tokenizer) -> Token
Tokenizer.scan_comment
Tokenizer.scan_comment :: (self: &Tokenizer) -> bool
Tokenizer.scan_ident
Tokenizer.scan_ident :: (self: &Tokenizer) -> Kind
Tokenizer.scan_string
Tokenizer.scan_string :: (self: &Tokenizer, end: i32, multiline: bool) -> ([] u8, bool)
Tokenizer.skip_cdata
Tokenizer.skip_cdata :: (self: &Tokenizer) -> bool
Tokenizer.skip_whitespace
Tokenizer.skip_whitespace :: (self: &Tokenizer) -> void
Child
Child :: union {
    Text: [] u8
    Element: u32
}
ParseError
ParseError :: union {
    None: void
    Error: [] u8
    Expected_Token: Kind.tag_enum
    Invalid_Token: [] u8
    Token_Error: Error
}
parse
parse :: (s: [] u8, allocator: Allocator) -> Result(Document, ParseError)
parse :: (s: &Stream, allocator: Allocator) -> Result(Document, ParseError)