diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-16 16:53:40 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-16 16:53:40 +0200 |
commit | 20e24bd2bb033d3fe019bd2a1a8c4f1590c1399b (patch) | |
tree | deba7be1213d13ea6fc63c4874fd35178638ce0e /core/variant/variant_call.cpp | |
parent | 3518a30674afed7d1e69fb260e7826eb9eda0a7f (diff) | |
parent | 230385b5875643c2e162e6c4d2a27aaef95e1cc8 (diff) | |
download | redot-engine-20e24bd2bb033d3fe019bd2a1a8c4f1590c1399b.tar.gz |
Merge pull request #78529 from Chaosus/string_reverse
Add `String.reverse` method
Diffstat (limited to 'core/variant/variant_call.cpp')
-rw-r--r-- | core/variant/variant_call.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/variant/variant_call.cpp b/core/variant/variant_call.cpp index dad9183216..ccf9b82022 100644 --- a/core/variant/variant_call.cpp +++ b/core/variant/variant_call.cpp @@ -1659,6 +1659,7 @@ static void _register_variant_builtin_methods() { bind_string_methodv(replace, static_cast<String (String::*)(const String &, const String &) const>(&String::replace), sarray("what", "forwhat"), varray()); bind_string_method(replacen, sarray("what", "forwhat"), varray()); bind_string_method(repeat, sarray("count"), varray()); + bind_string_method(reverse, sarray(), varray()); bind_string_method(insert, sarray("position", "what"), varray()); bind_string_method(erase, sarray("position", "chars"), varray(1)); bind_string_method(capitalize, sarray(), varray()); |