ucx
UAP Common Extensions
|
Context for string tokenizing. More...
#include <string.h>
Data Fields | |
cxstring | str |
The string to tokenize. | |
cxstring | delim |
The primary delimiter. | |
cxstring const * | delim_more |
Optional array of more delimiters. | |
size_t | delim_more_count |
Length of the array containing more delimiters. | |
size_t | pos |
Position of the currently active token in the source string. | |
size_t | delim_pos |
Position of next delimiter in the source string. | |
size_t | next_pos |
The position of the next token in the source string. | |
size_t | found |
The number of already found tokens. | |
size_t | limit |
The maximum number of tokens that shall be returned. | |
Context for string tokenizing.
size_t cx_strtok_ctx_s::delim_pos |
Position of next delimiter in the source string.
If the tokenizer has not yet returned a token, the content of this field is undefined. If the tokenizer reached the end of the string, this field contains the length of the source string.