Path: Use string_view more to avoid allocations

This commit is contained in:
Henrik Rydgård committed 2023-11-13 23:24:42 +01:00
1 parent 70c7bb3b0d
commit d0ee5fc308
8 files changed
+39 -36

No files matched your search

+2 -1
View File
@@ -81,7 +81,8 @@ std::string StripQuotes(const std::string &s);
std::string_view StripSpaces(std::string_view s);
std::string_view StripQuotes(std::string_view s);
void SplitString(const std::string& str, const char delim, std::vector<std::string>& output);
// TODO: Make this a lot more efficient by outputting string_views.
void SplitString(std::string_view str, const char delim, std::vector<std::string>& output);
void GetQuotedStrings(const std::string& str, std::vector<std::string>& output);