KvConfigSkipWhitespace
Description
Skip horizontal whitespace in config text.
This skips ' ', '\t', and '\r', but not '\n'.
Parameters
| Name | Direction | Description |
|---|---|---|
si |
in | Iterator to advance. |
Success
Returns updated iterator.
Failure
Function cannot fail. Returns si unchanged when already at end of input or on a non-whitespace character.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
KvConfig.c:90:
}
StrIter KvConfigSkipWhitespace(StrIter si) {
char c;
while (StrIterPeek(&si, &c) && kvconfig_is_space(c)) {- In
KvConfig.c:113:
}
si = KvConfigSkipWhitespace(si);
char c;- In
KvConfig.c:141:
}
si = KvConfigSkipWhitespace(si);
char c;- In
KvConfig.c:234:
}
si = KvConfigSkipWhitespace(si);
char c;- In
KvConfig.c:253:
}
si = KvConfigSkipWhitespace(si);
if (!StrIterPeek(&si, &c)) {
// EOF after value is fine - last line without newline.
- In
KvConfig.c:294:
if (kvconfig_is_space(c)) {
si = KvConfigSkipWhitespace(si);
char c2;
if (!StrIterPeek(&si, &c2) || c2 == '\n') {
Last updated on