Beispiel #1
0
 static function substr($s, $start, $len = 2147483647)
 {
     /**/
     static $bug62759;
     /**/
     isset($bug62759) or $bug62759 = extension_loaded('intl') && 'à' === grapheme_substr('éà', 1, -2);
     /**/
     if ($bug62759) {
         return PHP\Shim\Intl::grapheme_substr_workaround62759($s, $start, $len);
         /**/
     } else {
         return grapheme_substr($s, $start, $len);
         /**/
     }
 }
Beispiel #2
0
function grapheme_substr($s, $start, $len = 2147483647)
{
    return s\Intl::grapheme_substr($s, $start, $len);
}