diff options
| author | Emmanuel Leblond | 2017-04-17 21:42:11 +0200 |
|---|---|---|
| committer | Emmanuel Leblond | 2017-05-19 23:28:15 +0200 |
| commit | abcb044bf3f197ef68715f89abec77102bbe58ec (patch) | |
| tree | e1c16a806b9b5ec71730a5b09c2ff6a4b17bc93c /modules/gdnative/godot/godot_string.cpp | |
| parent | a75623f436c215e107ede321afa08a1897552deb (diff) | |
| download | godot-abcb044bf3f197ef68715f89abec77102bbe58ec.tar.gz godot-abcb044bf3f197ef68715f89abec77102bbe58ec.tar.zst godot-abcb044bf3f197ef68715f89abec77102bbe58ec.zip | |
Diffstat (limited to 'modules/gdnative/godot/godot_string.cpp')
| -rw-r--r-- | modules/gdnative/godot/godot_string.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gdnative/godot/godot_string.cpp b/modules/gdnative/godot/godot_string.cpp index 92c0b0404..59d20c6d2 100644 --- a/modules/gdnative/godot/godot_string.cpp +++ b/modules/gdnative/godot/godot_string.cpp @@ -53,6 +53,12 @@ void GDAPI godot_string_new_data(godot_string *p_str, const char *p_contents, co *p = String::utf8(p_contents, p_size); } +void GDAPI godot_string_new_unicode_data(godot_string *p_str, const wchar_t *p_contents, const int p_size) { + String *p = (String *)p_str; + memnew_placement(p, String); + *p = String(p_contents, p_size); +} + void GDAPI godot_string_get_data(const godot_string *p_str, char *p_dest, int *p_size) { String *p = (String *)p_str; if (p_size != NULL) { |
