Data Structures | |
| struct | striter |
| The basic striter data type. More... | |
Defines | |
| #define | str_copyiter(STR, ITER) str_copyb(STR,(ITER)->startptr,(ITER)->len) |
| #define | str_catiter(STR, ITER) str_catb(STR,(ITER)->startptr,(ITER)->len) |
| #define | obuf_putiter(OBUF, ITER) obuf_write(OBUF,(ITER)->startptr,(ITER)->len) |
| #define | striter_loop(ITER, STR, SEP) for(striter_start(ITER,STR,SEP);striter_valid(ITER);striter_advance(ITER)) |
Functions | |
| void | striter_start (striter *iter, const struct str *s, char sep) |
| int | striter_valid (striter *) |
| int | striter_advance (striter *) |
0 (false) if the function failed or the iterator is no longer valid, and non-zero (true) otherwise.
|
|
Output the current striter substring to an obuf.
|
|
|
Append the current striter substring to a str.
|
|
|
Assign the current striter substring to a str.
|
|
|
Loop macro; use in place of
|
|
|
Advance a striter to the next substring.
|
|
||||||||||||||||
|
Start (initialize) a striter.
|
|
|
Determine if a striter is valid (after initialization or advancing).
|
1.3.8