RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.EndsStr Function

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

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

For a case insensitive comparison, use the EndsText routine. 

 

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