Sign in Join
FPDoc Onlineexperiment

UTF8CodepointStart function

In unit LazUTF8

Finds the n-th UTF-8 codepoint.

Declaration

pascal
function UTF8CodepointStart(UTF8Str: PChar; Len: PtrInt; 
 CodepointIndex: PtrInt): PChar

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.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.