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

UTF16CharacterLength

Gets the length of the UTF-16 character in the specified PWideChar value.

Declaration

Source position: lazutf16.pas line 38

function UTF16CharacterLength(

  p: PWideChar

):Integer;

Arguments

p

  

PWideChar value examined in the routine.

Function result

Length of the UTF-16 character in the value, or 0 when Nil.

Description

Uses the endian-ness for the platform. Returns 0, 1, or 2.


Version 3.2 Generated 2024-02-25 Home