Lines Matching refs:mb_strpos
2 mb_strpos()
24 print mb_strpos($euc_jp, "\xC6\xFC\xCB\xDC\xB8\xEC", 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, "\xC6\xFC\xCB\xDC\xB8\xEC", 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";
37 print mb_strpos($euc_jp, "\xC6\xFC\xCB\xDC\xB8\xEC", -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";
47 $r = mb_strpos($euc_jp, "\xB4\xDA\xB9\xF1\xB8\xEC", 0, 'EUC-JP');
49 $r = mb_strpos($euc_jp, "\n", 0, 'EUC-JP');
58 print mb_strpos($euc_jp, "\xC6\xFC\xCB\xDC\xB8\xEC", 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";
63 $r = mb_strpos($euc_jp, "\xB4\xDA\xB9\xF1\xB8\xEC", 0);
65 $r = mb_strpos($euc_jp, "\n", 0);
73 print mb_strpos($euc_jp, "\xC6\xFC\xCB\xDC\xB8\xEC") . "\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";
78 $r = mb_strpos($euc_jp, "\xB4\xDA\xB9\xF1\xB8\xEC");
80 $r = mb_strpos($euc_jp, "\n");
85 // Previously, mb_strpos would internally convert invalid byte sequences to '?'
91 var_dump(mb_strpos("abc??", "\xFF", 0, "UTF-8")); // should be false
92 var_dump(mb_strpos("abc\xFF", "?", 0, "UTF-8")); // should be false
96 var_dump(mb_strpos("\x00a\x00b\x00c\xDF\xFF", "\xDB\x00", 0, "UTF-16BE"));
100 var_dump(mb_strpos("abc\x80\x80", "\xFF", 0, "UTF-8")); // should be false
101 var_dump(mb_strpos("abc\xFF", "c\x80", 0, "UTF-8")); // should be false
103 var_dump(mb_strpos("abc\x80\x80", "\x80", 0, "UTF-8"));
104 var_dump(mb_strpos("abc\xFF", "c\xFF", 0, "UTF-8"));