Sign in Join
FPDoc Onlineexperiment

UTF8AddCharR function

In unit LazUTF8

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

Declaration

pascal
function UTF8AddCharR(AUtf8Char: string; const S: string; N: Integer)
: string

Arguments

AUtf8Char

Codepoint to append to the string value.

S

Original values for the string.

N

Number of codepoints to append to the string.

Function result

Updated value for the string.

Description

UTF8AddChar is a String function used to append the specified number of UTF-8 codepoints to a string. AUtf8Char is the UTF-8-encoded codepoint to add to string value in S. N indicates the number of times the codepoint should be appended to the string.

No actions are performed in the function when AUtf8Char is an empty string (''), or contains a malformed UTF-8 codepoint.

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