System.AnsiStrings.SameStr

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

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 */;

プロパティ

種類 可視性 ソース ユニット
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

説明

2 つの文字列を大文字と小文字を区別して比較します。

SameStr は、S1S2 を大文字と小文字を区別して比較します。S1S2 が等しい場合(つまり、CompareStr が 0 を返す場合)、true を返します。それ以外の場合は false を返します。現在のユーザーのロケールで文字列を比較する場合は、AnsiSameStr を使用します。

大文字と小文字を区別しないで文字列を比較する場合は、SameText を使用します。

関連項目