summaryrefslogtreecommitdiffhomepage
path: root/include/stc/utf8.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-01-14 09:09:45 +0100
committerTyge Løvset <[email protected]>2022-01-14 09:09:45 +0100
commitc0359b2d99be860370a3520cbddf11cd3dd1ade9 (patch)
tree152a04e3ef9e0b9e5be13f5ffee4cab51905c2d6 /include/stc/utf8.h
parent379c01f19e186dbd9889bc9dd43d6d867a2a33be (diff)
downloadSTC-modified-c0359b2d99be860370a3520cbddf11cd3dd1ade9.tar.gz
STC-modified-c0359b2d99be860370a3520cbddf11cd3dd1ade9.zip
Renamed *_v() methods to *_sv(). Note: this breaks API, hopefully not too intrusive.
The change was needed to be consistent in using 'sv' as a shorthand for "string view" everywhere, and is easier to understand than _v().
Diffstat (limited to 'include/stc/utf8.h')
-rw-r--r--include/stc/utf8.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/utf8.h b/include/stc/utf8.h
index a064b906..93f8461a 100644
--- a/include/stc/utf8.h
+++ b/include/stc/utf8.h
@@ -9,7 +9,7 @@ int main()
{
c_auto (cstr, s1) {
s1 = cstr_new("hell😀 w😀rld");
- cstr_replace_v(&s1, utf8_substr(s1.str, 7, 1), c_sv("x"));
+ cstr_replace_sv(&s1, utf8_substr(s1.str, 7, 1), c_sv("x"));
printf("%s\n", s1.str);
csview sv = csview_from_s(s1);