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

UTF8ReverseString

Reverses the order of codepoints in the specified string.

Declaration

Source position: lazutf8.pas line 146

function UTF8ReverseString(

  p: PChar;

  const ByteCount: LongInt

):string;

function UTF8ReverseString(

  const AText: string

):string;

Arguments

p

  

PChar type with values reversed in the routine.

ByteCount

  

Number of bytes reversed in the routine.

Function result

String with the reversed text values.

Arguments

AText

  

String with the values reversed in the routine.

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

UTF8CodepointSize

  

Returns the size of the UTF-8 codepoint in bytes.


Version 3.2 Generated 2024-02-25 Home