aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-05-03 15:03:35 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-05-03 15:03:35 -0700
commit8f0ebdf8d561ef8402db44cd9abb2c912cff276d (patch)
treee2ad3858d36ada9c11d56aff73071ed233bc72b0 /toolsrc/include
parent6ec3a486332bd50500decee0aeaa166fa37ba8d2 (diff)
downloadvcpkg-8f0ebdf8d561ef8402db44cd9abb2c912cff276d.tar.gz
vcpkg-8f0ebdf8d561ef8402db44cd9abb2c912cff276d.zip
[vcpkg] Remove utf16 usage from non-Windows
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/base/strings.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg/base/strings.h b/toolsrc/include/vcpkg/base/strings.h
index 4cc17bcf4..e165c69da 100644
--- a/toolsrc/include/vcpkg/base/strings.h
+++ b/toolsrc/include/vcpkg/base/strings.h
@@ -34,9 +34,11 @@ namespace vcpkg::Strings
return details::format_internal(fmtstr, to_printf_arg(to_printf_arg(args))...);
}
+#if defined(_WIN32)
std::wstring to_utf16(const CStringView& s);
std::string to_utf8(const wchar_t* w);
+#endif
std::string escape_string(const CStringView& s, char char_to_escape, char escape_char);