diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-12-16 13:08:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-16 13:08:53 +0100 |
commit | 91c05290738aae5662a76f59dd3e4ccfdf5e37ae (patch) | |
tree | e4f160dc06201fb3a839ddb14ce9816014369498 /doc | |
parent | 6435d1be232e45b3729a69a0c21f0f735166914a (diff) | |
parent | e4e4e475f8f1a1d8b82ef7ad636da8536e8c6554 (diff) |
Merge pull request #55930 from timothyqiu/doctool-i18n
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/String.xml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/classes/String.xml b/doc/classes/String.xml index ce902c1216..cd6fc10931 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -124,7 +124,7 @@ <method name="dedent" qualifiers="const"> <return type="String" /> <description> - Returns a copy of the string with indentation (leading tabs and spaces) removed. + Returns a copy of the string with indentation (leading tabs and spaces) removed. See also [method indent] to add indentation. </description> </method> <method name="ends_with" qualifiers="const"> @@ -243,6 +243,15 @@ <description> </description> </method> + <method name="indent" qualifiers="const"> + <return type="String" /> + <argument index="0" name="prefix" type="String" /> + <description> + Returns a copy of the string with lines indented with [code]prefix[/code]. + For example, the string can be indented with two tabs using [code]"\t\t"[/code], or four spaces using [code]" "[/code]. The prefix can be any string so it can also be used to comment out strings with e.g. [code]"# "[/code]. See also [method dedent] to remove indentation. + [b]Note:[/b] Empty lines are kept empty. + </description> + </method> <method name="insert" qualifiers="const"> <return type="String" /> <argument index="0" name="position" type="int" /> |