Sign in Join
FPDoc Onlineexperiment

UTF8LeftStr function

In unit LazUTF8

Gets the specified number of characters (codepoints) at the start of the string.

Declaration

pascal
function UTF8LeftStr(const AText: string; const ACount: Integer)
: string

Arguments

AText

Original string to examine in the function.

ACount

Number of characters (codepoints) to get from the string.

Function result

Values from the specified string.

Description

UTF8LeftStr is used to get the specified number of characters (codepoints) at the beginning of the UTF-8-encoded string. UTF8LeftStr calls Utf8Copy to get the return value for the function.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.