summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortetrapod00 <145553014+tetrapod00@users.noreply.github.com>2024-10-23 14:07:27 -0700
committertetrapod00 <145553014+tetrapod00@users.noreply.github.com>2024-10-23 14:07:27 -0700
commita0134ad375da74e0450001cbfc313902255e8bc8 (patch)
tree68b5d68057858d5dacc80891dc69d9ee143cd333
parent3dbef70d17377b5364802554a2ee4d791c9d5b74 (diff)
downloadredot-engine-a0134ad375da74e0450001cbfc313902255e8bc8.tar.gz
Docs: link to GlobalScope string methods from String docs
-rw-r--r--doc/classes/String.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/String.xml b/doc/classes/String.xml
index 40f08dafe6..588d0c73f9 100644
--- a/doc/classes/String.xml
+++ b/doc/classes/String.xml
@@ -6,6 +6,7 @@
<description>
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.
Some string methods have corresponding variations. Variations suffixed with [code]n[/code] ([method countn], [method findn], [method replacen], etc.) are [b]case-insensitive[/b] (they make no distinction between uppercase and lowercase letters). Method variations prefixed with [code]r[/code] ([method rfind], [method rsplit], etc.) are reversed, and start from the end of the string, instead of the beginning.
+ To convert any Variant to or from a string, see [method @GlobalScope.str], [method @GlobalScope.str_to_var], and [method @GlobalScope.var_to_str].
[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].
</description>
<tutorials>