mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
remove unused function
This commit is contained in:
committed by
majcosta
parent
1004ab6c8c
commit
272ba56fa1
@@ -388,17 +388,6 @@ void ParseCommandLine (
|
||||
++*numargs;
|
||||
}
|
||||
|
||||
inline std::string narrow(std::wstring const& text)
|
||||
{
|
||||
std::locale const loc("");
|
||||
wchar_t const* from = text.c_str();
|
||||
std::size_t const len = text.size();
|
||||
std::vector<char> buffer(len + 1);
|
||||
std::use_facet<std::ctype<wchar_t> >(loc).narrow(from, from + len, '_', &buffer[0]);
|
||||
|
||||
return std::string(&buffer[0], &buffer[len]);
|
||||
}
|
||||
|
||||
// convert UTF-8 string to wstring
|
||||
std::wstring utf8_to_wstring(const std::string& str)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user