Index
Modules:
iniplus
,
iniplus/objects
,
iniplus/reader
,
iniplus/retrieve
,
iniplus/writer
.
API symbols
`%`:
writer: proc `%`(value: bool): ConfigValue
writer: proc `%`(value: int): ConfigValue
writer: proc `%`(value: seq[ConfigValue]): ConfigValue
writer: proc `%`(value: string): ConfigValue
c:
writer: proc c(section, key: string; value: bool): CondensedConfigValue
writer: proc c(section, key: string; value: int): CondensedConfigValue
writer: proc c(section, key: string; value: seq[ConfigValue]): CondensedConfigValue
writer: proc c(section, key: string; value: string): CondensedConfigValue
writer: proc c(section, key: string; value: varargs[ConfigValue]): CondensedConfigValue
CondensedConfigValue:
objects: object CondensedConfigValue
ConfigTable:
objects: type ConfigTable
ConfigValue:
objects: object ConfigValue
ConfigValueKind:
objects: enum ConfigValueKind
convertValue:
objects: proc convertValue(raw: string): ConfigValue
CVBool:
objects: ConfigValueKind.CVBool
CVInt:
objects: ConfigValueKind.CVInt
CVNone:
objects: ConfigValueKind.CVNone
CVSequence:
objects: ConfigValueKind.CVSequence
CVString:
objects: ConfigValueKind.CVString
dump:
writer: proc dump(table: ConfigTable): string
exists:
retrieve: proc exists(table: ConfigTable; section, key: string): bool
getArray:
retrieve: proc getArray(table: ConfigTable; section, key: string): seq[ConfigValue]
getBool:
retrieve: proc getBool(table: ConfigTable; section, key: string): bool
getBoolArray:
retrieve: proc getBoolArray(table: ConfigTable; section, key: string): seq[bool]
getInt:
retrieve: proc getInt(table: ConfigTable; section, key: string): int
getIntArray:
retrieve: proc getIntArray(table: ConfigTable; section, key: string): seq[int]
getString:
retrieve: proc getString(table: ConfigTable; section, key: string): string
getStringArray:
retrieve: proc getStringArray(table: ConfigTable; section, key: string): seq[string]
getStringOrDefault:
retrieve: proc getStringOrDefault(table: ConfigTable; section, key, default: string): string
getValue:
retrieve: proc getValue(table: ConfigTable; section, key: string): ConfigValue
newConfigTable:
writer: proc newConfigTable(): ConfigTable
newValue:
writer: proc newValue(value: bool): ConfigValue
writer: proc newValue(value: int): ConfigValue
writer: proc newValue(value: seq[ConfigValue]): ConfigValue
writer: proc newValue(value: string): ConfigValue
writer: proc newValue(value: varargs[ConfigValue]): ConfigValue
parseFile:
reader: proc parseFile(filename: string): ConfigTable
parseString:
reader: proc parseString(input: string): ConfigTable
setBulkKeys:
writer: proc setBulkKeys(table: var ConfigTable; vals: varargs[CondensedConfigValue])
setKey:
writer: proc setKey(table: var ConfigTable; section, key: string; value: ConfigValue)
setKeyMultiVal:
writer: proc setKeyMultiVal(table: var ConfigTable; section, key: string; value: string)
setKeySingleVal:
writer: proc setKeySingleVal(table: var ConfigTable; section, key: string; value: string)
toString:
writer: proc toString(table: ConfigTable): string
writer: proc toString(val: ConfigValue): string
trimString:
objects: proc trimString(raw: string): string
unroll:
retrieve: proc unroll(table: Table[string, ConfigValue]): Table[string, string]