public static function Unicode::caseFlip
public static Unicode::caseFlip($matches)
Flip U+C0-U+DE to U+E0-U+FD and back. Can be used as preg_replace callback.
Parameters
array $matches: An array of matches by preg_replace_callback().
Return value
string The flipped text.
File
- core/lib/Drupal/Component/Utility/Unicode.php, line 657
Class
- Unicode
- Provides Unicode-related conversions and operations.
Namespace
Drupal\Component\UtilityCode
public static function 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/core!lib!Drupal!Component!Utility!Unicode.php/function/Unicode::caseFlip/8.1.x