From 5c7802a06129aa4a646acbdf6dc225cf6c7d9db0 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 15 Jul 2020 11:48:54 +0200 Subject: [PATCH] Document which escape sequences are supported by `String.c_unescape()` See https://github.com/godotengine/godot/issues/38716. (cherry picked from commit 04b25108ac3c2d4ded4006a685c98b2028899123) --- doc/classes/String.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/classes/String.xml b/doc/classes/String.xml index c66f16ae07e..3aa56a0e502 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -253,7 +253,8 @@ - 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.