aboutsummaryrefslogtreecommitdiff
path: root/toolsrc
diff options
context:
space:
mode:
authorPhil Christensen <philc@microsoft.com>2019-08-21 13:48:47 -0700
committerPhil Christensen <philc@microsoft.com>2019-08-21 13:48:47 -0700
commit051a6fd5b3d83fedc83592236413c9b8c0015c6d (patch)
treee1c3cb9a23d080bb07d85b92c1ce0694fab8d31e /toolsrc
parent9ff11b0d0014913856041103c647ba5c9c1bc556 (diff)
downloadvcpkg-051a6fd5b3d83fedc83592236413c9b8c0015c6d.tar.gz
vcpkg-051a6fd5b3d83fedc83592236413c9b8c0015c6d.zip
[boost] split Build-Depends on multipls lines
Diffstat (limited to 'toolsrc')
-rw-r--r--toolsrc/src/vcpkg/parse.cpp7
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;
}