diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-08-29 16:20:21 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-08-29 16:20:46 -0700 |
| commit | 5337adf1078f27c993f01662b7dadb8da2801356 (patch) | |
| tree | 84d6dc9d137a03fb17956f37ed47578cb748b118 /toolsrc/src/vcpkg_Strings.cpp | |
| parent | d1d01075adf025690eeceffc2fc41f9a1a27982b (diff) | |
| download | vcpkg-5337adf1078f27c993f01662b7dadb8da2801356.tar.gz vcpkg-5337adf1078f27c993f01662b7dadb8da2801356.zip | |
Remove Strings::is_empty(). Use std::string.empty()
Diffstat (limited to 'toolsrc/src/vcpkg_Strings.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg_Strings.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/toolsrc/src/vcpkg_Strings.cpp b/toolsrc/src/vcpkg_Strings.cpp index d08898bce..15851829d 100644 --- a/toolsrc/src/vcpkg_Strings.cpp +++ b/toolsrc/src/vcpkg_Strings.cpp @@ -71,9 +71,6 @@ namespace vcpkg::Strings::details namespace vcpkg::Strings { - bool is_empty(const CStringView s) { return s == EMPTY; } - bool is_empty(const CWStringView s) { return s == WEMPTY; } - std::wstring to_utf16(const CStringView s) { std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>, wchar_t> conversion; @@ -133,7 +130,7 @@ namespace vcpkg::Strings trim(&s); } - Util::erase_remove_if(*strings, [](const std::string& s) { return Strings::is_empty(s); }); + Util::erase_remove_if(*strings, [](const std::string& s) { return s.empty(); }); } std::vector<std::string> split(const std::string& s, const std::string& delimiter) |
