コード例 #1
0
ファイル: ext_string.cpp プロジェクト: mukulu/hiphop-php
Variant f_stristr(CStrRef haystack, CVarRef needle) {
  Variant ret = f_stripos(haystack, needle);
  if (same(ret, false)) {
    return false;
  }
  return haystack.substr(ret.toInt32());
}
コード例 #2
0
bool TestExtString::test_stripos() {
  VS(f_stripos("abcdef abcdef", "A", 1), 7);
  return Count(true);
}