[Overview][Resource strings][Constants][Types][Procedures and functions][Index] |
Check whether a string ends with a certain substring
Source position: strutils.pp line 43
function AnsiEndsStr( |
const ASubText: string; |
const AText: string |
):Boolean; |
ASubText |
|
Substring to check for. |
AText |
|
Text to check the end of |
True if the string ends on the substring, False otherwise.
AnsiEndsStr checks AText to see whether it ends with ASubText, and returns True if it does, False if not. The check is performed case-sensitive. Basically, it checks whether the position of ASubText equals the length of AText minus the length of ASubText plus one.
None.
|
Check whether a string ends with a certain substring, ignoring case. |
|
|
Check whether a string starts with a given substring, observing case |
|
|
Searches, observing case, for a string in an array of strings. |
|
|
Checks whether a string contains a given substring |