System.AnsiStrings.LeftBStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function LeftBStr(const AText: AnsiString; const AByteCount: Integer): AnsiString;

C++

extern DELPHI_PACKAGE System::AnsiString __fastcall LeftBStr(const System::AnsiString AText, const int AByteCount);

Properties

Type Visibility Source Unit Parent
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

Description

Returns the substring of a specified number of bytes that appears at the start of a string.

LeftBStr returns the leading bytes of AText up to a length of AByteCount bytes.

Note: LeftBStr assumes all characters are one byte long, and does not behave correctly if AText contains multi-byte characters. To handle all strings correctly, use LeftStr.

See Also