|
Locale-Sensitive C/C++ String Operation Function Internationalization (I18n) Function OverviewThe
On Windows platforms, _tcslen and _tcsclen are the Generic versions of the function;
when the Windows _MBCS compiler flag is set, _tcslen maps to
strlen and _tcsclen maps to _mbslen . When the Windows
_UNICODE flag is set, the Generic functions both map to wcslen .
I18n IssuesUse the appropriate version of the function as required for internationalization support, noting the following: On ANSI platforms, convert the multibyte string to a wide-character string, and then call On Windows MBCS platforms, ensure that the current locale and the multibyte code page are set correctly. On Windows MBCS platforms, choose Recommended Replacements*On Windows platforms, a more secure string function is recommended. However, there are differences in the handling of multibyte-character strings which will need to be considered before switching. For more details, click on one of the secure functions in the following table: they are listed as the first choices for the Windows rulesets.
Locale-Sensitive C/C++ String Operation Functions
|