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