RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.EndsText Function

Determines if string AText ends with substring ASubText using a case insensitive string comparison. Returns true if AText ends with ASubText.

Pascal
function EndsText(const ASubText: string; const AText: string): Boolean;
C++
Boolean EndsText(const AnsiString ASubText, const AnsiString AText);

For a case sensitive comparison, use the EndsStr routine. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!