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

UTF8AddChar

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

Declaration

Source position: lazutf8.pas line 135

function UTF8AddChar(

  AUtf8Char: string;

  const S: string;

  N: Integer

):string;

Arguments

AUtf8Char

  

Codepoint to prepend to the string value.

S

  

Original values for the string.

N

  

Number of codepoints to prepend to the string.

Function result

Updated value for the string.

Description

UTF8AddChar is a String function used to add 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 added to the string.

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

Remark: Values added to the string in S are inserted at the beginning of the string (prepended).

Version 3.2 Generated 2024-02-25 Home