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

UTF8CodepointStart

Finds the n-th UTF-8 codepoint.

Declaration

Source position: lazutf8.pas line 101

function UTF8CodepointStart(

  UTF8Str: PChar;

  Len: PtrInt;

  CodepointIndex: PtrInt

):PChar;

Arguments

UTF8Str

  

Values to examine in the function.

Len

  

Length in bytes for the input values.

CodepointIndex

  

Character position for the desired codepoint (zero-based).

Function result

Byte values for the codepoint, or Nil.

Description

Finds the n-th UTF-8 codepoint, ignoring BIDI.

Len is the length in bytes for the values in UTF8Str. CodepointIndex is the position of the desired codepoint (starting at 0), in characters.

The return value contains the byte values for the codepoint, or Nil when a valid codepoint was not found.


Version 3.2 Generated 2024-02-25 Home