System.SysUtils.StrIComp

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

Delphi

function StrIComp(const Str1, Str2: MarshaledAString): Integer; overload;
function StrIComp(const Str1, Str2: PWideChar): Integer;

C++

extern DELPHI_PACKAGE int __fastcall StrIComp _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (const char * Str1, const char * Str2)/* overload */;

プロパティ

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

説明

警告: StrIComp の ANSI バージョンは廃止予定です。AnsiStrings ユニットを使用してください。

区別せずに 2 つの文字列を比較します。

StrIComp 関数を呼び出すと,大文字と小文字の区別なしに 2 つの文字列を比較できます。StrIComp は,Str1 > Str2 の場合には 0 より大きい値を,Str1 < Str2 の場合には 0 より小さい値を,そして大文字と小文字に関係なく 2 つの文字列が等しい場合には 0 を返します。

国別文字を扱う場合は,かわりに AnsiStrIComp を使用してください。

関連項目