Variant f_stristr(CStrRef haystack, CVarRef needle) { Variant ret = f_stripos(haystack, needle); if (same(ret, false)) { return false; } return haystack.substr(ret.toInt32()); }
bool TestExtString::test_stripos() { VS(f_stripos("abcdef abcdef", "A", 1), 7); return Count(true); }