diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-02-13 14:41:29 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-03-17 08:15:29 +0200 |
commit | f19cd44346a68a649cabfe85cc3ba7a44ceb0ca4 (patch) | |
tree | 16f36f18199b28305e92084b4790d664632f3fac /core/string/ustring.cpp | |
parent | 178961a6dc14155c0e65ec0040a2b2b328550317 (diff) | |
download | redot-engine-f19cd44346a68a649cabfe85cc3ba7a44ceb0ca4.tar.gz |
Unify TextServer built-in module and GDExtension code.
Diffstat (limited to 'core/string/ustring.cpp')
-rw-r--r-- | core/string/ustring.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/string/ustring.cpp b/core/string/ustring.cpp index 759c121f29..7cfd34b53e 100644 --- a/core/string/ustring.cpp +++ b/core/string/ustring.cpp @@ -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; |