MidBStr function
Copies a number of characters starting at a given position in a string.
Declaration
function MidBStr(const AText: AnsiString; const AByteStart: SizeInt;
const AByteCount: SizeInt): AnsiStringArguments
AText | String to copy characters from. |
AByteStart | Position (in bytes) to start copying from. |
AByteCount | Number of characters (bytes) to copy. |
Function result
Resulting string.
Description
MidBStr
returns a string containing the first
AByteCount
bytes from the string
AText starting at position
AByteStart.
If
AByteStart+AByteCount is larger than the length (in bytes) of
AText, only as many bytes as available are returned.
If
AByteStart is less than 1 or larger than the length of
AText, then no characters are returned.Errors
None.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
