You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
[Complex Test Layouts] Change String to use UTF-32 encoding on all platforms.
This commit is contained in:
@@ -61,7 +61,7 @@ String StringBuilder::as_string() const {
|
||||
return "";
|
||||
}
|
||||
|
||||
CharType *buffer = memnew_arr(CharType, string_length);
|
||||
char32_t *buffer = memnew_arr(char32_t, string_length);
|
||||
|
||||
int current_position = 0;
|
||||
|
||||
@@ -73,7 +73,7 @@ String StringBuilder::as_string() const {
|
||||
// Godot string
|
||||
const String &s = strings[godot_string_elem];
|
||||
|
||||
memcpy(buffer + current_position, s.ptr(), s.length() * sizeof(CharType));
|
||||
memcpy(buffer + current_position, s.ptr(), s.length() * sizeof(char32_t));
|
||||
|
||||
current_position += s.length();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user