RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WideStrUtils.WStrComp Function

Compares two PWideChar values with case sensitivity.

Pascal
function WStrComp(const Str1: PWideChar; const Str2: PWideChar): Integer;
C++
int WStrComp(const PWideChar Str1, const PWideChar Str2);

Call WStrComp to compare two PWideChar strings, with case sensitivity. The return value is indicated in the following table.

Return value 
Condition 
<0  
Str1 sorts before Str2  
=0  
Str1 is the same as Str2  
>0  
Str1 sorts after Str2  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!