System.AnsiStrings.AnsiSameText
Delphi
function AnsiSameText(const S1, S2: AnsiString): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall AnsiSameText(const System::AnsiString S1, const System::AnsiString S2)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.AnsiStrings.pas System.AnsiStrings.hpp |
System.AnsiStrings | System.AnsiStrings |
Description
Compare two strings without case-sensitivity.
AnsiSameText compares S1 to S2 without case-sensitivity. The compare operation is controlled by the current user locale, unlike SameText. The return value is true if AnsiCompareText would have returned 0 and false otherwise.
Use AnsiSameStr to compare strings with case-sensitivity.