49 $this->digitTransformLang =
$lang;
50 parent::__construct();
54 $sortkey = parent::getSortKey( $string );
61 $sortkey = preg_replace_callback(
'/\d+/',
function (
$matches ) {
64 $len = strlen( $number );
67 $prefix = chr( floor( $len / 256 ) ) . chr( $len % 256 );
68 return '0' . $prefix . $number;
83 $table = $this->digitTransformLang->digitTransformTable();
85 $table = array_filter( $table );
86 $flipped = array_flip( $table );
88 $flipped = array_filter( $flipped,
'is_numeric' );
89 $string = strtr( $string, $flipped );
97 if ( preg_match(
'/^\d/', $convertedString ) ) {
98 return wfMessage(
'category-header-numerals' )
102 return parent::getFirstLetter( $string );