* @deprecated since 1.25, use UtfNormal\Utils directly
*/
function codepointToUtf8( $codepoint ) {
+ wfDeprecated( __FUNCTION__, '1.25' );
return Utils::codepointToUtf8( $codepoint );
}
* @deprecated since 1.25, use UtfNormal\Utils directly
*/
function hexSequenceToUtf8( $sequence ) {
+ wfDeprecated( __FUNCTION__, '1.25' );
return Utils::hexSequenceToUtf8( $sequence );
}
* @private
*/
function utf8ToHexSequence( $str ) {
+ wfDeprecated( __FUNCTION__, '1.25' );
$buf = '';
foreach ( preg_split( '//u', $str, -1, PREG_SPLIT_NO_EMPTY ) as $cp ) {
$buf .= sprintf( '%04x ', UtfNormal\Utils::utf8ToCodepoint( $cp ) );
* @deprecated since 1.25, use UtfNormal\Utils directly
*/
function utf8ToCodepoint( $char ) {
+ wfDeprecated( __FUNCTION__, '1.25' );
return Utils::utf8ToCodepoint( $char );
}
* @deprecated since 1.25, use UtfNormal\Utils directly
*/
function escapeSingleString( $string ) {
+ wfDeprecated( __FUNCTION__, '1.25' );
return Utils::escapeSingleString( $string );
}
$this->output( "OK\n\$digitTransformTable = [\n" );
foreach ( $digitTransformTable as $latin => $translation ) {
- $htmlent = utf8ToHexSequence( $translation );
+ $htmlent = bin2hex( $translation );
$this->output( "'$latin' => '$translation', # &#x$htmlent;\n" );
}
$this->output( "];\n" );
$headerChars[] = $char;
if ( $primaryCollator->compare( $char, $prevChar ) <= 0 ) {
$numOutOfOrder++;
- /*
- printf( "Out of order: U+%05X > U+%05X\n",
- utf8ToCodepoint( $prevChar ),
- utf8ToCodepoint( $char ) );
- */
}
$prevChar = $char;