Internationalization and localization tools


Character Manipulation Function

char *strfry(char *string);

Internationalization (I18n) Function Overview

strfry creates a pseudorandom anagram of a string, replacing the input with the anagram in place. For each position in the string, strfry swaps it with a position in the string selected at random (from a uniform distribution). The two positions may be the same.

I18n Issues

Because strfry swaps single bytes rather than characters, it can only be used with single-byte character strings; it would corrupt multibyte-character strings.

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

These two issues combined mean that there is no suitable substitution for strfry 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.

Character Manipulation Functions

 

Lingoport internationalization and localization services and software