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

UTF16CharStart

Gets a pointer to the character (UTF-16 codepoint) at the specified position (zero-based) in a WideChar value.

Declaration

Source position: lazutf16.pas line 42

function UTF16CharStart(

  P: PWideChar;

  Len: PtrInt;

  CharIndex: PtrInt

):PWideChar;

Arguments

P

  

PWideChar value with the values examined in the routine.

Len

  

Len is the length in words of P.

CharIndex

  

CharIndex is the position of the desired UnicodeChar (starting at 0).

Function result

Pointer to the UTF-16 character at the specified position in the value, or Nil if P is empty or a UTF-16 character is not found at the specified ordinal position.


Version 3.2 Generated 2024-02-25 Home