function NFKD($string) { global $utfCompatibilityDecomp; if (!isset($utfCompatibilityDecomp)) { //require_once( 'UtfNormalDataK.inc' ); # --pk # Warning: This is incomplete without loading the transliteration # table! --pk } return UtfNormal::fastCombiningSort(UtfNormal::fastDecompose($string, $utfCompatibilityDecomp)); }
/** * @param $string string * @return string * @private */ static function NFD($string) { UtfNormal::loadData(); return UtfNormal::fastCombiningSort(UtfNormal::fastDecompose($string, self::$utfCanonicalDecomp)); }
/** * @param string $string * @return string * @private * @static */ static function NFKD($string) { global $utfCompatibilityDecomp; if (!isset($utfCompatibilityDecomp)) { require_once 'UtfNormalDataK.inc'; } return UtfNormal::fastCombiningSort(UtfNormal::fastDecompose($string, $utfCompatibilityDecomp)); }