Lines Matching refs:n

16 echo "String len: $slen\n";
19 mb_internal_encoding('UTF-8') or print("mb_internal_encoding() failed\n");
21 echo "== POSITIVE OFFSET ==\n";
23 print mb_stripos($euc_jp, "\xC6\xFC\xCB\xDC\xB8\xEC", 0, 'EUC-JP') . "\n";
24 print mb_stripos($euc_jp, '0', 0, 'EUC-JP') . "\n";
25 print mb_stripos($euc_jp, 3, 0, 'EUC-JP') . "\n";
26 print mb_stripos($euc_jp, 0, 0, 'EUC-JP') . "\n";
27 print mb_stripos($euc_jp, "\xC6\xFC\xCB\xDC\xB8\xEC", 15, 'EUC-JP') . "\n";
28 print mb_stripos($euc_jp, '0', 15, 'EUC-JP') . "\n";
29 print mb_stripos($euc_jp, 3, 15, 'EUC-JP') . "\n";
30 print mb_stripos($euc_jp, 0, 15, 'EUC-JP') . "\n";
34 echo "== NEGATIVE OFFSET ==\n";
36 print mb_stripos($euc_jp, "\xC6\xFC\xCB\xDC\xB8\xEC", -15, 'EUC-JP') . "\n";
37 print mb_stripos($euc_jp, '0', -15, 'EUC-JP') . "\n";
38 print mb_stripos($euc_jp, 3, -15, 'EUC-JP') . "\n";
39 print mb_stripos($euc_jp, 0, -15, 'EUC-JP') . "\n";
40 print mb_stripos($euc_jp, 0, -43, 'EUC-JP') . "\n";
44 print "== OUT OF RANGE ==\n";
47 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
49 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
51 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
53 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
55 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_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";
65 echo "== NON-EXISTENT ==\n";
68 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
69 $r = mb_stripos($euc_jp, "\n", 0, 'EUC-JP');
70 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
74 echo "== NO ENCODING PARAMETER ==\n";
76 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
78 print mb_stripos($euc_jp, "\xC6\xFC\xCB\xDC\xB8\xEC", 0) . "\n";
79 print mb_stripos($euc_jp, '0', 0) . "\n";
80 print mb_stripos($euc_jp, 3, 0) . "\n";
81 print mb_stripos($euc_jp, 0, 0) . "\n";
84 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
85 $r = mb_stripos($euc_jp, "\n", 0);
86 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
89 echo "== NO OFFSET AND ENCODING PARAMETER ==\n";
91 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
93 print mb_stripos($euc_jp, "\xC6\xFC\xCB\xDC\xB8\xEC") . "\n";
94 print mb_stripos($euc_jp, '0') . "\n";
95 print mb_stripos($euc_jp, 3) . "\n";
96 print mb_stripos($euc_jp, 0) . "\n";
99 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
100 $r = mb_stripos($euc_jp, "\n");
101 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
103 echo "== INVALID STRINGS ==\n";