| 683 ctx->str.length : (size_t) (delim.ptr - ctx->str.ptr); |
683 ctx->str.length : (size_t) (delim.ptr - ctx->str.ptr); |
| 684 token->length = ctx->delim_pos - ctx->pos; |
684 token->length = ctx->delim_pos - ctx->pos; |
| 685 ctx->next_pos = ctx->delim_pos + delim.length; |
685 ctx->next_pos = ctx->delim_pos + delim.length; |
| 686 |
686 |
| 687 return true; |
687 return true; |
| 688 } |
|
| 689 |
|
| 690 bool cx_strtok_next_m( |
|
| 691 CxStrtokCtx *ctx, |
|
| 692 cxmutstr *token |
|
| 693 ) { |
|
| 694 return cx_strtok_next(ctx, (cxstring *) token); |
|
| 695 } |
688 } |
| 696 |
689 |
| 697 void cx_strtok_delim( |
690 void cx_strtok_delim( |
| 698 CxStrtokCtx *ctx, |
691 CxStrtokCtx *ctx, |
| 699 const cxstring *delim, |
692 const cxstring *delim, |