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_strpos($euc_jp, '���ܸ�', 0, 'EUC-JP') . "\n";
25 print mb_strpos($euc_jp, '0', 0, 'EUC-JP') . "\n";
26 print mb_strpos($euc_jp, 3, 0, 'EUC-JP') . "\n";
27 print mb_strpos($euc_jp, 0, 0, 'EUC-JP') . "\n";
28 print mb_strpos($euc_jp, '���ܸ�', 15, 'EUC-JP') . "\n";
29 print mb_strpos($euc_jp, '0', 15, 'EUC-JP') . "\n";
30 print mb_strpos($euc_jp, 3, 15, 'EUC-JP') . "\n";
31 print mb_strpos($euc_jp, 0, 15, 'EUC-JP') . "\n";
35 echo "== NEGATIVE OFFSET ==\n";
37 print mb_strpos($euc_jp, '���ܸ�', -15, 'EUC-JP') . "\n";
38 print mb_strpos($euc_jp, '0', -15, 'EUC-JP') . "\n";
39 print mb_strpos($euc_jp, 3, -15, 'EUC-JP') . "\n";
40 print mb_strpos($euc_jp, 0, -15, 'EUC-JP') . "\n";
41 print mb_strpos($euc_jp, 0, -43, 'EUC-JP') . "\n";
45 echo "== NON-EXISTENT ==\n";
48 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
49 $r = mb_strpos($euc_jp, "\n", 0, 'EUC-JP');
50 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
54 echo "== NO ENCODING PARAMETER ==\n";
56 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
58 print mb_strpos($euc_jp, '���ܸ�', 0) . "\n";
59 print mb_strpos($euc_jp, '0', 0) . "\n";
60 print mb_strpos($euc_jp, 3, 0) . "\n";
61 print mb_strpos($euc_jp, 0, 0) . "\n";
64 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
65 $r = mb_strpos($euc_jp, "\n", 0);
66 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
69 echo "== NO OFFSET AND ENCODING PARAMETER ==\n";
71 mb_internal_encoding('EUC-JP') or print("mb_internal_encoding() failed\n");
73 print mb_strpos($euc_jp, '���ܸ�') . "\n";
74 print mb_strpos($euc_jp, '0') . "\n";
75 print mb_strpos($euc_jp, 3) . "\n";
76 print mb_strpos($euc_jp, 0) . "\n";
79 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
80 $r = mb_strpos($euc_jp, "\n");
81 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";