RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.RightBStr Function

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

Pascal
function RightBStr(const AText: AnsiString; const AByteCount: Integer): AnsiString;
C++
AnsiString RightBStr(const AnsiString AText, const int AByteCount);

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.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!