function _unicode_caseflip in Drupal 7
Same name and namespace in other branches
- 4 includes/unicode.inc \_unicode_caseflip()
- 5 includes/unicode.inc \_unicode_caseflip()
- 6 includes/unicode.inc \_unicode_caseflip()
Flips U+C0-U+DE to U+E0-U+FD and back.
Parameters
$matches: An array of matches.
Return value
array The Latin-1 version of the array of matches.
See also
2 string references to '_unicode_caseflip'
- drupal_strtolower in includes/
unicode.inc - Lowercase a UTF-8 string.
- drupal_strtoupper in includes/
unicode.inc - Uppercase a UTF-8 string.
File
- includes/
unicode.inc, line 551 - Provides Unicode-related conversions and operations.
Code
function _unicode_caseflip($matches) {
return $matches[0][0] . chr(ord($matches[0][1]) ^ 32);
}