Internationalization and localization tools


Windows Generic C/C++ Collation Functions

Internationalization (I18n) Issue:

These functions are the Generic versions of the single-byte, wide, and multibyte character string collation functions. To operate correctly, generic arguments and return values should be used.

I18n Solution:

Use the appropriate equivalent Windows Generic collation function when reengineering an application for internationalization.

I18n Discussion:

When a Generic function call is used, the _MBCS or _UNICODE compiler switch determines whether to map to the multibyte or wide version of the function. For example, _tcscmp will map to _mbscmp if the _MBCS compiler switch is defined, and to wcscmp if the _UNICODE switch is defined.

The arguments and return values for these functions are also Generic and dependent on the _MBCS/_UNICODE switch for their mapping to either narrow or wide-character data.

See the MSDN Library's Using Generic Text Mappings for more information.

Click on a function for more information:

_tcscmp

_tcscoll

_tcsicmp

_tcsicoll

_tcsncmp/_tcsnccmp/_tccmp

_tcsncoll/_tcsnccoll

_tcsnicmp/_tcsncicmp

_tcsnicoll/_tcsncicoll

_tcsxfrm

 

 Locale-Sensitive C++ Methods

 

Lingoport internationalization and localization services and software