Add GDScript to_wchar_buffer and get_string_from_wchar functions.
This commit is contained in:
@@ -328,6 +328,12 @@
|
||||
Converts UTF-8 encoded array to [String]. Slower than [method get_string_from_ascii] but supports UTF-8 encoded data. Use this function if you are unsure about the source of the data. For user input this function should always be preferred. Returns empty string if source array is not valid UTF-8 string.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_string_from_wchar" qualifiers="const">
|
||||
<return type="String" />
|
||||
<description>
|
||||
Converts wide character ([code]wchar_t[/code], UTF-16 on Windows, UTF-32 on other platforms) encoded array to [String]. Returns empty string if source array is not valid wide string.
|
||||
</description>
|
||||
</method>
|
||||
<method name="has" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="value" type="int" />
|
||||
|
||||
@@ -946,6 +946,12 @@
|
||||
Converts the string to a [url=https://en.wikipedia.org/wiki/UTF-8]UTF-8[/url] encoded [PackedByteArray]. This method is slightly slower than [method to_ascii_buffer], but supports all UTF-8 characters. For most cases, prefer using this method.
|
||||
</description>
|
||||
</method>
|
||||
<method name="to_wchar_buffer" qualifiers="const">
|
||||
<return type="PackedByteArray" />
|
||||
<description>
|
||||
Converts the string to a [url=https://en.wikipedia.org/wiki/Wide_character]wide character[/url] ([code]wchar_t[/code], UTF-16 on Windows, UTF-32 on other platforms) encoded [PackedByteArray].
|
||||
</description>
|
||||
</method>
|
||||
<method name="trim_prefix" qualifiers="const">
|
||||
<return type="String" />
|
||||
<param index="0" name="prefix" type="String" />
|
||||
|
||||
@@ -853,6 +853,12 @@
|
||||
Converts the string to a [url=https://en.wikipedia.org/wiki/UTF-8]UTF-8[/url] encoded [PackedByteArray]. This method is slightly slower than [method to_ascii_buffer], but supports all UTF-8 characters. For most cases, prefer using this method.
|
||||
</description>
|
||||
</method>
|
||||
<method name="to_wchar_buffer" qualifiers="const">
|
||||
<return type="PackedByteArray" />
|
||||
<description>
|
||||
Converts the string to a [url=https://en.wikipedia.org/wiki/Wide_character]wide character[/url] ([code]wchar_t[/code], UTF-16 on Windows, UTF-32 on other platforms) encoded [PackedByteArray].
|
||||
</description>
|
||||
</method>
|
||||
<method name="trim_prefix" qualifiers="const">
|
||||
<return type="String" />
|
||||
<param index="0" name="prefix" type="String" />
|
||||
|
||||
Reference in New Issue
Block a user