bootstrap.php
173 lines
| 1 | <?php |
| 2 | |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | /* |
| 9 | * This file is part of the Symfony package. |
| 10 | * |
| 11 | * (c) Fabien Potencier <fabien@symfony.com> |
| 12 | * |
| 13 | * For the full copyright and license information, please view the LICENSE |
| 14 | * file that was distributed with this source code. |
| 15 | */ |
| 16 | use MailPoetVendor\Symfony\Polyfill\Mbstring as p; |
| 17 | if (!\function_exists('mb_strlen')) { |
| 18 | \define('MB_CASE_UPPER', 0); |
| 19 | \define('MB_CASE_LOWER', 1); |
| 20 | \define('MB_CASE_TITLE', 2); |
| 21 | function mb_convert_encoding($s, $to, $from = null) |
| 22 | { |
| 23 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_convert_encoding($s, $to, $from); |
| 24 | } |
| 25 | function mb_decode_mimeheader($s) |
| 26 | { |
| 27 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_decode_mimeheader($s); |
| 28 | } |
| 29 | function mb_encode_mimeheader($s, $charset = null, $transferEnc = null, $lf = null, $indent = null) |
| 30 | { |
| 31 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_encode_mimeheader($s, $charset, $transferEnc, $lf, $indent); |
| 32 | } |
| 33 | function mb_decode_numericentity($s, $convmap, $enc = null) |
| 34 | { |
| 35 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_decode_numericentity($s, $convmap, $enc); |
| 36 | } |
| 37 | function mb_encode_numericentity($s, $convmap, $enc = null, $is_hex = \false) |
| 38 | { |
| 39 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_encode_numericentity($s, $convmap, $enc, $is_hex); |
| 40 | } |
| 41 | function mb_convert_case($s, $mode, $enc = null) |
| 42 | { |
| 43 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_convert_case($s, $mode, $enc); |
| 44 | } |
| 45 | function mb_internal_encoding($enc = null) |
| 46 | { |
| 47 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_internal_encoding($enc); |
| 48 | } |
| 49 | function mb_language($lang = null) |
| 50 | { |
| 51 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_language($lang); |
| 52 | } |
| 53 | function mb_list_encodings() |
| 54 | { |
| 55 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_list_encodings(); |
| 56 | } |
| 57 | function mb_encoding_aliases($encoding) |
| 58 | { |
| 59 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_encoding_aliases($encoding); |
| 60 | } |
| 61 | function mb_check_encoding($var = null, $encoding = null) |
| 62 | { |
| 63 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_check_encoding($var, $encoding); |
| 64 | } |
| 65 | function mb_detect_encoding($str, $encodingList = null, $strict = \false) |
| 66 | { |
| 67 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_detect_encoding($str, $encodingList, $strict); |
| 68 | } |
| 69 | function mb_detect_order($encodingList = null) |
| 70 | { |
| 71 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_detect_order($encodingList); |
| 72 | } |
| 73 | function mb_parse_str($s, &$result = array()) |
| 74 | { |
| 75 | \parse_str($s, $result); |
| 76 | } |
| 77 | function mb_strlen($s, $enc = null) |
| 78 | { |
| 79 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_strlen($s, $enc); |
| 80 | } |
| 81 | function mb_strpos($s, $needle, $offset = 0, $enc = null) |
| 82 | { |
| 83 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_strpos($s, $needle, $offset, $enc); |
| 84 | } |
| 85 | function mb_strtolower($s, $enc = null) |
| 86 | { |
| 87 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_strtolower($s, $enc); |
| 88 | } |
| 89 | function mb_strtoupper($s, $enc = null) |
| 90 | { |
| 91 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_strtoupper($s, $enc); |
| 92 | } |
| 93 | function mb_substitute_character($char = null) |
| 94 | { |
| 95 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_substitute_character($char); |
| 96 | } |
| 97 | function mb_substr($s, $start, $length = 2147483647, $enc = null) |
| 98 | { |
| 99 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_substr($s, $start, $length, $enc); |
| 100 | } |
| 101 | function mb_stripos($s, $needle, $offset = 0, $enc = null) |
| 102 | { |
| 103 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_stripos($s, $needle, $offset, $enc); |
| 104 | } |
| 105 | function mb_stristr($s, $needle, $part = \false, $enc = null) |
| 106 | { |
| 107 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_stristr($s, $needle, $part, $enc); |
| 108 | } |
| 109 | function mb_strrchr($s, $needle, $part = \false, $enc = null) |
| 110 | { |
| 111 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_strrchr($s, $needle, $part, $enc); |
| 112 | } |
| 113 | function mb_strrichr($s, $needle, $part = \false, $enc = null) |
| 114 | { |
| 115 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_strrichr($s, $needle, $part, $enc); |
| 116 | } |
| 117 | function mb_strripos($s, $needle, $offset = 0, $enc = null) |
| 118 | { |
| 119 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_strripos($s, $needle, $offset, $enc); |
| 120 | } |
| 121 | function mb_strrpos($s, $needle, $offset = 0, $enc = null) |
| 122 | { |
| 123 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_strrpos($s, $needle, $offset, $enc); |
| 124 | } |
| 125 | function mb_strstr($s, $needle, $part = \false, $enc = null) |
| 126 | { |
| 127 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_strstr($s, $needle, $part, $enc); |
| 128 | } |
| 129 | function mb_get_info($type = 'all') |
| 130 | { |
| 131 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_get_info($type); |
| 132 | } |
| 133 | function mb_http_output($enc = null) |
| 134 | { |
| 135 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_http_output($enc); |
| 136 | } |
| 137 | function mb_strwidth($s, $enc = null) |
| 138 | { |
| 139 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_strwidth($s, $enc); |
| 140 | } |
| 141 | function mb_substr_count($haystack, $needle, $enc = null) |
| 142 | { |
| 143 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_substr_count($haystack, $needle, $enc); |
| 144 | } |
| 145 | function mb_output_handler($contents, $status) |
| 146 | { |
| 147 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_output_handler($contents, $status); |
| 148 | } |
| 149 | function mb_http_input($type = '') |
| 150 | { |
| 151 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_http_input($type); |
| 152 | } |
| 153 | function mb_convert_variables($toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null) |
| 154 | { |
| 155 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_convert_variables($toEncoding, $fromEncoding, $a, $b, $c, $d, $e, $f); |
| 156 | } |
| 157 | } |
| 158 | if (!\function_exists('mb_chr')) { |
| 159 | function mb_ord($s, $enc = null) |
| 160 | { |
| 161 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_ord($s, $enc); |
| 162 | } |
| 163 | function mb_chr($code, $enc = null) |
| 164 | { |
| 165 | return \MailPoetVendor\Symfony\Polyfill\Mbstring\Mbstring::mb_chr($code, $enc); |
| 166 | } |
| 167 | function mb_scrub($s, $enc = null) |
| 168 | { |
| 169 | $enc = null === $enc ? \mb_internal_encoding() : $enc; |
| 170 | return \mb_convert_encoding($s, $enc, $enc); |
| 171 | } |
| 172 | } |
| 173 |