309 * @param ... all strings |
309 * @param ... all strings |
310 * @return the concatenated string |
310 * @return the concatenated string |
311 */ |
311 */ |
312 __attribute__((__warn_unused_result__, __nonnull__)) |
312 __attribute__((__warn_unused_result__, __nonnull__)) |
313 cxmutstr cx_strcat_a( |
313 cxmutstr cx_strcat_a( |
314 CxAllocator *alloc, |
314 CxAllocator const *alloc, |
315 size_t count, |
315 size_t count, |
316 ... |
316 ... |
317 ); |
317 ); |
318 |
318 |
319 /** |
319 /** |
581 * written to |
581 * written to |
582 * @return the actual number of split items |
582 * @return the actual number of split items |
583 */ |
583 */ |
584 __attribute__((__warn_unused_result__, __nonnull__)) |
584 __attribute__((__warn_unused_result__, __nonnull__)) |
585 size_t cx_strsplit_a( |
585 size_t cx_strsplit_a( |
586 CxAllocator *allocator, |
586 CxAllocator const *allocator, |
587 cxstring string, |
587 cxstring string, |
588 cxstring delim, |
588 cxstring delim, |
589 size_t limit, |
589 size_t limit, |
590 cxstring **output |
590 cxstring **output |
591 ); |
591 ); |
630 * written to |
630 * written to |
631 * @return the actual number of split items |
631 * @return the actual number of split items |
632 */ |
632 */ |
633 __attribute__((__warn_unused_result__, __nonnull__)) |
633 __attribute__((__warn_unused_result__, __nonnull__)) |
634 size_t cx_strsplit_ma( |
634 size_t cx_strsplit_ma( |
635 CxAllocator *allocator, |
635 CxAllocator const *allocator, |
636 cxmutstr string, |
636 cxmutstr string, |
637 cxstring delim, |
637 cxstring delim, |
638 size_t limit, |
638 size_t limit, |
639 cxmutstr **output |
639 cxmutstr **output |
640 ); |
640 ); |
712 * @return a duplicate of the string |
712 * @return a duplicate of the string |
713 * @see cx_strdup() |
713 * @see cx_strdup() |
714 */ |
714 */ |
715 __attribute__((__warn_unused_result__, __nonnull__)) |
715 __attribute__((__warn_unused_result__, __nonnull__)) |
716 cxmutstr cx_strdup_a( |
716 cxmutstr cx_strdup_a( |
717 CxAllocator *allocator, |
717 CxAllocator const *allocator, |
718 cxstring string |
718 cxstring string |
719 ); |
719 ); |
720 |
720 |
721 /** |
721 /** |
722 * Creates a duplicate of the specified string. |
722 * Creates a duplicate of the specified string. |
851 * @param replmax maximum number of replacements |
851 * @param replmax maximum number of replacements |
852 * @return the resulting string after applying the replacements |
852 * @return the resulting string after applying the replacements |
853 */ |
853 */ |
854 __attribute__((__warn_unused_result__, __nonnull__)) |
854 __attribute__((__warn_unused_result__, __nonnull__)) |
855 cxmutstr cx_strreplacen_a( |
855 cxmutstr cx_strreplacen_a( |
856 CxAllocator *allocator, |
856 CxAllocator const *allocator, |
857 cxstring str, |
857 cxstring str, |
858 cxstring pattern, |
858 cxstring pattern, |
859 cxstring replacement, |
859 cxstring replacement, |
860 size_t replmax |
860 size_t replmax |
861 ); |
861 ); |