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 /docs | |
| 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 'docs')
| -rw-r--r-- | docs/crawstr_api.md | 2 | ||||
| -rw-r--r-- | docs/csview_api.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/crawstr_api.md b/docs/crawstr_api.md index 97804e23..7d663a04 100644 --- a/docs/crawstr_api.md +++ b/docs/crawstr_api.md @@ -85,7 +85,7 @@ int main(void) printf("%s\n", rs.str); c_foreach (i, crawstr, rs) - printf("%.*s ", c_SV(i.u8.chr)); + printf("%.*s ", c_SV(i.chr)); puts(""); cstr str = cstr_toupper_sv(crawstr_sv(rs)); diff --git a/docs/csview_api.md b/docs/csview_api.md index 5202d6f5..1d58d73c 100644 --- a/docs/csview_api.md +++ b/docs/csview_api.md @@ -149,7 +149,7 @@ int main(void) printf("%s\n", cstr_str(&s1)); c_foreach (i, cstr, s1) - printf("%.*s,", c_SV(i.u8.chr)); + printf("%.*s,", c_SV(i.chr)); cstr_drop(&s1); } |
