Lines Matching refs:SJIS
12 // SJIS
13 $sjis = mb_convert_encoding('日本語テキストです。0123456789。', 'SJIS', 'UTF-8');
37 echo "SJIS:\n";
38 print "1: " . bin2hex(mb_substr($sjis, 0, 3, 'SJIS')) . "\n";
39 print "2: " . bin2hex(mb_substr($sjis, -1, null, 'SJIS')) . "\n";
40 print "3: " . bin2hex(mb_substr($sjis, -5, 3, 'SJIS')) . "\n";
41 print "4: " . bin2hex(mb_substr($sjis, 1, null, 'SJIS')) . "\n";
42 print "5:" . bin2hex(mb_substr($sjis, 10, 0, 'SJIS')) . "\n";
43 echo "-- Testing illegal SJIS byte 0x80 --\n";
44 print bin2hex(mb_substr("\x80abc\x80\xA1", 3, 2, 'SJIS')) . "\n";
45 print bin2hex(mb_substr("\x80abc\x80\xA1", 0, 3, 'SJIS')) . "\n";
47 echo "SJIS-2004:\n";
48 print bin2hex(mb_substr("\x80abc\x80\xA1", 3, 2, 'SJIS-2004')) . "\n";
49 print bin2hex(mb_substr("\x80abc\x80\xA1", 0, 3, 'SJIS-2004')) . "\n";
55 echo "SJIS-Mobile#DOCOMO:\n";
56 print bin2hex(mb_substr("\x80abc\x80\xA1", 3, 2, 'SJIS-Mobile#DOCOMO')) . "\n";
57 print bin2hex(mb_substr("\x80abc\x80\xA1", 0, 3, 'SJIS-Mobile#DOCOMO')) . "\n";
59 echo "SJIS-Mobile#KDDI:\n";
60 print bin2hex(mb_substr("\x80abc\x80\xA1", 3, 2, 'SJIS-Mobile#KDDI')) . "\n";
61 print bin2hex(mb_substr("\x80abc\x80\xA1", 0, 3, 'SJIS-Mobile#KDDI')) . "\n";
63 echo "SJIS-Mobile#SoftBank:\n";
64 print bin2hex(mb_substr("\x80abc\x80\xA1", 3, 2, 'SJIS-Mobile#SoftBank')) . "\n";
65 print bin2hex(mb_substr("\x80abc\x80\xA1", 0, 3, 'SJIS-Mobile#SoftBank')) . "\n";
148 SJIS:
154 -- Testing illegal SJIS byte 0x80 --
157 SJIS-2004:
163 SJIS-Mobile#DOCOMO:
166 SJIS-Mobile#KDDI:
169 SJIS-Mobile#SoftBank: