UTF8CodepointStart function
Finds the n-th UTF-8 codepoint.
Declaration
function UTF8CodepointStart(UTF8Str: PChar; Len: PtrInt;
CodepointIndex: PtrInt): PCharDescription
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.
