LazEndsStr function
Determines if a string ends with the specified value.
Declaration
function LazEndsStr(const ASubText: string; const AText: string)
: BooleanDescription
LazEndsStr is a
Boolean function used to determine if
the string in
AText ends with the text specified in
ASubText. It is a modified version of
EndsStr from the
RTL
strutils.pp unit.
LazEndsStr casts the values in ASubText and AText to PChar types, and calls
StrLComp to perform the comparison.
The returns value is True when AText ends with the specified sub-text. It also returns True when ASubText is an empty string (''), which is Delphi compatible.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
