Add string_view support to more UTF functions

This commit is contained in:
Henrik Rydgård committed 2024-01-12 14:03:02 +01:00
1 parent 9c9fe8bf8f
commit 0fc3e2b777
6 files changed
+43 -43

No files matched your search

+1
View File
@@ -284,6 +284,7 @@ std::string_view StripQuotes(std::string_view s) {
return s;
}
// NOTE: str must live at least as long as all uses of output.
void SplitString(std::string_view str, const char delim, std::vector<std::string_view> &output) {
size_t next = 0;
for (size_t pos = 0, len = str.length(); pos < len; ++pos) {