Translated using Weblate (Slovenian)
[phpmyadmin.git] / libraries / string.lib.php
blobbbb8296f517ef245aaae51f5d5b99eb847d4e619
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';