NWLstrcoll

Compares two strings according to the rules of the current locale

NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform Localization (LOC*.*)
Service:Internationalization

Syntax

  #include <time.h> or #define NWL_EXCLUDE_TIME 
  #include <stdio.h> or #define NWL_EXCLUDE_FILE 
  #include <nwlocale.h> 
   
  nint N_API NWLstrcoll ( 
     const nstr N_FAR  *string1,  
     const nstr N_FAR  *string2); 
  
  

Pascal Syntax

  uses netwin32 
   
  Function NWLstrcoll 
    (string1 : pnstr; 
     string2 : pnstr 
  ) : nint; 
  
  

Parameters

string1
(IN) Points to the first string to compare.
string2
(IN) Points to the second string to compare.

Return Values

When the string1 / string2 parameter combination is relative to current locale setting:

Remarks

NWLstrcoll compares `string1’ to `string2’. Both are interpreted as appropriate to the LC_COLLATE category of the current locale. For a locale-sensitive comparison of two strings, call NWLstrcoll instead of the strcmp function.

The comparison between string1 and string2 is case insensitive.

See Also

NWLsetlocale, NWLstricmp