Skip to content

Commit f2e7e6a

Browse files
Update doc/classes/String.xml
Co-authored-by: A Thousand Ships <[email protected]>
1 parent 22eccd4 commit f2e7e6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/classes/String.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</brief_description>
66
<description>
77
This is the built-in string Variant type (and the one used by GDScript). Strings may contain any number of Unicode characters, and expose methods useful for manipulating and generating strings. Strings are reference-counted and use a copy-on-write approach (every modification to a string returns a new [String]), so passing them around is cheap in resources.
8-
Some string methods have corresponding variations. For example, methods that perform string comparison are [b]case-sensitive[/b] unless stated otherwise, but variations suffixed with [code]n[/code] ([method countn], [method findn], [method replacen], etc.) are [b]case-insensitive[/b] and make no distinction between uppercase and lowercase letters. Another example is methods prefixed with [code]r[/code] ([method rfind], [method rsplit], etc.), which start from the end of the string instead of the beginning.
8+
Some string methods have corresponding variations. For example, methods that perform string comparison are [b]case-sensitive[/b] unless otherwise stated, but variations suffixed with [code]n[/code] ([method countn], [method findn], [method replacen], etc.) are [b]case-insensitive[/b] and make no distinction between uppercase and lowercase letters. Another example is methods prefixed with [code]r[/code] ([method rfind], [method rsplit], etc.), which start from the end of the string instead of the beginning.
99
To convert any [Variant] to or from a string, see [method @GlobalScope.str], [method @GlobalScope.str_to_var], and [method @GlobalScope.var_to_str].
1010
[b]Note:[/b] In a boolean context, a string will evaluate to [code]false[/code] if it is empty ([code]""[/code]). Otherwise, a string will always evaluate to [code]true[/code].
1111
</description>

0 commit comments

Comments
 (0)