aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-03-31 17:42:46 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-31 17:42:46 -0700
commit1e33e2e21362611e350b22f401f25eb50366a2bd (patch)
tree3da419340704a0c59ce177533cc4a8b2b2e46be3 /toolsrc/include
parent77c90c2df532bed65cd77ef85f6a0b6140a214d3 (diff)
downloadvcpkg-1e33e2e21362611e350b22f401f25eb50366a2bd.tar.gz
vcpkg-1e33e2e21362611e350b22f401f25eb50366a2bd.zip
Use cstring_view in utf conversion functions
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg_Strings.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/include/vcpkg_Strings.h b/toolsrc/include/vcpkg_Strings.h
index 879542a94..db3851755 100644
--- a/toolsrc/include/vcpkg_Strings.h
+++ b/toolsrc/include/vcpkg_Strings.h
@@ -99,9 +99,9 @@ namespace vcpkg::Strings
return details::wformat_internal(fmtstr, to_wprintf_arg(to_wprintf_arg(args))...);
}
- std::wstring utf8_to_utf16(const std::string& s);
+ std::wstring utf8_to_utf16(const cstring_view s);
- std::string utf16_to_utf8(const std::wstring& w);
+ std::string utf16_to_utf8(const cwstring_view w);
std::string::const_iterator case_insensitive_ascii_find(const std::string& s, const std::string& pattern);