You are here

function _unicode_caseflip in Drupal 4

Same name and namespace in other branches
  1. 5 includes/unicode.inc \_unicode_caseflip()
  2. 6 includes/unicode.inc \_unicode_caseflip()
  3. 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 395

Code

function _unicode_caseflip($matches) {
  return $matches[0][0] . chr(ord($matches[0][1]) ^ 32);
}