diff options
Diffstat (limited to 'core/string/ustring.cpp')
-rw-r--r-- | core/string/ustring.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/string/ustring.cpp b/core/string/ustring.cpp index 1b3b070592..6a59942a56 100644 --- a/core/string/ustring.cpp +++ b/core/string/ustring.cpp @@ -5034,6 +5034,14 @@ Vector<uint8_t> String::to_utf32_buffer() const { return retval; } +Vector<uint8_t> String::to_wchar_buffer() const { +#ifdef WINDOWS_ENABLED + return to_utf16_buffer(); +#else + return to_utf32_buffer(); +#endif +} + #ifdef TOOLS_ENABLED /** * "Tools TRanslate". Performs string replacement for internationalization |