Unit 'StrUtils' Package
[Overview][Resource strings][Constants][Types][Procedures and functions][Index] [#rtl]

EndsText

Check whether one text ends with another.

Declaration

Source position: strutils.pp line 46

function EndsText(

  const ASubText: string;

  const AText: string

):Boolean;

Description

StarsText 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-insensitive. If you wish to compare case-sensitively, use EndsStr instead.

See also

AnsiEndsStr

  

Check whether a string ends with a certain substring.

EndsStr

  

Check whether one string ends with another.

StartsText

  

Check whether one text starts with another.


Documentation generated on: Dec 26 2024