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

UTF8Insert

Inserts the specified values into a string at the given position.

Declaration

Source position: lazutf8.pas line 118

procedure UTF8Insert(

  const source: Utf8String;

  var s: Utf8String;

  StartCharIndex: PtrInt

);

procedure UTF8Insert(

  const source: string;

  var s: string;

  StartCharIndex: PtrInt

);

Arguments

source

  

UTF-8 String where values are inserted.

s

  

Values to insert into the original string.

StartCharIndex

  

Starting character position (1-based) for the new values.

Arguments

source

  

UTF-8 String where values are inserted.

s

  

Values to insert into the original string.

StartCharIndex

  

Starting character position (1-based) for the new values.

Description

Inserts the specified values into a string at the given position. The value in StartCharIndex starts at 1, and represents the n-th codepoint in the string where values are inserted.


Version 3.2 Generated 2024-02-25 Home