summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/utf8replace_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/utf8replace_c.c')
-rw-r--r--misc/examples/utf8replace_c.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/misc/examples/utf8replace_c.c b/misc/examples/utf8replace_c.c
index 2d8d1921..3f98a2a6 100644
--- a/misc/examples/utf8replace_c.c
+++ b/misc/examples/utf8replace_c.c
@@ -16,11 +16,8 @@ int main() {
c_FOREACH (c, cstr, hello)
printf("%.*s,", c_ARGSV(c.u8.chr));
- //csview sv = c_SV("If you find the time, you will find the winner");
- //str = cstr_replace_sv(sv, c_SV("find"), c_SV("match"), 0);
-
- str = cstr_lit("If you find the time, you will find the winner");
- cstr_replace(&str, "find", "match");
+ str = cstr_lit("scooby, dooby doo");
+ cstr_replace(&str, "oo", "00");
printf("\n%s\n", cstr_str(&str));
}
}