Internationalization and localization tools


Character Manipulation Function

int toascii(int c);

int __toascii(int c);

Internationalization (I18n) Function Overview

toascii converts a character to a 7-bit ASCII character.

__toascii is the same as toascii, supported on Windows platforms only.

There is no wide character or multibyte equivalent. There is also no Windows Generic version of __toascii.

I18n Issues

These functions cannot be used with multibyte or wide character strings. The I18n solution is to use sparingly and when architecture allows (such as for RFC 822 email transfer). In the case of a wide character string, use a conversion routine to convert it first to a single-byte character string and then call toascii or __toascii.

Recommended Replacements*

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

Character Manipulation Functions

 

Lingoport internationalization and localization services and software