Sign in Join
FPDoc Onlineexperiment

RightStr function

In unit StrUtils

Copy a given number of characters, counting from the right of a string.

Declaration

pascal
function RightStr(const AText: AnsiString; const ACount: SizeInt)
: AnsiString

Arguments

AText

String to copy characters from.

ACount

Number of characters to copy.

Function result

Resulting string.

Description

RightStr returns a string containing the rightmost ACount characters from the string AText . If ACount is larger than the length (in characters) of AText , only as many characters as available are returned.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.