src/string.c

changeset 1127
1fd31909a3f8
parent 1125
6090c455b8df
equal deleted inserted replaced
1126:20c9212b3a47 1127:1fd31909a3f8
751 ctx.delim_more = NULL; 751 ctx.delim_more = NULL;
752 ctx.delim_more_count = 0; 752 ctx.delim_more_count = 0;
753 return ctx; 753 return ctx;
754 } 754 }
755 755
756 CxStrtokCtx cx_strtok_m(
757 cxmutstr str,
758 cxstring delim,
759 size_t limit
760 ) {
761 return cx_strtok(cx_strcast(str), delim, limit);
762 }
763
764 bool cx_strtok_next( 756 bool cx_strtok_next(
765 CxStrtokCtx *ctx, 757 CxStrtokCtx *ctx,
766 cxstring *token 758 cxstring *token
767 ) { 759 ) {
768 // abortion criteria 760 // abortion criteria

mercurial