Bde.DBTables.NativeCompareText

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

Delphi

function NativeCompareText(Locale: TLocale; const S1, S2: AnsiString; Len: Integer): Integer;

C++

extern DELPHI_PACKAGE int __fastcall NativeCompareText(void * Locale, const System::AnsiString S1, const System::AnsiString S2, int Len);

プロパティ

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


説明

データベース ロケールの大文字小文字の区別なしで、文字列を比較します。

NativeCompareText は、S1 の最初の Len 文字数まで、S2 と、大文字小文字を区別せずに比較します。Len パラメータが 0 の場合、NativeCompareText は、文字列をそれらの長さ一杯まで比較します。 比較オペレーションは、Locale パラメータで指定されたデータベース ロケールによって制御されます。 NativeCompareText は、S1 < S2 の場合 0 より小さい値を、S1 > S2 の場合 0 より大きい値を、S1 = S2 の場合 0 を返します。

関連項目