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 ("== OUT OF RANGE ==\n");
48 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
50 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
52 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
54 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
56 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
58 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
60 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
62 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
66 echo "== NON-EXISTENT ==\n";
69 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
70 $r = mb_stripos($euc_jp, "\n", 0, 'EUC-JP');
71 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
75 echo "== NO ENCODING PARAMETER ==\n";
77 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
79 print mb_stripos($euc_jp, '���ܸ�', 0) . "\n";
80 print mb_stripos($euc_jp, '0', 0) . "\n";
81 print mb_stripos($euc_jp, 3, 0) . "\n";
82 print mb_stripos($euc_jp, 0, 0) . "\n";
85 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
86 $r = mb_stripos($euc_jp, "\n", 0);
87 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
90 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, '���ܸ�') . "\n";
95 print mb_stripos($euc_jp, '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, "\n");
102 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";