Skip to content

Commit b647f19

Browse files
authored
Move 'case-sensitive' to better match placement of 'case-insensitive'
1 parent 999d956 commit b647f19

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/classes/String.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
<param index="1" name="from" type="int" default="0" />
162162
<param index="2" name="to" type="int" default="0" />
163163
<description>
164-
Returns the number of occurrences of the substring [param what] between [param from] and [param to] positions (case-sensitive). If [param to] is 0, the search continues until the end of the string. See [method countn] for a case-insensitive version.
164+
Returns the number of case-sensitive occurrences of the substring [param what] between [param from] and [param to] positions. If [param to] is 0, the search continues until the end of the string. See [method countn] for a case-insensitive version.
165165
</description>
166166
</method>
167167
<method name="countn" qualifiers="const">
@@ -215,7 +215,7 @@
215215
<param index="0" name="what" type="String" />
216216
<param index="1" name="from" type="int" default="0" />
217217
<description>
218-
Returns the index of the [b]first[/b] occurrence of [param what] in this string, or [code]-1[/code] if there are none (case-sensitive). The search's start can be specified with [param from], continuing to the end of the string. See [method findn] for a case-insensitive version.
218+
Returns the index of the [b]first[/b] case-sensitive occurrence of [param what] in this string, or [code]-1[/code] if there are none. The search's start can be specified with [param from], continuing to the end of the string. See [method findn] for a case-insensitive version.
219219
[codeblocks]
220220
[gdscript]
221221
print("Team".find("I")) # Prints -1
@@ -441,7 +441,7 @@
441441
<return type="bool" />
442442
<param index="0" name="text" type="String" />
443443
<description>
444-
Returns [code]true[/code] if all characters of this string can be found in [param text] in their original order (case-sensitive). This is not the same as [method contains]. See [method is_subsequence_ofn] for a case-insensitive version.
444+
Returns [code]true[/code] if all characters of this string can be found in [param text] (case-sensitive) in their original order. This is not the same as [method contains]. See [method is_subsequence_ofn] for a case-insensitive version.
445445
[codeblock]
446446
var text = "Wow, incredible!"
447447

@@ -790,7 +790,7 @@
790790
<param index="0" name="what" type="String" />
791791
<param index="1" name="forwhat" type="String" />
792792
<description>
793-
Replaces all occurrences of [param what] inside the string with the given [param forwhat] (case-sensitive). See [method replacen] for a case-insensitive version.
793+
Replaces all case-sensitive occurrences of [param what] inside the string with the given [param forwhat]. See [method replacen] for a case-insensitive version.
794794
</description>
795795
</method>
796796
<method name="replace_char" qualifiers="const">
@@ -828,7 +828,7 @@
828828
<param index="0" name="what" type="String" />
829829
<param index="1" name="from" type="int" default="-1" />
830830
<description>
831-
Returns the index of the [b]last[/b] occurrence of [param what] in this string, or [code]-1[/code] if there are none (case-sensitive). The search's start can be specified with [param from], continuing to the beginning of the string. This method is the reverse of [method find]. See [method rfindn] for a case-insensitive version.
831+
Returns the index of the [b]last[/b] case-sensitive occurrence of [param what] in this string, or [code]-1[/code] if there are none. The search's start can be specified with [param from], continuing to the beginning of the string. This method is the reverse of [method find]. See [method rfindn] for a case-insensitive version.
832832
</description>
833833
</method>
834834
<method name="rfindn" qualifiers="const">

0 commit comments

Comments
 (0)