NWUnicodeCompare

Compares one Unicode character to another after having converted them using the unicode-to-collation rule table

Local Servers:nonblocking
Remote Servers:N/A
NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows95, Windows 98
Library:Cross-Platform Localization (LOC*.*)
Service:Unicode

Syntax

   #include <unicode.h> 
    
   N_EXTERN_LIBRARY(nint) NWUnicodeCompare  ( 
      nptr      ruleHandle,  
      unicode   chr1,  
      unicode   chr2);
   

Pascal Syntax

   uses netwin32 
    
   Function NWUnicodeCompare 
     (ruleHandle : nptr;               
      char1 : unicode;            
      char2 : unicode            
   ) : nint;
   

Parameters

ruleHandle
(IN) Points to the rule table handle for unicode-to-collation conversion.
chr1
(IN) Specifies the 1st character.
chr2
(IN) Specifies the 2nd character.

Return Values

<0

If chr1 < chr2

=0

If chr1 = chr2

>0

If chr1 > chr2

Remarks

For sample code, see Section 3.8, Example: NWUnicodeCompare.

See Also

NWGetCollationHandle, NWUnicodeToCollation