System.AnsiStrings.SameStr

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function SameStr(const S1, S2: AnsiString): Boolean;
function SameStr(const S1, S2: AnsiString; LocaleOptions: TLocaleOptions): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall SameStr(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 with case-sensitivity.

SameStr compares S1 to S2 with case-sensitivity. Returns true if S1 and S2 are equal, that is, if CompareStr would return 0; otherwise it returns false. Use AnsiSameStr for a comparison using the current user locale.

Use SameText to compare strings without case-sensitivity.

See Also