diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-09-07 14:25:30 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-09-07 14:25:30 -0700 |
| commit | 289f61fcb8382e13e4ac055c664e1b70c23b3d75 (patch) | |
| tree | 8c7055d907b7503563651ca2e5734b36b1e16278 /toolsrc | |
| parent | 76f195dd85c9f3807849e92a89ca2290ab3c9645 (diff) | |
| parent | d47eb63363ed0698351eac5235c7f0aec1c303d6 (diff) | |
| download | vcpkg-289f61fcb8382e13e4ac055c664e1b70c23b3d75.tar.gz vcpkg-289f61fcb8382e13e4ac055c664e1b70c23b3d75.zip | |
Merge branch 'master' into Mixaill-urdfdom
Diffstat (limited to 'toolsrc')
| -rw-r--r-- | toolsrc/VERSION.txt | 2 | ||||
| -rw-r--r-- | toolsrc/src/vcpkg_Strings.cpp | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/toolsrc/VERSION.txt b/toolsrc/VERSION.txt index d27b8ca83..df2e96a41 100644 --- a/toolsrc/VERSION.txt +++ b/toolsrc/VERSION.txt @@ -1 +1 @@ -"0.0.85"
\ No newline at end of file +"0.0.86"
\ No newline at end of file diff --git a/toolsrc/src/vcpkg_Strings.cpp b/toolsrc/src/vcpkg_Strings.cpp index 15851829d..5ad951399 100644 --- a/toolsrc/src/vcpkg_Strings.cpp +++ b/toolsrc/src/vcpkg_Strings.cpp @@ -136,6 +136,11 @@ namespace vcpkg::Strings std::vector<std::string> split(const std::string& s, const std::string& delimiter) { std::vector<std::string> output; + + if(delimiter.empty()){ + output.push_back(s); + return output; + } size_t i = 0; for (size_t pos = s.find(delimiter); pos != std::string::npos; pos = s.find(delimiter, pos)) |
