* @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 );
}