diff options
| author | Tyge Løvset <[email protected]> | 2022-06-01 21:57:03 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-06-01 21:57:03 +0200 |
| commit | ccfef3a4f82ce48facde6499c53e62ab1065cd8b (patch) | |
| tree | e6a67de45b4cddca09b8721c3582e7906f3c3f56 /examples/utf8replace_c.c | |
| parent | 89424a2ff3a46dbd82a6954f97a25f973e981c98 (diff) | |
| download | STC-modified-ccfef3a4f82ce48facde6499c53e62ab1065cd8b.tar.gz STC-modified-ccfef3a4f82ce48facde6499c53e62ab1065cd8b.zip | |
Change: Split replace into two: cstr_replace(s, search, repl), cstr_replace_from(s, pos, search, repl): matches cstr_find() + cstr_find_from().
Diffstat (limited to 'examples/utf8replace_c.c')
| -rw-r--r-- | examples/utf8replace_c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/utf8replace_c.c b/examples/utf8replace_c.c index 27f33761..c38b37e4 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(&hello, 0, "🐨", "ø"); + cstr_replace(&hello, "🐨", "ø"); printf("%s\n", cstr_str(&hello)); c_foreach (c, cstr, hello) |
