System.SysUtils.AnsiStrLastChar

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function AnsiStrLastChar(P: PAnsiChar): PAnsiChar;
function AnsiStrLastChar(P: PWideChar): PWideChar;

C++

extern DELPHI_PACKAGE char * __fastcall AnsiStrLastChar _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (char * P)/* overload */;

Properties

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

Description

Warning: Ansi version of AnsiStrLastChar is deprecated. Please use AnsiStrings unit.

Returns a pointer to the last character in a null-terminated string.

Call AnsiStrLastChar to obtain a pointer to the last full character in a null-terminated sequence. When working with multi-byte character sets (MBCS), the last character will not be the same as the last char value if the last two bytes represent a single double byte character.

See Also