System.StrUtils.RightBStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE System::AnsiString __fastcall RightBStr _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: RightBStr is deprecated. Please use AnsiStrings.

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

RightBStr returns the trailing bytes of AText up to a length of AByteCount bytes.

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

See Also