Sign in Join
FPDoc Onlineexperiment

LeftBStr function

In unit StrUtils

Copies Count characters starting at the left of a string.

Declaration

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

Arguments

AText

String to copy characters from.

AByteCount

Number of characters to copy.

Function result

First N characters of the string.

Description

LeftBStr returns a string containing the leftmost 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.