Translated using Weblate (Estonian)
[phpmyadmin.git] / libraries / string.lib.php
blobe1e54f37d3f7fd81ecce9b0286a5b81c93f65fe9
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /** String Functions for phpMyAdmin
5 * If mb_* functions don't exist, we create the ones we need and they'll use the
6 * standard string functions.
8 * All mb_* functions created by PMA should behave as mb_* functions.
10 * @package PhpMyAdmin
12 if (! defined('PHPMYADMIN')) {
13 exit;
16 if (!defined('MULTIBYTES_ON')) {
17 define('MULTIBYTES_ON', true);
18 define('MULTIBYTES_OFF', false);
21 if (@function_exists('mb_strlen')) {
22 if (!defined('MULTIBYTES_STATUS')) {
23 define('MULTIBYTES_STATUS', MULTIBYTES_ON);
26 include_once 'libraries/stringMb.lib.php';
27 } else {
28 if (!defined('MULTIBYTES_STATUS')) {
29 define('MULTIBYTES_STATUS', MULTIBYTES_OFF);
32 include_once 'libraries/stringNative.lib.php';