Procházet zdrojové kódy

Document which escape sequences are supported by `String.c_unescape()`

See https://github.com/godotengine/godot/issues/38716.

(cherry picked from commit 04b25108ac3c2d4ded4006a685c98b2028899123)
Hugo Locurcio před 5 roky
rodič
revize
5c7802a061
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      doc/classes/String.xml

+ 2 - 1
doc/classes/String.xml

@@ -253,7 +253,8 @@
 			<return type="String">
 			<return type="String">
 			</return>
 			</return>
 			<description>
 			<description>
-				Returns a copy of the string with escaped characters replaced by their meanings according to the C language standard.
+				Returns a copy of the string with escaped characters replaced by their meanings. Supported escape sequences are [code]\'[/code], [code]\"[/code], [code]\?[/code], [code]\\[/code], [code]\a[/code], [code]\b[/code], [code]\f[/code], [code]\n[/code], [code]\r[/code], [code]\t[/code], [code]\v[/code].
+				[b]Note:[/b] Unlike the GDScript parser, this method doesn't support the [code]\uXXXX[/code] escape sequence.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="capitalize">
 		<method name="capitalize">