Internationalization and localization tools


Locale-Sensitive C/C++ String Operation Function

char *strcasestr(const char *haystack, const char *needle);

Internationalization (I18n) Function Overview

strcasestr is like strstr, except that it ignores case in searching for the substring. Like strcasecmp, it is locale dependent how uppercase and lowercase characters are related.

I18n Issues

Ensure that the current locale is set properly.

There is no ANSI wide character version of this function. The parameters will have to be converted to multibyte UTF-8 characters and then the strcasestr function can be used. Similarly, the return value will then need to be converted from multibyte UTF-8 characters back to wide characters.

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