[Overview][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'LazUTF8' (#lazutils)

UTF8ToDoubleByte

Converts a UTF-8-encode string to its DBCS representation.

Declaration

Source position: lazutf8.pas line 95

function UTF8ToDoubleByte(

  UTF8Str: PChar;

  Len: PtrInt;

  DBStr: PByte

):PtrInt;

Arguments

UTF8Str

  

UTF-8-encoded values to convert in the function.

Len

  

Length of the UTF-8-encoded input values.

DBStr

  

Storage for the Double Byte values.

Function result

Number of double bytes converted in the function.

Description

UTF8ToDoubleByte is used to convert UTF-8-encoded values to the representation used in Double Byte Character Sets (DBCS). UTF8ToDoubleByte calls UTF8CodepointToUnicode to process each of the codepoints in UTF8Str.

The return value contains the byte values from the conversion.


Version 3.2 Generated 2024-02-25 Home