function _unicode_caseflip

_unicode_caseflip($matches)

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

drupal_strtolower()

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);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!unicode.inc/function/_unicode_caseflip/7.x