summaryrefslogtreecommitdiff
path: root/modules/gdnative/godot/godot_string.cpp
diff options
context:
space:
mode:
authorThomas Herzog <karroffel@users.noreply.github.com>2017-04-17 16:51:57 +0200
committerGitHub <noreply@github.com>2017-04-17 16:51:57 +0200
commit6f9ec3acfc45ae4f3649777a41bd3685a81fb114 (patch)
treea0f9d09327345f64913f687e0e810e7fdbfa8b90 /modules/gdnative/godot/godot_string.cpp
parent95fe6b5d8c42faef20c9f69cfc1883ffd9ce5104 (diff)
parent8400de76a73ff56de28d944c3c6a480eb1e683c6 (diff)
Merge pull request #8437 from touilleMan/gdnative-godot_string_unicode_str
Add godot_string_unicode_str to GDnative
Diffstat (limited to 'modules/gdnative/godot/godot_string.cpp')
-rw-r--r--modules/gdnative/godot/godot_string.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gdnative/godot/godot_string.cpp b/modules/gdnative/godot/godot_string.cpp
index 757b8510cf..92c0b04041 100644
--- a/modules/gdnative/godot/godot_string.cpp
+++ b/modules/gdnative/godot/godot_string.cpp
@@ -80,6 +80,11 @@ const char GDAPI *godot_string_c_str(const godot_string *p_str) {
return s->utf8().get_data();
}
+const wchar_t GDAPI *godot_string_unicode_str(const godot_string *p_str) {
+ const String *s = (const String *)p_str;
+ return s->c_str();
+}
+
godot_bool GDAPI godot_string_operator_equal(const godot_string *p_a, const godot_string *p_b) {
String *a = (String *)p_a;
String *b = (String *)p_b;