RAD Studio VCL Reference
AnsiStrings.AnsiEndsText Function

Test if trailing part of text matches subtext without case-sensitivity.

function AnsiEndsText(const ASubText: AnsiString; const AText: AnsiString): Boolean; overload;
Boolean AnsiEndsText(const AnsiString ASubText, const AnsiString AText);

AnsiEndsText returns true if the trailing part of the given text matches the subtext without case-sensitivity and returns false otherwise. The compare operation is controlled by the current locale. 

Use AnsiEndsStr to make this test with case-sensitivity. 


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