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

CodePointCopy

Copies the specified number of codepoints starting at a character position.

Declaration

Source position: lazunicode.pas line 44

function CodePointCopy(

  const s: string;

  StartCharIndex: NativeInt;

  CharCount: NativeInt

):string;

Arguments

s

  

UTF-encoded string values.

StartCharIndex

  

Initial character position.

CharCount

  

Number of characters needed in the copy operation.

Function result

Values copied from the string.

Description

Copies the number of codepoints in CharCount from s, starting at the character position in StartCharIndex. For platforms that require UTF-16, UTF16Copy is called. For other platforms, UTF8Copy is called.

See also

UTF16Copy

  

Copies a number of UTF-16 characters at the given character position in the specified value.

UTF8Copy

  

Copies the specified number of codepoints from the UTF-8-encoded string starting at the specified character index.


Version 4.0 Generated 2025-05-03 Home