Flip U+C0-U+DE to U+E0-U+FD and back. Can be used as preg_replace callback.
array $matches: An array of matches by preg_replace_callback().
string The flipped text.
public static function caseFlip($matches) {
return $matches[0][0] . chr(ord($matches[0][1]) ^ 32);
}