mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Expose String::join over to GDScript
This commit is contained in:
parent
7fcfde9b75
commit
d03b82cde7
2 changed files with 13 additions and 0 deletions
|
@ -268,6 +268,7 @@ struct _VariantCall {
|
|||
VCALL_LOCALMEM3R(String, split);
|
||||
VCALL_LOCALMEM3R(String, rsplit);
|
||||
VCALL_LOCALMEM2R(String, split_floats);
|
||||
VCALL_LOCALMEM1R(String, join);
|
||||
VCALL_LOCALMEM0R(String, to_upper);
|
||||
VCALL_LOCALMEM0R(String, to_lower);
|
||||
VCALL_LOCALMEM1R(String, left);
|
||||
|
@ -1669,6 +1670,7 @@ void register_variant_methods() {
|
|||
ADDFUNC3R(STRING, POOL_STRING_ARRAY, String, split, STRING, "delimiter", BOOL, "allow_empty", INT, "maxsplit", varray(true, 0));
|
||||
ADDFUNC3R(STRING, POOL_STRING_ARRAY, String, rsplit, STRING, "delimiter", BOOL, "allow_empty", INT, "maxsplit", varray(true, 0));
|
||||
ADDFUNC2R(STRING, POOL_REAL_ARRAY, String, split_floats, STRING, "delimiter", BOOL, "allow_empty", varray(true));
|
||||
ADDFUNC1R(STRING, STRING, String, join, POOL_STRING_ARRAY, "parts", varray());
|
||||
|
||||
ADDFUNC0R(STRING, STRING, String, to_upper, varray());
|
||||
ADDFUNC0R(STRING, STRING, String, to_lower, varray());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue