RAD Studio VCL Reference
AnsiStrings.AnsiEndsStr Function

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

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

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

Use AnsiEndsText to make this test without case-sensitivity. 


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