diff options
Diffstat (limited to 'include/cru/base/StringUtil.h')
| -rw-r--r-- | include/cru/base/StringUtil.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/cru/base/StringUtil.h b/include/cru/base/StringUtil.h index 8c7841d7..a69bb884 100644 --- a/include/cru/base/StringUtil.h +++ b/include/cru/base/StringUtil.h @@ -380,4 +380,9 @@ Index Utf8IndexCodeUnitToCodePoint(const Utf8CodeUnit* ptr, Index size, Index po Index Utf8IndexCodePointToCodeUnit(const Utf8CodeUnit* ptr, Index size, Index position); Index Utf16IndexCodeUnitToCodePoint(const Utf16CodeUnit* ptr, Index size, Index position); Index Utf16IndexCodePointToCodeUnit(const Utf16CodeUnit* ptr, Index size, Index position); + +#ifdef _WIN32 +std::wstring ToUtf16(std::string_view str); +std::string ToUtf8(std::wstring_view str); +#endif } // namespace cru::string |
