KvConfigSkipLine
Description
Skip current line including trailing newline when present.
Parameters
| Name | Direction | Description |
|---|---|---|
si |
in | Iterator positioned anywhere on a line. |
Success
Returns iterator positioned at the first character of the next line.
Failure
Function cannot fail. Returns an iterator at end of input when no trailing newline is present.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
KvConfig.c:98:
}
StrIter KvConfigSkipLine(StrIter si) {
char c;
while (StrIterPeek(&si, &c) && c != '\n') {- In
KvConfig.c:259:
}
if (kvconfig_is_comment_start(c)) {
si = KvConfigSkipLine(si);
} else if (c != '\n') {
LOG_ERROR("Unexpected trailing characters after config value");- In
KvConfig.c:312:
if (kvconfig_is_comment_start(c)) {
si = KvConfigSkipLine(si);
StrDeinit(&key);
StrDeinit(&value);
Last updated on