Add methods to decode/encode multibyte encodings.

This commit is contained in:
bruvzg
2024-09-13 09:19:26 +03:00
committed by Pāvels Nadtočajevs
parent b13c96b097
commit 48bfe13e4f
12 changed files with 420 additions and 1 deletions

View File

@@ -1030,6 +1030,16 @@
Returns the string converted to [code]lowercase[/code].
</description>
</method>
<method name="to_multibyte_char_buffer" qualifiers="const">
<return type="PackedByteArray" />
<param index="0" name="encoding" type="String" default="&quot;&quot;" />
<description>
Converts the string to system multibyte code page encoded [PackedByteArray]. If conversion fails, empty array is returned.
The values permitted for [param encoding] are system dependent. If [param encoding] is empty string, system default encoding is used.
- For Windows, see [url=https://learn.microsoft.com/en-us/windows/win32/Intl/code-page-identifiers]Code Page Identifiers[/url] .NET names.
- For macOS and Linux/BSD, see [code]libiconv[/code] library documentation and [code]iconv --list[/code] for a list of supported encodings.
</description>
</method>
<method name="to_pascal_case" qualifiers="const">
<return type="String" />
<description>