Skip to content

cf_string_replace

Category: string
GitHub: cute_string.h


Replaces all occurrences of replace_me with with_me in the string.

#define cf_string_replace(s, replace_me, with_me) sreplace(s, replace_me, with_me)
Parameters Description
s The string. Modified in-place.
replace_me The substring to find.
with_me The replacement substring.

Remarks

Shortform: sreplace(s, replace_me, with_me).

cf_string_find
cf_string_erase
cf_string_dedup