Lines Matching refs:bin2hex
30 print "1: ". bin2hex(mb_substr($euc_jp, 10, 10,'EUC-JP')) . "\n";
31 print "2: ". bin2hex(mb_substr($euc_jp, 0, 100,'EUC-JP')) . "\n";
35 ($str === "") ? print "3 OK\n" : print "NG: ".bin2hex($str)."\n";
38 print ($str !== "") ? "4 OK: " . bin2hex($str) . "\n" : "BAD: " . bin2hex($str) . "\n";
41 print "1: " . bin2hex(mb_substr($sjis, 0, 3, 'SJIS')) . "\n";
42 print "2: " . bin2hex(mb_substr($sjis, -1, null, 'SJIS')) . "\n";
43 print "3: " . bin2hex(mb_substr($sjis, -5, 3, 'SJIS')) . "\n";
44 print "4: " . bin2hex(mb_substr($sjis, 1, null, 'SJIS')) . "\n";
45 print "5:" . bin2hex(mb_substr($sjis, 10, 0, 'SJIS')) . "\n";
47 print bin2hex(mb_substr("\x80abc\x80\xA1", 3, 2, 'SJIS')) . "\n";
48 print bin2hex(mb_substr("\x80abc\x80\xA1", 0, 3, 'SJIS')) . "\n";
51 print bin2hex(mb_substr("\x80abc\x80\xA1", 3, 2, 'SJIS-2004')) . "\n";
52 print bin2hex(mb_substr("\x80abc\x80\xA1", 0, 3, 'SJIS-2004')) . "\n";
55 print bin2hex(mb_substr("\x80abc\x80\xA1", 3, 2, 'MacJapanese')) . "\n";
56 print bin2hex(mb_substr("\x80abc\x80\xA1", 0, 3, 'MacJapanese')) . "\n";
59 print bin2hex(mb_substr("\x80abc\x80\xA1", 3, 2, 'SJIS-Mobile#DOCOMO')) . "\n";
60 print bin2hex(mb_substr("\x80abc\x80\xA1", 0, 3, 'SJIS-Mobile#DOCOMO')) . "\n";
63 print bin2hex(mb_substr("\x80abc\x80\xA1", 3, 2, 'SJIS-Mobile#KDDI')) . "\n";
64 print bin2hex(mb_substr("\x80abc\x80\xA1", 0, 3, 'SJIS-Mobile#KDDI')) . "\n";
67 print bin2hex(mb_substr("\x80abc\x80\xA1", 3, 2, 'SJIS-Mobile#SoftBank')) . "\n";
68 print bin2hex(mb_substr("\x80abc\x80\xA1", 0, 3, 'SJIS-Mobile#SoftBank')) . "\n";
71 print "1: " . bin2hex(mb_substr($iso2022jp, 0, 3, 'ISO-2022-JP')) . "\n";
72 print "2: " . bin2hex(mb_substr($iso2022jp, -1, null, 'ISO-2022-JP')) . "\n";
73 print "3: " . bin2hex(mb_substr($iso2022jp, -6, 3, 'ISO-2022-JP')) . "\n";
74 print "4: " . bin2hex(mb_substr($iso2022jp, -3, 2, 'ISO-2022-JP')) . "\n";
75 print "5: " . bin2hex(mb_substr($iso2022jp, 1, null, 'ISO-2022-JP')) . "\n";
76 print "6:" . bin2hex(mb_substr($iso2022jp, 10, 0, 'ISO-2022-JP')) . "\n";
77 print "7:" . bin2hex(mb_substr($iso2022jp, 100, 10, 'ISO-2022-JP')) . "\n";
80 print "1: " . bin2hex(mb_substr($gb18030, 0, 3, 'GB-18030')) . "\n";
81 print "2: " . bin2hex(mb_substr($gb18030, -1, null, 'GB-18030')) . "\n";
82 print "3: " . bin2hex(mb_substr($gb18030, -5, 3, 'GB-18030')) . "\n";
83 print "4: " . bin2hex(mb_substr($gb18030, 1, null, 'GB-18030')) . "\n";
84 print "5:" . bin2hex(mb_substr($gb18030, 10, 0, 'GB-18030')) . "\n";