[Overview][Procedures and functions][Index] Reference for unit 'LazUTF16' (#lazutils)

UnicodeToUTF16

Converts a Unicode character value to its UTF-16 equivalent as a WideString value.

Declaration

Source position: lazutf16.pas line 45

function UnicodeToUTF16(

  u: Cardinal

):widestring;

Arguments

u

  

Unicode character value converted in the routine.

Function result

WideString value with UTF-16 code point the Unicode character.

Description

Cardinal values below $10000 result in a single WideChar code value for the code point. Other cardinal values result in 2 WideChar values in the result to represent the UTF-16 code point.


Version 3.2 Generated 2024-02-25 Home