Add GDScript to_wchar_buffer and get_string_from_wchar functions.

This commit is contained in:
bruvzg 2023-02-13 16:18:12 +02:00
parent 2a05522283
commit d72b563250
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
8 changed files with 44 additions and 1 deletions

View file

@ -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