diff options
| author | Dmitry Koteroff | 2017-12-15 22:23:58 +0300 |
|---|---|---|
| committer | Dmitry Koteroff | 2017-12-15 22:23:58 +0300 |
| commit | 6fe415ca7f439d56321d327dfdd18105a09a70d1 (patch) | |
| tree | 73c92b2a464cc8b8cc03f3749fa27fd3deeca6bd /core/variant_call.cpp | |
| parent | 7767d89c4501041229d723d5445aa103ffe71937 (diff) | |
| download | godot-6fe415ca7f439d56321d327dfdd18105a09a70d1.tar.gz godot-6fe415ca7f439d56321d327dfdd18105a09a70d1.tar.zst godot-6fe415ca7f439d56321d327dfdd18105a09a70d1.zip | |
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 2b99a60ba..4cc29b258 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -255,6 +255,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); @@ -1447,6 +1448,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()); |
