mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-05 12:23:22 +00:00
Unify TextServer built-in module and GDExtension code.
This commit is contained in:
@@ -463,6 +463,12 @@ String String::operator+(const String &p_str) const {
|
||||
return res;
|
||||
}
|
||||
|
||||
String String::operator+(char32_t p_char) const {
|
||||
String res = *this;
|
||||
res += p_char;
|
||||
return res;
|
||||
}
|
||||
|
||||
String operator+(const char *p_chr, const String &p_str) {
|
||||
String tmp = p_chr;
|
||||
tmp += p_str;
|
||||
|
||||
@@ -225,6 +225,7 @@ public:
|
||||
bool operator==(const String &p_str) const;
|
||||
bool operator!=(const String &p_str) const;
|
||||
String operator+(const String &p_str) const;
|
||||
String operator+(char32_t p_char) const;
|
||||
|
||||
String &operator+=(const String &);
|
||||
String &operator+=(char32_t p_char);
|
||||
|
||||
Reference in New Issue
Block a user