Internationalization and localization tools


Locale-Sensitive C/C++ String Operation Function

double strtod(const char *nptr, char **endptr);

double wcstod(const wchar_t *nptr, wchar_t **endptr);

double _tcstod(const TCHAR *nptr, TCHAR **endptr);

Internationalization (I18n) Function Overview

The strtod function converts nptr to a double, using the LC_NUMERIC category setting of the current locale. On return, endptr is set to point to the character that stopped the scan, which may be the terminating NULL character.

wcstod is the wide character equivalent; its parameters are wide-character strings.

_tcstod is the Windows-only Generic version of the function; with the _MBCS or _UNICODE compiler flags determining its mapping to either strtod or wcstod.

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.

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