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

UTF8LeftStr

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

Declaration

Source position: lazutf8.pas line 147

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.


Version 4.0 Generated 2025-05-03 Home