Lines Matching refs:n

21 mb_internal_encoding('UTF-8') or print("mb_internal_encoding() failed\n");
23 echo "== POSITIVE OFFSET ==\n";
24 print mb_stripos($euc_jp,b'���ܸ�', 0, 'EUC-JP') . "\n";
25 print mb_stripos($euc_jp, b'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,b'���ܸ�', 15, 'EUC-JP') . "\n";
29 print mb_stripos($euc_jp, b'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";
36 echo "== NEGATIVE OFFSET ==\n";
38 ($r === FALSE) ? print "OK_NEGATIVE_OFFSET\n" : print "NG_NEGATIVE_OFFSET\n";
40 ($r === FALSE) ? print "OK_NEGATIVE_OFFSET\n" : print "NG_NEGATIVE_OFFSET\n";
42 ($r === FALSE) ? print "OK_NEGATIVE_OFFSET\n" : print "NG_NEGATIVE_OFFSET\n";
44 ($r === FALSE) ? print "OK_NEGATIVE_OFFSET\n" : print "NG_NEGATIVE_OFFSET\n";
46 ($r === FALSE) ? print "OK_NEGATIVE_OFFSET\n" : print "NG_NEGATIVE_OFFSET\n";
48 ($r === FALSE) ? print "OK_NEGATIVE_OFFSET\n" : print "NG_NEGATIVE_OFFSET\n";
50 ($r === FALSE) ? print "OK_NEGATIVE_OFFSET\n" : print "NG_NEGATIVE_OFFSET\n";
52 ($r === FALSE) ? print "OK_NEGATIVE_OFFSET\n" : print "NG_NEGATIVE_OFFSET\n";
55 print ("== OUT OF RANGE ==\n");
57 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
59 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
61 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
63 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
65 // echo gettype($r). ' val '. $r ."\n";
69 echo "== NON-EXISTENT ==\n";
71 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
72 $r = mb_stripos($euc_jp, b"\n", 0, 'EUC-JP');
73 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
77 echo "== NO ENCODING PARAMETER ==\n";
78 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
80 print mb_stripos($euc_jp,b'���ܸ�', 0) . "\n";
81 print mb_stripos($euc_jp, b'0', 0) . "\n";
82 print mb_stripos($euc_jp, 3, 0) . "\n";
83 print mb_stripos($euc_jp, 0, 0) . "\n";
86 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
87 $r = mb_stripos($euc_jp,b"\n", 0);
88 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
91 echo "== NO OFFSET AND ENCODING PARAMETER ==\n";
92 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
94 print mb_stripos($euc_jp,b'���ܸ�') . "\n";
95 print mb_stripos($euc_jp, b'0') . "\n";
96 print mb_stripos($euc_jp, 3) . "\n";
97 print mb_stripos($euc_jp, 0) . "\n";
100 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
101 $r = mb_stripos($euc_jp,b"\n");
102 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
106 echo "== INVALID PARAMETER TEST ==\n";
109 ($r === NULL) ? print("OK_NULL\n") : print("NG_NULL\n");
111 ($r === NULL) ? print("OK_ARRAY\n") : print("NG_ARRAY\n");
113 ($r === NULL) ? print("OK_OBJECT\n") : print("NG_OBJECT\n");
115 ($r === NULL) ? print("OK_BAD_ENCODING\n") : print("NG_BAD_ENCODING\n");