diff options
| author | David Snopek <dsnopek@gmail.com> | 2023-07-07 08:26:55 -0500 |
|---|---|---|
| committer | David Snopek <dsnopek@gmail.com> | 2023-07-31 15:14:10 -0500 |
| commit | 8bc1c1dbeb0342ae593c46c97e7032bbc664194c (patch) | |
| tree | b8e2d273b4bdd17429adf91b88a6c16ac227f639 /src/variant | |
| parent | c5d8447861fad7e5c812008420c3ec0ca7531590 (diff) | |
| download | redot-cpp-8bc1c1dbeb0342ae593c46c97e7032bbc664194c.tar.gz | |
Implement `String::resize()`
Diffstat (limited to 'src/variant')
| -rw-r--r-- | src/variant/char_string.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/variant/char_string.cpp b/src/variant/char_string.cpp index 856037c..fc8845e 100644 --- a/src/variant/char_string.cpp +++ b/src/variant/char_string.cpp @@ -289,6 +289,10 @@ CharWideString String::wide_string() const { return str; } +Error String::resize(int p_size) { + return (Error)internal::gdextension_interface_string_resize(_native_ptr(), p_size); +} + String &String::operator=(const char *p_str) { *this = String(p_str); return *this; |
