core/encoding/ini
encoding_ini
Types
3Constants
1DEFAULT_OPTIONS
DEFAULT_OPTIONS :: Options = Options {
comment = ";",
key_lower_case = false,
}SourceProcedures
9delete_map
delete_map :: proc(m: Map)Sourceiterate
iterate :: proc(it: ^Iterator) -> (key: string, value: string, ok: bool)SourceReturns 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 = DEFAULT_OPTIONS) -> (Iterator)Sourceload_map_from_path
load_map_from_path :: proc(path: string, allocator: runtime.Allocator, options = DEFAULT_OPTIONS) -> (m: Map, err: runtime.Allocator_Error, ok: bool)Sourceload_map_from_string
load_map_from_string :: proc(src: string, allocator: runtime.Allocator, options = DEFAULT_OPTIONS) -> (m: Map, err: runtime.Allocator_Error)Sourcesave_map_to_string
save_map_to_string :: proc(m: Map, allocator: runtime.Allocator) -> (data: string)Sourcewrite_map
write_map :: proc(w: io.Writer, m: Map) -> (n: int, err: io.Error)Sourcewrite_pair
write_pair :: proc(w: io.Writer, key: string, value: T, n_written: ^int) -> (n: int, err: io.Error)Sourcewrite_section
write_section :: proc(w: io.Writer, name: string, n_written: ^int) -> (n: int, err: io.Error)Source