comparison: src/string.c
src/string.c
- changeset 1677
- 1d73c7302fbc
- parent 1676
- f889ffd07c86
equal
deleted
inserted
replaced
| 281 } |
281 } |
| 282 |
282 |
| 283 return result; |
283 return result; |
| 284 } |
284 } |
| 285 |
285 |
| 286 cxmutstr cx_strstr_m_( |
|
| 287 cxmutstr haystack, |
|
| 288 cxstring needle |
|
| 289 ) { |
|
| 290 cxstring result = cx_strstr(cx_strcast(haystack), needle); |
|
| 291 return (cxmutstr) {(char *) result.ptr, result.length}; |
|
| 292 } |
|
| 293 |
|
| 294 size_t cx_strsplit_( |
286 size_t cx_strsplit_( |
| 295 cxstring string, |
287 cxstring string, |
| 296 cxstring delim, |
288 cxstring delim, |
| 297 size_t limit, |
289 size_t limit, |
| 298 cxstring *output |
290 cxstring *output |