RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.EndsStr Function

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

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

EndsStr 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. This function is the same as AnsiEndsStr

Use EndsText 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!