Lines Matching refs:n
17 echo "String len: $slen\n";
20 mb_internal_encoding('UTF-8') or print("mb_internal_encoding() failed\n");
22 echo "== POSITIVE OFFSET ==\n";
24 print mb_stripos($euc_jp, '���ܸ�', 0, 'EUC-JP') . "\n";
25 print mb_stripos($euc_jp, '0', 0, 'EUC-JP') . "\n";
26 print mb_stripos($euc_jp, 3, 0, 'EUC-JP') . "\n";
27 print mb_stripos($euc_jp, 0, 0, 'EUC-JP') . "\n";
28 print mb_stripos($euc_jp, '���ܸ�', 15, 'EUC-JP') . "\n";
29 print mb_stripos($euc_jp, '0', 15, 'EUC-JP') . "\n";
30 print mb_stripos($euc_jp, 3, 15, 'EUC-JP') . "\n";
31 print mb_stripos($euc_jp, 0, 15, 'EUC-JP') . "\n";
35 echo "== NEGATIVE OFFSET ==\n";
37 print mb_stripos($euc_jp, '���ܸ�', -15, 'EUC-JP') . "\n";
38 print mb_stripos($euc_jp, '0', -15, 'EUC-JP') . "\n";
39 print mb_stripos($euc_jp, 3, -15, 'EUC-JP') . "\n";
40 print mb_stripos($euc_jp, 0, -15, 'EUC-JP') . "\n";
41 print mb_stripos($euc_jp, 0, -43, 'EUC-JP') . "\n";
45 print ("== INVALID OFFSET ==\n");
48 ($r === FALSE) ? print "OK_INVALID_OFFSET\n" : print "NG_INVALID_OFFSET\n";
50 ($r === FALSE) ? print "OK_INVALID_OFFSET\n" : print "NG_INVALID_OFFSET\n";
52 ($r === FALSE) ? print "OK_INVALID_OFFSET\n" : print "NG_INVALID_OFFSET\n";
54 ($r === FALSE) ? print "OK_INVALID_OFFSET\n" : print "NG_INVALID_OFFSET\n";
56 ($r === FALSE) ? print "OK_INVALID_OFFSET\n" : print "NG_INVALID_OFFSET\n";
58 ($r === FALSE) ? print "OK_INVALID_OFFSET\n" : print "NG_INVALID_OFFSET\n";
60 ($r === FALSE) ? print "OK_INVALID_OFFSET\n" : print "NG_INVALID_OFFSET\n";
62 ($r === FALSE) ? print "OK_INVALID_OFFSET\n" : print "NG_INVALID_OFFSET\n";
64 ($r === FALSE) ? print "OK_INVALID_OFFSET\n" : print "NG_INVALID_OFFSET\n";
66 ($r === FALSE) ? print "OK_INVALID_OFFSET\n" : print "NG_INVALID_OFFSET\n";
69 print ("== OUT OF RANGE ==\n");
72 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
74 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
76 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
78 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
80 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
82 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
84 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
86 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
90 echo "== NON-EXISTENT ==\n";
93 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
94 $r = mb_stripos($euc_jp, "\n", 0, 'EUC-JP');
95 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
99 echo "== NO ENCODING PARAMETER ==\n";
101 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
103 print mb_stripos($euc_jp, '���ܸ�', 0) . "\n";
104 print mb_stripos($euc_jp, '0', 0) . "\n";
105 print mb_stripos($euc_jp, 3, 0) . "\n";
106 print mb_stripos($euc_jp, 0, 0) . "\n";
109 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
110 $r = mb_stripos($euc_jp, "\n", 0);
111 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
114 echo "== NO OFFSET AND ENCODING PARAMETER ==\n";
116 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
118 print mb_stripos($euc_jp, '���ܸ�') . "\n";
119 print mb_stripos($euc_jp, '0') . "\n";
120 print mb_stripos($euc_jp, 3) . "\n";
121 print mb_stripos($euc_jp, 0) . "\n";
124 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
125 $r = mb_stripos($euc_jp, "\n");
126 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
130 echo "== INVALID PARAMETER TEST ==\n";
133 ($r === NULL) ? print("OK_NULL\n") : print("NG_NULL\n");
135 ($r === NULL) ? print("OK_ARRAY\n") : print("NG_ARRAY\n");
137 ($r === NULL) ? print("OK_OBJECT\n") : print("NG_OBJECT\n");
139 ($r === NULL) ? print("OK_BAD_ENCODING\n") : print("NG_BAD_ENCODING\n");