diff options
| author | Billy O'Neal <bion@microsoft.com> | 2020-05-19 15:05:53 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-19 15:05:53 -0700 |
| commit | 0116b86e38517d9f430e150feb19914915b734da (patch) | |
| tree | f6bedf9495cb807a9f9d5f75daa0a76bfd7d1ae6 /toolsrc/include | |
| parent | 9a0652b87002b671a3dd90038461f912d368a398 (diff) | |
| download | vcpkg-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.h | 4 |
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); |
