System.WideStrUtils.WStrComp
Delphi
function WStrComp(const Str1, Str2: PWideChar): Integer;
C++
extern DELPHI_PACKAGE int __fastcall WStrComp(const System::WideChar * Str1, const System::WideChar * Str2);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.WideStrUtils.pas System.WideStrUtils.hpp |
System.WideStrUtils | System.WideStrUtils |
説明
2 つの PWideChar 値を大文字と小文字を区別して比較します。
2 つの PWideChar 文字列を大文字と小文字を区別して比較する場合は、WStrComp を使用します。戻り値を次の表に示します。
戻り値 | 条件 |
---|---|
<0 |
Str1 が Str2 の前にソートされる |
=0 |
Str1 は Str2 と同じ |
>0 |
Str1 が Str2 の後にソートされる |