package core:encoding/ini

⌘K
Ctrl+K
or
/

    Index

    Types (3)
    Constants (1)
    Variables (0)

    This section is empty.

    Procedure Groups (0)

    This section is empty.

    Types

    Iterator ¶

    Iterator :: struct {
    	section: string,
    	_src:    string,
    	options: Options,
    }
    Related Procedures With Parameters
    Related Procedures With Returns

    Map ¶

    Map :: distinct map[string]map[string]string
    Related Procedures With Parameters
    Related Procedures With Returns

    Options ¶

    Options :: struct {
    	comment:        string,
    	key_lower_case: bool,
    }
    Related Procedures With Parameters
    Related Constants

    Constants

    DEFAULT_OPTIONS ¶

    DEFAULT_OPTIONS :: Options{comment = ";", key_lower_case = false}

    Variables

    This section is empty.

    Procedures

    delete_map ¶

    delete_map :: proc(m: Map) {…}

    iterate ¶

    iterate :: proc(it: ^Iterator) -> (key, value: string, ok: bool) {…}
     

    Returns the raw key and value. ok will be false if no more key=value pairs cannot be found. They key and value may be quoted, which may require the use of strconv.unquote_string.

    iterator_from_string ¶

    iterator_from_string :: proc(src: string, options: Options = DEFAULT_OPTIONS) -> Iterator {…}

    load_map_from_path ¶

    load_map_from_path :: proc(path: string, allocator: runtime.Allocator, options: Options = DEFAULT_OPTIONS) -> (m: Map, err: runtime.Allocator_Error, ok: bool) {…}

    load_map_from_string ¶

    load_map_from_string :: proc(src: string, allocator: runtime.Allocator, options: Options = DEFAULT_OPTIONS) -> (m: Map, err: runtime.Allocator_Error) {…}

    save_map_to_string ¶

    save_map_to_string :: proc(m: Map, allocator: runtime.Allocator) -> (data: string) {…}

    write_map ¶

    write_map :: proc(w: io.Stream, m: Map) -> (n: int, err: io.Error) {…}

    write_pair ¶

    write_pair :: proc(w: io.Stream, key: string, value: $T, n_written: ^int = nil) -> (n: int, err: io.Error) {…}

    write_section ¶

    write_section :: proc(w: io.Stream, name: string, n_written: ^int = nil) -> (n: int, err: io.Error) {…}

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-2024-09 (vendor "odin") Windows_amd64 @ 2024-09-07 21:12:27.302540800 +0000 UTC