Lines Matching refs:SJIS
15 // SJIS
16 $sjis = mb_convert_encoding('日本語テキストです。0123456789。', 'SJIS', 'UTF-8');
40 echo "SJIS:\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";
46 echo "-- Testing illegal SJIS byte 0x80 --\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";
50 echo "SJIS-2004:\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";
58 echo "SJIS-Mobile#DOCOMO:\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";
62 echo "SJIS-Mobile#KDDI:\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";
66 echo "SJIS-Mobile#SoftBank:\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";
120 SJIS:
126 -- Testing illegal SJIS byte 0x80 --
129 SJIS-2004:
135 SJIS-Mobile#DOCOMO:
138 SJIS-Mobile#KDDI:
141 SJIS-Mobile#SoftBank: