KvConfigReadPair
KvConfigReadPair
Description
Read a single key-value pair.
Supported separators are = and :.
Parameters
| Name | Direction | Description |
|---|---|---|
si |
in | Iterator at start of a key-value line. |
key |
out | Parsed key. |
value |
out | Parsed value. |
Success
Returns iterator advanced past the parsed line.
Failure
Returns original iterator on parse error.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
KvConfig.c:296:
}
StrIter KvConfigReadPair(StrIter si, Str *key, Str *value) {
StrIter saved_si = si;- In
KvConfig.c:385:
}
read_si = KvConfigReadPair(si, &key, &value);
if (read_si.pos == si.pos) {
StrDeinit(&key);
Last updated on