Change to_utf8 to to_utf8_buffer and to_ascii to to_ascii_buffer in remaining docs

The method `to_utf8` doesn't exist in Godot 4, but is still mentioned in
the documentation in some places. Replace it with the new name
`to_utf8_buffer`. Same for ascii. Same for C#.
This commit is contained in:
mara
2023-03-13 22:58:27 +01:00
parent 79454bfd3b
commit 57dca93718
7 changed files with 38 additions and 38 deletions

View File

@ -177,10 +177,10 @@
[b]Note:[/b] To put an ASCII string without prepending its size, you can use [method put_data]:
[codeblocks]
[gdscript]
put_data("Hello world".to_ascii())
put_data("Hello world".to_ascii_buffer())
[/gdscript]
[csharp]
PutData("Hello World".ToAscii());
PutData("Hello World".ToAsciiBuffer());
[/csharp]
[/codeblocks]
</description>
@ -221,10 +221,10 @@
[b]Note:[/b] To put an UTF-8 string without prepending its size, you can use [method put_data]:
[codeblocks]
[gdscript]
put_data("Hello world".to_utf8())
put_data("Hello world".to_utf8_buffer())
[/gdscript]
[csharp]
PutData("Hello World".ToUtf8());
PutData("Hello World".ToUtf8Buffer());
[/csharp]
[/codeblocks]
</description>