RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.AnsiLastChar Function

Returns a pointer to the last character in a string.

Pascal
function AnsiLastChar(const S: AnsiString): PAnsiChar; overload;
function AnsiLastChar(const S: UnicodeString): PWideChar; overload;
C++
PAnsiChar AnsiLastChar(const AnsiString S);
PWideChar AnsiLastChar(const UnicodeString S);

Call AnsiLastChar to obtain the last character in a string. This function supports multi-byte character sets (MBCS). 

 

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