[Overview][Constants][Types][Procedures and functions][Index] |
Determines if a string ends with the specified value.
Source position: lazstringutils.pas line 41
function LazEndsStr( |
const ASubText: string; |
const AText: string |
):Boolean; |
ASubText |
|
Text to look for at the end of the string. |
AText |
|
String examined in the routine. |
True when the string ends with the specified value.
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.
|
Determines if a string starts with the specified value. |
|
|
Determines if a string occurs at the end of the specified text. |
Version 4.0 | Generated 2025-05-03 | Home |