Internationalization and localization tools


Locale-Sensitive C/C++ String Operation Function

void *memrchr(const void *block, int c, size_t size);

Internationalization (I18n) Function Overview

The function memrchr is like memchr, except that it searches backwards from the end of the block defined by block and size (instead of forwards from the front).

I18n Issues

There is no ANSI multibyte UTF-8 version of this function, and memrchr does not work correctly with multibyte UTF-8 characters. (The parameter c is cast to a unsigned char, so multibyte characters are not handled properly.)

Additionally, there is no ANSI wide character version of this function.

These two issues combined mean that there is no suitable substitution for memrchr that is readily available which supports multibyte or wide character strings.

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