diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2018-05-23 17:19:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-23 17:19:35 +0200 |
commit | acf6c326fb6a800040ac31da7cc37b9560571434 (patch) | |
tree | b50f15a1e298646c5b26874dc3593c53708ca496 /core/variant_call.cpp | |
parent | f1e5a47fab3b6e305427deb9fac03e9295dd7b16 (diff) | |
parent | 6fe415ca7f439d56321d327dfdd18105a09a70d1 (diff) | |
download | redot-engine-acf6c326fb6a800040ac31da7cc37b9560571434.tar.gz |
Merge pull request #14715 from Krakean/string_add_rsplit2
Added rsplit() method to String class
Diffstat (limited to 'core/variant_call.cpp')
-rw-r--r-- | core/variant_call.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp index 4e883d496f..4158c2a60e 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -257,6 +257,7 @@ struct _VariantCall { VCALL_LOCALMEM2R(String, insert); VCALL_LOCALMEM0R(String, capitalize); VCALL_LOCALMEM3R(String, split); + VCALL_LOCALMEM3R(String, rsplit); VCALL_LOCALMEM2R(String, split_floats); VCALL_LOCALMEM0R(String, to_upper); VCALL_LOCALMEM0R(String, to_lower); @@ -1469,6 +1470,7 @@ void register_variant_methods() { ADDFUNC2R(STRING, STRING, String, insert, INT, "position", STRING, "what", varray()); ADDFUNC0R(STRING, STRING, String, capitalize, varray()); ADDFUNC3R(STRING, POOL_STRING_ARRAY, String, split, STRING, "divisor", BOOL, "allow_empty", INT, "maxsplit", varray(true, 0)); + ADDFUNC3R(STRING, POOL_STRING_ARRAY, String, rsplit, STRING, "divisor", BOOL, "allow_empty", INT, "maxsplit", varray(true, 0)); ADDFUNC2R(STRING, POOL_REAL_ARRAY, String, split_floats, STRING, "divisor", BOOL, "allow_empty", varray(true)); ADDFUNC0R(STRING, STRING, String, to_upper, varray()); |