Documentation ¶
Index ¶
- Constants
- func Parse(filename *c.Char, ...) c.Int
- func ParseFile(file c.FilePtr, ...) c.Int
- func ParseString(str *c.Char, ...) c.Int
- type Reader
- func (r *Reader) Dispose()
- func (r *Reader) GetBoolean(section *std.String, name *std.String, defaultValue bool) bool
- func (r *Reader) GetInteger(section *std.String, name *std.String, defaultValue c.Long) c.Long
- func (r *Reader) GetString(section *std.String, name *std.String, defaultValue *std.String) (ret std.String)
- func (r *Reader) InitFromBuffer(buffer *c.Char, bufferSize uintptr)
- func (r *Reader) InitFromFile(fileName *std.String)
- func (r *Reader) ParseError() c.Int
Constants ¶
const ( LLGoFiles = "$(pkg-config --cflags INIReader): _wrap/reader.cpp" LLGoPackage = "link: $(pkg-config --libs inih INIReader); -linih -lINIReader" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reader ¶
type Reader struct {
Unused [32]byte
}
llgo:type C
func NewReaderFile ¶
NewReaderFile creates a new INIReader instance.
func (*Reader) GetBoolean ¶
llgo:link (*Reader).GetBoolean C._ZNK9INIReader10GetBooleanERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_b
func (*Reader) GetInteger ¶
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 ¶
llgo:link (*Reader).InitFromBuffer C._ZN9INIReaderC1EPKcm
func (*Reader) InitFromFile ¶
llgo:link (*Reader).InitFromFile C._ZN9INIReaderC1ERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE
func (*Reader) ParseError ¶
llgo:link (*Reader).ParseError C._ZNK9INIReader10ParseErrorEv