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

UTF8PadRight

Appends the specified number of UTF-8 codepoints to the end of a string.

Declaration

Source position: lazutf8.pas line 138

function UTF8PadRight(

  const S: string;

  const N: Integer;

  const AUtf8Char: string = #32

):string;

Arguments

S

  

Original string to modify in the function.

N

  

Number of codepoints desired in the modified string.

AUtf8Char

  

Codepoint to append to the string value.

Function result

Updated value for the string.

Description

UTF8PadRight is used to append the specified number of UTF-8 codepoints to the end of a string. The default value for AUtf8Char is #32 ([SPACE]), but can contain any valid UTF-8 codepoint (1 to 4 bytes). UTF8PadRight calls Utf8AddCharR to create the return value for the function.


Version 3.2 Generated 2024-02-25 Home