summaryrefslogtreecommitdiffhomepage
path: root/examples/utf8replace_c.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-06-01 21:43:30 +0200
committerTyge Løvset <[email protected]>2022-06-01 21:43:30 +0200
commit89424a2ff3a46dbd82a6954f97a25f973e981c98 (patch)
tree2b72d8066cebaa580c3686bf477456e10d3e37fc /examples/utf8replace_c.c
parent239276667b547dc795678cf3ac3c28c5ccf72532 (diff)
downloadSTC-modified-89424a2ff3a46dbd82a6954f97a25f973e981c98.tar.gz
STC-modified-89424a2ff3a46dbd82a6954f97a25f973e981c98.zip
Renamed cstr_replace() => cstr_replace_at(), and cstr_replace_one() => cstr_replace(self, start, search, replace).
Diffstat (limited to 'examples/utf8replace_c.c')
-rw-r--r--examples/utf8replace_c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/utf8replace_c.c b/examples/utf8replace_c.c
index 89d5375f..27f33761 100644
--- a/examples/utf8replace_c.c
+++ b/examples/utf8replace_c.c
@@ -13,7 +13,7 @@ int main() {
);
printf("%s\n", cstr_str(&hello));
- cstr_replace_one(&hello, 0, "🐨", "ø");
+ cstr_replace(&hello, 0, "🐨", "ø");
printf("%s\n", cstr_str(&hello));
c_foreach (c, cstr, hello)