annotate vendor/symfony/polyfill-mbstring/bootstrap.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 7a779792577d
children
rev   line source
Chris@0 1 <?php
Chris@0 2
Chris@0 3 /*
Chris@0 4 * This file is part of the Symfony package.
Chris@0 5 *
Chris@0 6 * (c) Fabien Potencier <fabien@symfony.com>
Chris@0 7 *
Chris@0 8 * For the full copyright and license information, please view the LICENSE
Chris@0 9 * file that was distributed with this source code.
Chris@0 10 */
Chris@0 11
Chris@0 12 use Symfony\Polyfill\Mbstring as p;
Chris@0 13
Chris@0 14 if (!function_exists('mb_strlen')) {
Chris@0 15 define('MB_CASE_UPPER', 0);
Chris@0 16 define('MB_CASE_LOWER', 1);
Chris@0 17 define('MB_CASE_TITLE', 2);
Chris@0 18
Chris@0 19 function mb_convert_encoding($s, $to, $from = null) { return p\Mbstring::mb_convert_encoding($s, $to, $from); }
Chris@0 20 function mb_decode_mimeheader($s) { return p\Mbstring::mb_decode_mimeheader($s); }
Chris@0 21 function mb_encode_mimeheader($s, $charset = null, $transferEnc = null, $lf = null, $indent = null) { return p\Mbstring::mb_encode_mimeheader($s, $charset, $transferEnc, $lf, $indent); }
Chris@12 22 function mb_decode_numericentity($s, $convmap, $enc = null) { return p\Mbstring::mb_decode_numericentity($s, $convmap, $enc); }
Chris@12 23 function mb_encode_numericentity($s, $convmap, $enc = null, $is_hex = false) { return p\Mbstring::mb_encode_numericentity($s, $convmap, $enc, $is_hex); }
Chris@0 24 function mb_convert_case($s, $mode, $enc = null) { return p\Mbstring::mb_convert_case($s, $mode, $enc); }
Chris@0 25 function mb_internal_encoding($enc = null) { return p\Mbstring::mb_internal_encoding($enc); }
Chris@0 26 function mb_language($lang = null) { return p\Mbstring::mb_language($lang); }
Chris@0 27 function mb_list_encodings() { return p\Mbstring::mb_list_encodings(); }
Chris@0 28 function mb_encoding_aliases($encoding) { return p\Mbstring::mb_encoding_aliases($encoding); }
Chris@0 29 function mb_check_encoding($var = null, $encoding = null) { return p\Mbstring::mb_check_encoding($var, $encoding); }
Chris@0 30 function mb_detect_encoding($str, $encodingList = null, $strict = false) { return p\Mbstring::mb_detect_encoding($str, $encodingList, $strict); }
Chris@0 31 function mb_detect_order($encodingList = null) { return p\Mbstring::mb_detect_order($encodingList); }
Chris@0 32 function mb_parse_str($s, &$result = array()) { parse_str($s, $result); }
Chris@0 33 function mb_strlen($s, $enc = null) { return p\Mbstring::mb_strlen($s, $enc); }
Chris@0 34 function mb_strpos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strpos($s, $needle, $offset, $enc); }
Chris@0 35 function mb_strtolower($s, $enc = null) { return p\Mbstring::mb_strtolower($s, $enc); }
Chris@0 36 function mb_strtoupper($s, $enc = null) { return p\Mbstring::mb_strtoupper($s, $enc); }
Chris@0 37 function mb_substitute_character($char = null) { return p\Mbstring::mb_substitute_character($char); }
Chris@0 38 function mb_substr($s, $start, $length = 2147483647, $enc = null) { return p\Mbstring::mb_substr($s, $start, $length, $enc); }
Chris@0 39 function mb_stripos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_stripos($s, $needle, $offset, $enc); }
Chris@0 40 function mb_stristr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_stristr($s, $needle, $part, $enc); }
Chris@0 41 function mb_strrchr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrchr($s, $needle, $part, $enc); }
Chris@0 42 function mb_strrichr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrichr($s, $needle, $part, $enc); }
Chris@0 43 function mb_strripos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strripos($s, $needle, $offset, $enc); }
Chris@0 44 function mb_strrpos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strrpos($s, $needle, $offset, $enc); }
Chris@0 45 function mb_strstr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strstr($s, $needle, $part, $enc); }
Chris@0 46 function mb_get_info($type = 'all') { return p\Mbstring::mb_get_info($type); }
Chris@0 47 function mb_http_output($enc = null) { return p\Mbstring::mb_http_output($enc); }
Chris@0 48 function mb_strwidth($s, $enc = null) { return p\Mbstring::mb_strwidth($s, $enc); }
Chris@0 49 function mb_substr_count($haystack, $needle, $enc = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $enc); }
Chris@0 50 function mb_output_handler($contents, $status) { return p\Mbstring::mb_output_handler($contents, $status); }
Chris@0 51 function mb_http_input($type = '') { return p\Mbstring::mb_http_input($type); }
Chris@0 52 function mb_convert_variables($toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null) { return p\Mbstring::mb_convert_variables($toEncoding, $fromEncoding, $a, $b, $c, $d, $e, $f); }
Chris@0 53 }
Chris@0 54 if (!function_exists('mb_chr')) {
Chris@0 55 function mb_ord($s, $enc = null) { return p\Mbstring::mb_ord($s, $enc); }
Chris@0 56 function mb_chr($code, $enc = null) { return p\Mbstring::mb_chr($code, $enc); }
Chris@0 57 function mb_scrub($s, $enc = null) { $enc = null === $enc ? mb_internal_encoding() : $enc; return mb_convert_encoding($s, $enc, $enc); }
Chris@0 58 }