summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-06-10 11:46:13 +0200
committerTyge Løvset <[email protected]>2022-06-10 11:46:13 +0200
commit6fc13dad84b2b315ea33af180d907e63a632accd (patch)
treefc9bab464437759dab2fd0edfe4ad3d0eeb6540d /examples
parent8883fc8108428878d3d6291ba8981cf6df72499c (diff)
downloadSTC-modified-6fc13dad84b2b315ea33af180d907e63a632accd.tar.gz
STC-modified-6fc13dad84b2b315ea33af180d907e63a632accd.zip
Changed a few cstr utf8 function names.
Diffstat (limited to 'examples')
-rw-r--r--examples/cstr_match.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cstr_match.c b/examples/cstr_match.c
index 3965b36a..fd420f62 100644
--- a/examples/cstr_match.c
+++ b/examples/cstr_match.c
@@ -14,8 +14,8 @@ int main()
printf("ends_with: %d\n", cstr_ends_with(ss, ".JPG"));
cstr s1 = cstr_new("hell😀 w😀rl🐨");
- csview ch1 = cstr_chr(&s1, 7);
- csview ch2 = cstr_chr(&s1, 10);
+ csview ch1 = cstr_chr_u8(&s1, 7);
+ csview ch2 = cstr_chr_u8(&s1, 10);
printf("%s\nsize: %" PRIuMAX ", %" PRIuMAX "\n", cstr_str(&s1), cstr_u8size(s1), cstr_size(s1));
printf("ch1: %" c_PRIsv "\n", c_ARGsv(ch1));
printf("ch2: %" c_PRIsv "\n", c_ARGsv(ch2));