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);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | System.WideStrUtils.pas System.WideStrUtils.hpp |
System.WideStrUtils | System.WideStrUtils |
Description
Compare deux valeurs PWideChar avec sensibilité à la casse.
Appelez WStrComp pour comparer deux chaînes PWideChar, sans sensibilité à la casse. La valeur renvoyée est indiquée dans le tableau suivant.
Valeur renvoyée | Condition |
---|---|
<0 |
Str1 est trié avant Str2 |
=0 |
Str1 est identique à Str2 |
>0 |
Str1 est trié après Str2 |