Internationalization and localization tools


Locale-Sensitive C/C++ Single-Byte Collation Functions

Related Links

Link to Multibyte Collation Functions.
Link to Wide Collation Functions.
Link to Windows Generic Collation Functions.

Internationalization (I18n) Issue:

This class of functions performs collation and sorting on single-byte character strings. Please see collation for more information about internationalized collation strategies.

I18n Discussion:

In an ANSI UTF-16/32 or Windows UTF-16 Unicode application, the appropriate wide-character equivalent function should be used, if available. For a Windows MBCS application, use a multibyte-character equivalent function to operate on the multibyte strings. In the case of a Windows Generic application, call the equivalent generic function, and use the _MBCS or _UNICODE defines to map to the correct multibyte or wide-character function. Note that many of these single-byte functions will operate correctly on ANSI UTF-8 Unicode strings; otherwise, the multibyte string will need to be converted to a wide-character string for use in a wide-character collation function.

Click on a function for more information:

_stricoll

_strncoll

_strnicoll

strcasecmp

strcmp

strcmpi/_strcmpi

strcoll

stricmp/_stricmp

strncasecmp

strncmp

strnicmp/_strnicmp

strverscmp

strxfrm

 

 Locale-Sensitive C++ Methods

 

Lingoport internationalization and localization services and software