[Overview][Types][Classes][Procedures and functions][Variables][Index] |
Converts values from UTF-16 encoding to UTF-8 encoding.
Source position: lazutf8.pas line 209
function ConvertUTF16ToUTF8( |
Dest: PChar; |
DestCharCount: SizeUInt; |
Src: PWideChar; |
SrcWideCharCount: SizeUInt; |
Options: TConvertOptions; |
out ActualCharCount: SizeUInt |
Dest |
|
Pointer to destination string. |
DestCharCount |
|
Char count allocated in destination string. |
Src |
|
Pointer to source string. |
SrcWideCharCount |
|
Wide char count allocated in source string. |
Options |
|
Conversion options, if none is set, both invalid and unfinished source chars are skipped. |
ActualCharCount |
|
Actual char count converted from source string to destination string. |
Converted values from the function.
Converts the specified UTF-16 encoded string (system endian) to its UTF-8 encoding.
Options indicates the conversion options enabled in the function, and can include the following values:
The return value is a value from the TConvertResult enumeration, including:
|
Stores values from the TConvertOption enumeration. |
|
|
Indicates options enabled during UTF-8 <-> UTF-16 conversions. |
|
|
Indicates the result from UTF-8 <-> UTF-16 conversions. |
Version 3.2 | Generated 2024-02-25 | Home |