Lines Matching refs:n

19 echo "== ASCII ==\n";
20 print mb_strlen($ascii,'ASCII') . "\n";
21 print strlen($ascii) . "\n";
23 echo "== EUC-JP ==\n";
24 print mb_strlen($euc_jp,'EUC-JP') . "\n";
25 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
26 print strlen($euc_jp) . "\n";
28 echo "== SJIS ==\n";
30 print mb_strlen($sjis,'SJIS') . "\n";
31 mb_internal_encoding('SJIS') or print("mb_internal_encoding() failed\n");
32 print strlen($sjis) . "\n";
33 print "-- Testing illegal bytes 0x80,0xFD-FF --\n";
35 print mb_strlen("\x80\xA1", 'SJIS') . "\n";
36 print mb_strlen("abc\xFD\xFE\xFF", 'SJIS') . "\n";
38 echo "== CP932 ==\n";
39 print mb_strlen("\x80\xA1", "CP932") . "\n";
41 print mb_strlen("abc\xFD\xFE\xFF", 'CP932') . "\n";
43 echo "== MacJapanese ==\n";
44 print mb_strlen("\x80\xA1", 'MacJapanese') . "\n";
45 print mb_strlen("abc\xFD\xFE\xFF", 'MacJapanese') . "\n";
47 echo "== SJIS-2004 ==\n";
48 print mb_strlen("\x80\xA1", 'SJIS-2004') . "\n";
49 print mb_strlen("abc\xFD\xFE\xFF", 'SJIS-2004') . "\n";
51 echo "== SJIS-Mobile#DOCOMO ==\n";
52 print mb_strlen("\x80\xA1", 'SJIS-Mobile#DOCOMO') . "\n";
53 print mb_strlen("abc\xFD\xFE\xFF", 'SJIS-Mobile#DOCOMO') . "\n";
55 echo "== SJIS-Mobile#KDDI ==\n";
56 print mb_strlen("\x80\xA1", 'SJIS-Mobile#KDDI') . "\n";
57 print mb_strlen("abc\xFD\xFE\xFF", 'SJIS-Mobile#KDDI') . "\n";
59 echo "== SJIS-Mobile#SoftBank ==\n";
60 print mb_strlen("\x80\xA1", 'SJIS-Mobile#SoftBank') . "\n";
61 print mb_strlen("abc\xFD\xFE\xFF", 'SJIS-Mobile#SoftBank') . "\n";
63 echo "== JIS ==\n";
65 print mb_strlen($jis,'JIS') . "\n";
66 mb_internal_encoding('JIS') or print("mb_internal_encoding() failed\n");
67 print strlen($jis) . "\n";
69 echo "== UTF-8 ==\n";
71 print mb_strlen($utf8,'UTF-8') . "\n";
72 mb_internal_encoding('UTF-8') or print("mb_internal_encoding() failed\n");
73 print strlen($utf8) . "\n";
76 echo "== WRONG PARAMETERS ==\n";