System.StrUtils.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 _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (const System::AnsiString AText, const int AByteCount);

Properties

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

Description

Warning: LeftBStr is deprecated. Please use AnsiStrings.

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