Pioneer
TextUtils.h
Go to the documentation of this file.
1 // Copyright © 2008-2023 Pioneer Developers. See AUTHORS.txt for details
2 // Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3 
4 #ifndef _WIN32_TEXTUTILS_H
5 #define _WIN32_TEXTUTILS_H
6 
7 #include <string>
8 
9 std::wstring transcode_utf8_to_utf16(const char *s, size_t nbytes);
10 std::wstring transcode_utf8_to_utf16(const std::string &s);
11 std::string transcode_utf16_to_utf8(const wchar_t *s, size_t nchars);
12 std::string transcode_utf16_to_utf8(const std::wstring &s);
13 
14 #endif // _WIN32_TEXTUTILS_H
std::string transcode_utf16_to_utf8(const wchar_t *s, size_t nchars)
Definition: TextUtils.cpp:29
std::wstring transcode_utf8_to_utf16(const char *s, size_t nbytes)
Definition: TextUtils.cpp:12