Lines Matching refs:convmap

9 $convmap = array(0x0, 0x2FFFF, 0, 0xFFFF);
10 echo "1: " . mb_encode_numericentity($str1, $convmap, "UTF-8") . "\n";
11 echo "1 (hex): " . mb_encode_numericentity($str1, $convmap, "UTF-8", true) . "\n";
12 echo "2: " . mb_encode_numericentity($str2, $convmap, "UTF-8") . "\n";
14 $convmap = array(0xFF, 0x2FFFF, 0, 0xFFFF);
15 echo "3: " . mb_encode_numericentity('aŒbœcŠdše€fg', $convmap, "UTF-8") . "\n";
17 $convmap = [];
18 echo "4: " . mb_encode_numericentity('föo', $convmap, "UTF-8") . "\n";
24 // Try doing weird things with convmap
25 $convmap = [
29 echo "7: " . mb_encode_numericentity('föo', $convmap, "UTF-8") . "\n";
30 echo "7 (hex): " . mb_encode_numericentity('föo', $convmap, "UTF-8", true) . "\n";
33 $convmap = [0, 10, 1000, 0xFFFF];
34 echo "8: " . mb_encode_numericentity("\x01\x02\x03", $convmap, "UTF-8") . "\n";
35 echo "8 (hex): " . mb_encode_numericentity("\x01\x02\x03", $convmap, "UTF-8", true) . "\n";
38 $convmap = [0, 10, -100000, 0xFFFFFF];
39 echo "9: " . mb_encode_numericentity("\x01\x02\x03", $convmap, "UTF-8") . "\n";
40 echo "9 (hex): " . mb_encode_numericentity("\x01\x02\x03", $convmap, "UTF-8", true) . "\n";
43 $convmap = [0, 1000, 0, 0x123];
44 echo "10: " . mb_encode_numericentity('föo', $convmap, "UTF-8") . "\n";
45 echo "10 (hex): " . mb_encode_numericentity('föo', $convmap, "UTF-8", true) . "\n";
48 $convmap = [0, 0xFFFF, 0, 0xFFFF];
50 echo "11: " . mb_encode_numericentity($iso2022jp, $convmap, "ISO-2022-JP") . "\n";
51 echo "11 (hex): " . mb_encode_numericentity($iso2022jp, $convmap, "ISO-2022-JP", true) . "\n";
54 $convmap = [0x2b, 0x2d4, 0x75656500, 0x656d2c53];
55 echo "12: " . mb_encode_numericentity("m", $convmap, "ASCII") . "\n";