Change Array arguments to TypedArray
This commit is contained in:
@ -44,7 +44,7 @@
|
||||
<member name="names" type="Dictionary" setter="" getter="get_names" default="{}">
|
||||
A dictionary of named groups and its corresponding group number. Only groups that were matched are included. If multiple groups have the same name, that name would refer to the first matching one.
|
||||
</member>
|
||||
<member name="strings" type="Array" setter="" getter="get_strings" default="[]">
|
||||
<member name="strings" type="PackedStringArray" setter="" getter="get_strings" default="PackedStringArray()">
|
||||
An [Array] of the match and its capturing groups.
|
||||
</member>
|
||||
<member name="subject" type="String" setter="" getter="get_subject" default="""">
|
||||
|
||||
@ -82,8 +82,8 @@ Dictionary RegExMatch::get_names() const {
|
||||
return result;
|
||||
}
|
||||
|
||||
Array RegExMatch::get_strings() const {
|
||||
Array result;
|
||||
PackedStringArray RegExMatch::get_strings() const {
|
||||
PackedStringArray result;
|
||||
|
||||
int size = data.size();
|
||||
|
||||
|
||||
@ -63,7 +63,7 @@ public:
|
||||
int get_group_count() const;
|
||||
Dictionary get_names() const;
|
||||
|
||||
Array get_strings() const;
|
||||
PackedStringArray get_strings() const;
|
||||
String get_string(const Variant &p_name) const;
|
||||
int get_start(const Variant &p_name) const;
|
||||
int get_end(const Variant &p_name) const;
|
||||
|
||||
Reference in New Issue
Block a user