Example #1
0
 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));
 }
Example #2
0
 /**
  * @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));
 }