diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-10-16 13:52:35 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-10-16 13:52:35 -0700 |
| commit | c797ab4794b022f9f2a53f9a80bd6a451bd6d1ee (patch) | |
| tree | a6796b10d9d430ca2676cf593872dec5245ac1ae | |
| parent | ced047ad78734aed239669a0fd9eca9e81718966 (diff) | |
| download | vcpkg-c797ab4794b022f9f2a53f9a80bd6a451bd6d1ee.tar.gz vcpkg-c797ab4794b022f9f2a53f9a80bd6a451bd6d1ee.zip | |
Remove Strings::wformat()
| -rw-r--r-- | toolsrc/include/vcpkg/base/strings.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/toolsrc/include/vcpkg/base/strings.h b/toolsrc/include/vcpkg/base/strings.h index 4adcadb0d..6a4d4ef08 100644 --- a/toolsrc/include/vcpkg/base/strings.h +++ b/toolsrc/include/vcpkg/base/strings.h @@ -17,18 +17,12 @@ namespace vcpkg::Strings::details inline const char* to_printf_arg(const char* s) { return s; } template<class T, class = std::enable_if_t<std::is_arithmetic<T>::value>> - inline T to_printf_arg(T s) + T to_printf_arg(T s) { return s; } std::string format_internal(const char* fmtstr, ...); - - inline const wchar_t* to_wprintf_arg(const std::wstring& s) { return s.c_str(); } - - inline const wchar_t* to_wprintf_arg(const wchar_t* s) { return s; } - - std::wstring wformat_internal(const wchar_t* fmtstr, ...); } namespace vcpkg::Strings @@ -40,13 +34,6 @@ namespace vcpkg::Strings return details::format_internal(fmtstr, to_printf_arg(to_printf_arg(args))...); } - template<class... Args> - std::wstring wformat(const wchar_t* fmtstr, const Args&... args) - { - using vcpkg::Strings::details::to_wprintf_arg; - return details::wformat_internal(fmtstr, to_wprintf_arg(to_wprintf_arg(args))...); - } - std::wstring to_utf16(const CStringView& s); std::string to_utf8(const CWStringView& w); |
