summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-10-24 13:22:47 -0500
committerThaddeus Crews <repiteo@outlook.com>2024-10-24 13:22:47 -0500
commit28f56eb1c76fd81328d69f53363f290e5c67298b (patch)
treec3ff063836f837e1ecaba11d6cd11d816a9c1bfe
parente2bd0a82982c35d933e3d71eb3d3c5c09e1dec4b (diff)
parenta0134ad375da74e0450001cbfc313902255e8bc8 (diff)
downloadredot-engine-28f56eb1c76fd81328d69f53363f290e5c67298b.tar.gz
Merge pull request #98473 from tetrapod00/str-docs
Docs: Link to GlobalScope string methods from String class ref
-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>