Sign in Join
FPDoc Onlineexperiment

UTF8PadLeft function

In unit LazUTF8

Adds the specified number of values in AUtf8Char to the beginning of a string.

Declaration

pascal
function UTF8PadLeft(const S: string; const N: Integer; 
 const AUtf8Char: string=#32): string

Description

UTF8PadLeft is used to add the specified number of values in AUtf8Char to the beginning of a string. The default value for AUtf8Char is #32 ([SPACE]), but can contain any valid UTF-8 codepoint (1 to 4 bytes). UTF8PadLeft calls Utf8AddChar to create the return value for the function.

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