aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorBilly O'Neal <bion@microsoft.com>2020-05-19 15:05:53 -0700
committerGitHub <noreply@github.com>2020-05-19 15:05:53 -0700
commit0116b86e38517d9f430e150feb19914915b734da (patch)
treef6bedf9495cb807a9f9d5f75daa0a76bfd7d1ae6 /toolsrc/include
parent9a0652b87002b671a3dd90038461f912d368a398 (diff)
downloadvcpkg-0116b86e38517d9f430e150feb19914915b734da.tar.gz
vcpkg-0116b86e38517d9f430e150feb19914915b734da.zip
[vcpkg] Optimize string split slightly. (#11433)
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/base/strings.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/toolsrc/include/vcpkg/base/strings.h b/toolsrc/include/vcpkg/base/strings.h
index d80e040ee..425d846df 100644
--- a/toolsrc/include/vcpkg/base/strings.h
+++ b/toolsrc/include/vcpkg/base/strings.h
@@ -173,9 +173,7 @@ namespace vcpkg::Strings
void trim_all_and_remove_whitespace_strings(std::vector<std::string>* strings);
- std::vector<std::string> split(const std::string& s, const std::string& delimiter);
-
- std::vector<std::string> split(const std::string& s, const std::string& delimiter, size_t max_count);
+ std::vector<std::string> split(const std::string& s, const char delimiter);
std::vector<StringView> find_all_enclosed(StringView input, StringView left_delim, StringView right_delim);