Skip to content

sreplace

Category: string
GitHub: cute_string.h


Replaces all substrings replace_me with the substring with_me.

#define sreplace(s, replace_me, with_me) cf_string_replace(s, replace_me, with_me)
Parameters Description
s The string. Can be NULL.
replace_me Substring to replace.
with_me The replacement string.

Remarks

Supports srings that start with "0x", "#", or no prefix.

sdyna
strim
sltrim
srtrim
slpad
srpad
sdedup
serase