* the docs/CREDITS.txt file. * */ /** */ if (!defined('IN_PHPBB')) { exit; } // Enforce ASCII only string handling setlocale(LC_CTYPE, 'C'); /** * Setup the UTF-8 portability layer */ Patchwork\Utf8\Bootup::initUtf8Encode(); Patchwork\Utf8\Bootup::initMbstring(); Patchwork\Utf8\Bootup::initIntl(); /** * UTF-8 tools * * Whenever possible, these functions will try to use PHP's built-in functions or * extensions, otherwise they will default to custom routines. * */ /** * UTF-8 aware alternative to strrpos * @ignore */ function utf8_strrpos($str, $needle, $offset = null) { // Emulate behaviour of strrpos rather than raising warning if (empty($str)) {