Internationalization and localization tools


Locale-Sensitive C/C++ String Operation Functions

unsigned __int64 _strtoui64(const char *nptr, char **endptr, int base);

unsigned __int64 _wcstoui64(const wchar_t *nptr, wchar_t **endptr, int base);

unsigned __int64 _tcstoui64(const TCHAR *nptr, TCHAR **endptr, int base);

Internationalization (I18n) Function Overview

The _strtoui64 function returns the value represented in the string nptr, except when the representation would cause an overflow, in which case it returns UI64_MAX.

The current locale's LC_NUMERIC category setting determines recognition of the radix character in nptr; for more information, see setlocale. If endptr is not NULL, a pointer to the character that stopped the scan is stored at the location pointed to by endptr. If no conversion can be performed (no valid digits were found or an invalid base was specified), the value of nptr is stored at the location pointed to by endptr.

_wcstoui64 is the wide-character version of the function; its parameters are wide characters.

_tcstoui64 is the Windows-only Generic version of the function; with the _MBCS or _UNICODE compiler flags determining its mapping to either _strtoui64 or _wcstoui64.

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