Lines Matching defs:convmap
141 public static function mb_decode_numericentity($s, $convmap, $encoding = null)
149 if (!\is_array($convmap) || (80000 > \PHP_VERSION_ID && !$convmap)) {
175 $cnt = floor(\count($convmap) / 4) * 4;
178 // collector_decode_htmlnumericentity ignores $convmap[$i + 3]
179 $convmap[$i] += $convmap[$i + 2];
180 $convmap[$i + 1] += $convmap[$i + 2];
183 $s = preg_replace_callback('/&#(?:0*([0-9]+)|x0*([0-9a-fA-F]+))(?!&);?/', function (array $m) use ($cnt, $convmap) {
186 if ($c >= $convmap[$i] && $c <= $convmap[$i + 1]) {
187 return self::mb_chr($c - $convmap[$i + 2]);
201 public static function mb_encode_numericentity($s, $convmap, $encoding = null, $is_hex = false)
209 if (!\is_array($convmap) || (80000 > \PHP_VERSION_ID && !$convmap)) {
243 $cnt = floor(\count($convmap) / 4) * 4;
255 if ($c >= $convmap[$j] && $c <= $convmap[$j + 1]) {
256 $cOffset = ($c + $convmap[$j + 2]) & $convmap[$j + 3];