summaryrefslogtreecommitdiffhomepage
path: root/examples/splitstr.c
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 /examples/splitstr.c
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 'examples/splitstr.c')
-rw-r--r--examples/splitstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/splitstr.c b/examples/splitstr.c
index 695e7595..35fe3cfa 100644
--- a/examples/splitstr.c
+++ b/examples/splitstr.c
@@ -18,7 +18,7 @@ cvec_str string_split(csview str, csview sep)
size_t pos = 0;
while (pos != str.size) {
csview tok = csview_token(str, sep, &pos);
- cvec_str_push_back(&vec, cstr_from_v(tok));
+ cvec_str_push_back(&vec, cstr_from_sv(tok));
}
return vec;
}