docs/Writerside/topics/string.h.md

changeset 1652
db8299984bfe
parent 1651
38b051dea6b1
equal deleted inserted replaced
1651:38b051dea6b1 1652:db8299984bfe
221 ## Basic Splitting 221 ## Basic Splitting
222 222
223 ```C 223 ```C
224 #include <cx/string.h> 224 #include <cx/string.h>
225 225
226 size_t cx_strsplit(cxstring string, cxstring delim, 226 size_t cx_strsplit(cxstring string, AnyStr delim,
227 size_t limit, cxstring *output); 227 size_t limit, cxstring *output);
228 228
229 size_t cx_strsplit_a(const CxAllocator *allocator, 229 size_t cx_strsplit_a(const CxAllocator *allocator,
230 cxstring string, cxstring delim, 230 cxstring string, AnyStr delim,
231 size_t limit, cxstring **output); 231 size_t limit, cxstring **output);
232 232
233 size_t cx_strsplit_m(cxmutstr string, cxstring delim, 233 size_t cx_strsplit_m(cxmutstr string, AnyStr delim,
234 size_t limit, cxmutstr *output); 234 size_t limit, cxmutstr *output);
235 235
236 size_t cx_strsplit_ma(const CxAllocator *allocator, 236 size_t cx_strsplit_ma(const CxAllocator *allocator,
237 cxmutstr string, cxstring delim, 237 cxmutstr string, AnyStr delim,
238 size_t limit, cxmutstr **output); 238 size_t limit, cxmutstr **output);
239 ``` 239 ```
240 240
241 The `cx_strsplit()` function splits the input `string` using the specified delimiter `delim` 241 The `cx_strsplit()` function splits the input `string` using the specified delimiter `delim`
242 and writes the substrings into the pre-allocated `output` array. 242 and writes the substrings into the pre-allocated `output` array.

mercurial