Merge pull request #8437 from touilleMan/gdnative-godot_string_unicode_str
Add godot_string_unicode_str to GDnative
This commit is contained in:
commit
6f9ec3acfc
@ -80,6 +80,11 @@ const char GDAPI *godot_string_c_str(const godot_string *p_str) {
|
|||||||
return s->utf8().get_data();
|
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) {
|
godot_bool GDAPI godot_string_operator_equal(const godot_string *p_a, const godot_string *p_b) {
|
||||||
String *a = (String *)p_a;
|
String *a = (String *)p_a;
|
||||||
String *b = (String *)p_b;
|
String *b = (String *)p_b;
|
||||||
|
@ -53,6 +53,7 @@ void GDAPI godot_string_copy_string(const godot_string *p_dest, const godot_stri
|
|||||||
|
|
||||||
wchar_t GDAPI *godot_string_operator_index(godot_string *p_str, const godot_int p_idx);
|
wchar_t GDAPI *godot_string_operator_index(godot_string *p_str, const godot_int p_idx);
|
||||||
const char GDAPI *godot_string_c_str(const godot_string *p_str);
|
const char GDAPI *godot_string_c_str(const godot_string *p_str);
|
||||||
|
const wchar_t GDAPI *godot_string_unicode_str(const godot_string *p_str);
|
||||||
|
|
||||||
godot_bool GDAPI godot_string_operator_equal(const godot_string *p_a, const godot_string *p_b);
|
godot_bool GDAPI godot_string_operator_equal(const godot_string *p_a, const godot_string *p_b);
|
||||||
godot_bool GDAPI godot_string_operator_less(const godot_string *p_a, const godot_string *p_b);
|
godot_bool GDAPI godot_string_operator_less(const godot_string *p_a, const godot_string *p_b);
|
||||||
|
Loading…
Reference in New Issue
Block a user