RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.AnsiEndsText Function

Indicates whether one string is a (case-insensitive) suffix of another.

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

AnsiEndsText returns true if the string specified by ASubText appears as the trailing part of the string specified by AText. Comparison is performed case-insensitively and based on the current system locale. 

 

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