Clarify String.is_subsequence_of() working differently from String.contains()

`is_subsequence_of()` has very different behavior from `contains()`.
This commit is contained in:
Hugo Locurcio
2025-05-20 00:59:31 +02:00
parent 4a44078451
commit f69d2eda80
2 changed files with 4 additions and 4 deletions

View File

@@ -440,7 +440,7 @@
<return type="bool" />
<param index="0" name="text" type="String" />
<description>
Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order.
Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order. This is not the same as [method contains].
[codeblock]
var text = "Wow, incredible!"
@@ -455,7 +455,7 @@
<return type="bool" />
<param index="0" name="text" type="String" />
<description>
Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order, [b]ignoring case[/b].
Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order, [b]ignoring case[/b]. This is not the same as [method containsn].
</description>
</method>
<method name="is_valid_ascii_identifier" qualifiers="const">

View File

@@ -415,7 +415,7 @@
<return type="bool" />
<param index="0" name="text" type="String" />
<description>
Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order.
Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order. This is not the same as [method contains].
[codeblock]
var text = "Wow, incredible!"
@@ -430,7 +430,7 @@
<return type="bool" />
<param index="0" name="text" type="String" />
<description>
Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order, [b]ignoring case[/b].
Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order, [b]ignoring case[/b]. This is not the same as [method containsn].
</description>
</method>
<method name="is_valid_ascii_identifier" qualifiers="const">