Debian Codegraph @

extensions/AbuseFilter/tests/parserTests/strpos.t

raw
1 strpos( "foobarfoo", "foo" ) === 0 &
2 strpos( "foobarfoo", "" ) === -1 &
3 strpos( "foobarfoo", "foo", 1 ) === 6 &
4 strpos( "foobarfoo", "lol" ) === -1 &
5 /* Offset not contained in the haystack */
6 strpos( "foo", "o", 123456 ) === -1