Internationalization and localization tools


Locale-Sensitive C/C++ String Operation Function

char *_strlwr(char* str);

unsigned char *_mbslwr(unsigned char* str);

wchar_t *_wcslwr(wchar_t* str);

_TXCHAR *_tcslwr(const _TXCHAR* str);

Internationalization (I18n) Function Overview

The _strlwr function converts any uppercase characters in str to lowercase letters, using the LC_CTYPE category setting of the current locale, and returns a pointer to the converted string.

_mbslwr and _wcslwr are the multibyte and wide versions of _strlwr. The argument and return value of _mbslwr are multibyte-character strings; those of _wcslwr are wide-character strings.

_tcslwr is the Windows-only Generic version of the function; with the _MBCS or _UNICODE compiler flags determining its mapping to either _mbslwr or _wcslwr.

I18n Issues

Use the appropriate version of the function as required for internationalization support, noting the following:

Ensure that the current locale is set properly.

Consider using the more secure versions of these functions, _strlwr_s, _wcslwr_s, _tcslwr_s, if available.

Recommended Replacements*

*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.

Locale-Sensitive C/C++ String Operation Functions

 

Lingoport internationalization and localization services and software