| Locale-Sensitive Windows C++ Function DWORD CharLowerBuff(LPTSTR lpsz, DWORD cchLength);  DWORD CharLowerBuffA(LPSTR lpsz, DWORD cchLength);  DWORD CharLowerBuffW(LPWSTR lpsz, DWORD cchLength); Internationalization (I18n) Function OverviewThe CharLowerBufffunction converts up tocchLengthTCHARcharacters in the buffer pointed to bylpszto lowercase, based upon the system locale,
and returns the number of characters converted. CharLowerBuffAis the narrow version of the function, passing in a single or multibyte string and the number of bytes to convert, and returning the number of bytes converted.
 CharLowerBuffWis the wide version of the function, passing in a wide-character string and the number of wide characters (WCHARs) to convert, and returning the number of wide characters converted.
 I18n IssuesUse the appropriate version of the function as required for internationalization support, noting the following: A Windows MBCS application should not use CharLowerBuffunless the language identifier of the application's locale
matches that of the System's default locale, i.e. theLANGIDvalue returned fromGetSystemDefaultLangID.
This is not an issue for a Windows Unicode application;CharLowerBuffconverts the UTF-16 encoded characters correctly. Ensure that cchLengthis correct for the chosen platform; bytes for the narrow version andWCHARsfor the wide version. See Locale-Sensitive Length Functions 
for a discussion on multibyte and wide character sizes. Recommended Replacements*When possible, use the Generic version of the function, rather than the narrow or wide versions, and let the Windows #define UNICODEswitch determine which version of the function will be called.  
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.   
 |