Sign in Join
FPDoc Onlineexperiment

UTF8ReverseString function

In unit LazUTF8

Reverses the order of codepoints in the specified string.

Declaration

pascal
function UTF8ReverseString(p: PChar; const ByteCount: LongInt): string

Description

UTF8ReverseString is used to create a string with the specified content in reverse order. p contains the UTF-8-encoded values for the original string.

ByteCount indicates the total number of bytes needed to represent the codepoints in p.

UTF8ReverseString calls UTF8CodepointSize and moves the needed number of byte values in p to the return value for the function.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.