Merge pull request #52041 from Rubonnek/expose-simplify-path
Expose `String.simplify_path`
This commit is contained in:
commit
7e0f1fa2ec
2 changed files with 7 additions and 0 deletions
|
@ -1422,6 +1422,7 @@ static void _register_variant_builtin_methods() {
|
||||||
|
|
||||||
bind_method(String, is_absolute_path, sarray(), varray());
|
bind_method(String, is_absolute_path, sarray(), varray());
|
||||||
bind_method(String, is_rel_path, sarray(), varray());
|
bind_method(String, is_rel_path, sarray(), varray());
|
||||||
|
bind_method(String, simplify_path, sarray(), varray());
|
||||||
bind_method(String, get_base_dir, sarray(), varray());
|
bind_method(String, get_base_dir, sarray(), varray());
|
||||||
bind_method(String, get_file, sarray(), varray());
|
bind_method(String, get_file, sarray(), varray());
|
||||||
bind_method(String, xml_escape, sarray("escape_quotes"), varray(false));
|
bind_method(String, xml_escape, sarray("escape_quotes"), varray(false));
|
||||||
|
|
|
@ -646,6 +646,12 @@
|
||||||
Returns the similarity index of the text compared to this string. 1 means totally similar and 0 means totally dissimilar.
|
Returns the similarity index of the text compared to this string. 1 means totally similar and 0 means totally dissimilar.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="simplify_path" qualifiers="const">
|
||||||
|
<return type="String" />
|
||||||
|
<description>
|
||||||
|
Returns a simplified canonical path.
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="split" qualifiers="const">
|
<method name="split" qualifiers="const">
|
||||||
<return type="PackedStringArray" />
|
<return type="PackedStringArray" />
|
||||||
<argument index="0" name="delimiter" type="String" />
|
<argument index="0" name="delimiter" type="String" />
|
||||||
|
|
Loading…
Reference in a new issue