Sign in Join
FPDoc Onlineexperiment

EndsStr function

In unit StrUtils

Check whether one string ends with another.

Declaration

pascal
function EndsStr(const ASubText: string; const AText: string): Boolean

Description

EndsStr checks whether aText ends with aSubText and returns True if it does. i.e. it returns true if the last characters of aText are aSubText. It follows that the length of aText must be at least the length of aSubText. The comparison is made case-sensitive. If you wish to compare case-insensitively, use EndsText instead.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.