RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.AnsiEndsStr Function

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

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

StrUtils

AnsiEndsStr returns true if the string specified by ASubText appears as the trailing part of the string specified by AText. Comparison is performed case-sensitively. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!