summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2022-08-30 12:36:24 +0300
committerDanil Alexeev <danil@alexeev.xyz>2022-08-30 12:36:24 +0300
commitd4555ef5fbf706c43faccf5fdb3f023696197727 (patch)
treeefc5600ae84f8827b800ca7bfd42333ecf38b542 /doc/classes
parent432b25d3649319517827dbf7bc275e81e0a2b92e (diff)
Add `String.to_{camel,pascal,snake}_case` methods
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/String.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/classes/String.xml b/doc/classes/String.xml
index c111528c06..316bb923b7 100644
--- a/doc/classes/String.xml
+++ b/doc/classes/String.xml
@@ -775,6 +775,12 @@
Converts the String (which is a character array) to ASCII/Latin-1 encoded [PackedByteArray] (which is an array of bytes). The conversion is faster compared to [method to_utf8_buffer], as this method assumes that all the characters in the String are ASCII/Latin-1 characters, unsupported characters are replaced with spaces.
</description>
</method>
+ <method name="to_camel_case" qualifiers="const">
+ <return type="String" />
+ <description>
+ Returns the string converted to [code]camelCase[/code].
+ </description>
+ </method>
<method name="to_float" qualifiers="const">
<return type="float" />
<description>
@@ -804,6 +810,18 @@
Returns the string converted to lowercase.
</description>
</method>
+ <method name="to_pascal_case" qualifiers="const">
+ <return type="String" />
+ <description>
+ Returns the string converted to [code]PascalCase[/code].
+ </description>
+ </method>
+ <method name="to_snake_case" qualifiers="const">
+ <return type="String" />
+ <description>
+ Returns the string converted to [code]snake_case[/code].
+ </description>
+ </method>
<method name="to_upper" qualifiers="const">
<return type="String" />
<description>