inih

package
v0.9.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LLGoFiles   = "$(pkg-config --cflags INIReader): _wrap/reader.cpp"
	LLGoPackage = "link: $(pkg-config --libs inih INIReader); -linih -lINIReader"
)

Variables

This section is empty.

Functions

func Parse

func Parse(filename *c.Char, handler func(user c.Pointer, section *c.Char, name *c.Char, value *c.Char) c.Int, user c.Pointer) c.Int

func ParseFile

func ParseFile(file c.FilePtr, handler func(user c.Pointer, section *c.Char, name *c.Char, value *c.Char) c.Int, user c.Pointer) c.Int

func ParseString

func ParseString(str *c.Char, handler func(user c.Pointer, section *c.Char, name *c.Char, value *c.Char) c.Int, user c.Pointer) c.Int

Types

type Reader

type Reader struct {
	Unused [32]byte
}

llgo:type C

func NewReader

func NewReader(buffer *c.Char, bufferSize uintptr) (ret Reader)

NewReader creates a new INIReader instance.

func NewReaderFile

func NewReaderFile(fileName *std.String) (ret Reader)

NewReaderFile creates a new INIReader instance.

func (*Reader) Dispose

func (r *Reader) Dispose()

llgo:link (*Reader).Dispose C.INIReaderDispose

func (*Reader) GetBoolean

func (r *Reader) GetBoolean(section *std.String, name *std.String, defaultValue bool) bool

llgo:link (*Reader).GetBoolean C._ZNK9INIReader10GetBooleanERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_b

func (*Reader) GetInteger

func (r *Reader) GetInteger(section *std.String, name *std.String, defaultValue c.Long) c.Long

llgo:link (*Reader).GetInteger C._ZNK9INIReader10GetIntegerERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_l

func (*Reader) GetString

func (r *Reader) GetString(section *std.String, name *std.String, defaultValue *std.String) (ret std.String)

llgo:link (*Reader).GetString C._ZNK9INIReader9GetStringERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_S8_

func (*Reader) InitFromBuffer

func (r *Reader) InitFromBuffer(buffer *c.Char, bufferSize uintptr)

llgo:link (*Reader).InitFromBuffer C._ZN9INIReaderC1EPKcm

func (*Reader) InitFromFile

func (r *Reader) InitFromFile(fileName *std.String)

llgo:link (*Reader).InitFromFile C._ZN9INIReaderC1ERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE

func (*Reader) ParseError

func (r *Reader) ParseError() c.Int

llgo:link (*Reader).ParseError C._ZNK9INIReader10ParseErrorEv

Directories

Path Synopsis
_demo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL