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

UTF8CodepointToByteIndex

Finds the byte index of the n-th UTF-8 codepoint.

Declaration

Source position: lazutf8.pas line 104

function UTF8CodepointToByteIndex(

  UTF8Str: PChar;

  Len: PtrInt;

  CodepointIndex: PtrInt

):PtrInt;

Description

Finds the byte index of the n-th UTF-8 codepoint, ignoring BIDI (byte len of substr).