diff options
| author | tylov <[email protected]> | 2023-08-17 09:54:16 +0200 |
|---|---|---|
| committer | tylov <[email protected]> | 2023-08-17 09:54:16 +0200 |
| commit | 311f12d7005351ca245aa1df77889d8db4899862 (patch) | |
| tree | 91d98717390df1394fb4dc0e3a354551e989aa9b /misc/examples | |
| parent | be0e64a9a19d3ca459284c61c497d141a78df1d7 (diff) | |
| download | STC-modified-311f12d7005351ca245aa1df77889d8db4899862.tar.gz STC-modified-311f12d7005351ca245aa1df77889d8db4899862.zip | |
Simplified access to utf8 character .chr in cstr / csview / crawstr iterators. Backward compatibility kept, but deprecated.
Diffstat (limited to 'misc/examples')
| -rw-r--r-- | misc/examples/strings/utf8replace_c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/strings/utf8replace_c.c b/misc/examples/strings/utf8replace_c.c index 1d54486f..317313b0 100644 --- a/misc/examples/strings/utf8replace_c.c +++ b/misc/examples/strings/utf8replace_c.c @@ -15,7 +15,7 @@ int main(void) printf("%s\n", cstr_str(&hello)); c_foreach (c, cstr, hello) - printf("%.*s,", c_SV(c.u8.chr)); + printf("%.*s,", c_SV(c.chr)); cstr str = cstr_lit("scooby, dooby doo"); cstr_replace(&str, "oo", "00"); |
