diff options
Diffstat (limited to 'toolsrc/src')
| -rw-r--r-- | toolsrc/src/vcpkg/parse.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/toolsrc/src/vcpkg/parse.cpp b/toolsrc/src/vcpkg/parse.cpp index 0509339c5..8f90aef15 100644 --- a/toolsrc/src/vcpkg/parse.cpp +++ b/toolsrc/src/vcpkg/parse.cpp @@ -44,6 +44,11 @@ namespace vcpkg::Parse return nullptr; } + static bool is_whitespace(char c) + { + return c == ' ' || c == '\t' || c == '\n' || c == '\r'; + } + std::vector<std::string> parse_comma_list(const std::string& str) { if (str.empty()) @@ -66,7 +71,7 @@ namespace vcpkg::Parse // skip comma and space ++pos; - while (str[pos] == ' ') + while (is_whitespace(str[pos])) { ++pos; } |
