Sign in Join
FPDoc Onlineexperiment

RightBStr function

In unit StrUtils

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

Declaration

pascal
function RightBStr(const AText: AnsiString; const AByteCount: SizeInt)
: AnsiString

Arguments

AText

String to copy characters from.

AByteCount

Number of characters (bytes) to copy.

Function result

Resulting string.

Description

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

Errors

None.

See also

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