表示: Delphi
C++
表示設定
System.SysUtils.StrIComp
提供:XE2 API Documentation
Delphi
function StrIComp(const Str1, Str2: PAnsiChar): Integer; function StrIComp(const Str1, Str2: PWideChar): Integer;
C++
extern PACKAGE int __fastcall StrIComp(const char * Str1, const char * Str2)/* overload */;
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
説明
区別せずに 2 つの文字列を比較します。
StrIComp 関数を呼び出すと,大文字と小文字の区別なしに 2 つの文字列を比較できます。StrIComp は,Str1 > Str2 の場合には 0 より大きい値を,Str1 < Str2 の場合には 0 より小さい値を,そして大文字と小文字に関係なく 2 つの文字列が等しい場合には 0 を返します。
国別文字を扱う場合は,かわりに AnsiStrIComp を使用してください。