[Complex Test Layouts] Change String to use UTF-32 encoding on all platforms.
This commit is contained in:
parent
0864f12f0d
commit
80b8eff6aa
94 changed files with 4889 additions and 1686 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue