ucx
UAP Common Extensions
Loading...
Searching...
No Matches
Data Fields
cx_strtok_ctx_s Struct Reference

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.
 

Detailed Description

Context for string tokenizing.

Field Documentation

◆ delim_pos

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.


The documentation for this struct was generated from the following file: