Change Array arguments to TypedArray

This commit is contained in:
kobewi
2022-08-31 19:24:04 +02:00
parent 736632ee7e
commit 7adc8376ed
66 changed files with 159 additions and 158 deletions

View File

@ -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="&quot;&quot;">

View File

@ -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();

View File

@ -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;