[Overview][Types][Classes][Procedures and functions][Variables][Index] |
Converts values from UTF-8 encoding to UTF-16 encoding.
Source position: lazutf8.pas line 205
function ConvertUTF8ToUTF16( |
Dest: PWideChar; |
DestWideCharCount: SizeUInt; |
Src: PChar; |
SrcCharCount: SizeUInt; |
Options: TConvertOptions; |
out ActualWideCharCount: SizeUInt |
Dest |
|
Pointer to destination string. |
DestWideCharCount |
|
Wide char count allocated in destination string. |
Src |
|
Pointer to source string. |
SrcCharCount |
|
Char count allocated in source string. |
Options |
|
Conversion options, if none is set, both invalid and unfinished source chars are skipped. |
ActualWideCharCount |
|
Actual WideChar count used int he conversion. |
Converted values from the function.
ConvertUTF8ToUTF16 is used to convert the specified UTF-8 encoded string to UTF-16 encoded (system endian).
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:
Version 3.2 | Generated 2024-02-25 | Home |