function _unicode_caseflip in Drupal 5
Same name and namespace in other branches
- 4 includes/unicode.inc \_unicode_caseflip()
- 6 includes/unicode.inc \_unicode_caseflip()
- 7 includes/unicode.inc \_unicode_caseflip()
Helper function for case conversion of Latin-1. Used for flipping U+C0-U+DE to U+E0-U+FD and back.
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 415
Code
function _unicode_caseflip($matches) {
return $matches[0][0] . chr(ord($matches[0][1]) ^ 32);
}