Unify TextServer built-in module and GDExtension code.

This commit is contained in:
bruvzg 2022-02-13 14:41:29 +02:00
parent 178961a6dc
commit f19cd44346
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
49 changed files with 4658 additions and 3126 deletions

View file

@ -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;

View file

@ -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);