/**
 * Take a UTF-8 string and return a space-separated series of hex
 * numbers representing Unicode code points. For debugging.
 *
 * @fixme this is private but extensions + maint scripts are using it
 * @param string $str UTF-8 string.
 * @return string
 * @private
 */
function utf8ToHexSequence($str)
{
    $buf = '';
    foreach (preg_split('//u', $str, -1, PREG_SPLIT_NO_EMPTY) as $cp) {
        $buf .= sprintf('%04x ', UtfNormal\Utils::utf8ToCodepoint($cp));
    }
    return rtrim($buf);
}
/**
 * Determine the Unicode codepoint of a single-character UTF-8 sequence.
 * Does not check for invalid input data.
 *
 * @param string $char
 * @return int
 * @public
 * @deprecated since 1.25, use UtfNormal\Utils directly
 */
function utf8ToCodepoint($char)
{
    return Utils::utf8ToCodepoint($char);
}