RAD Studio VCL Reference
AnsiStrings.EndsText Function

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

function EndsText(const ASubText: AnsiString; const AText: AnsiString): Boolean;
Boolean EndsText(const AnsiString ASubText, const AnsiString AText);

EndsText 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. EndsText is the same as AnsiEndsText


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