Example #1
0
bool TestExtMb::test_mb_eregi_replace() {
  String pattern = "(>[^<]*)(suffix)";
  String replacement = "\\1<span class=\"search\">\\2</span>";
  String body = ">whateversuffix";
  body = f_mb_eregi_replace(pattern, replacement, body);
  VS(body, ">whatever<span class=\"search\">suffix</span>");
  return Count(true);
}
Example #2
0
String HHVM_FUNCTION(eregi_replace, const String& pattern,
                                    const String& replacement,
                                    const String& str) {
  return f_mb_eregi_replace(pattern, replacement, str);
}
Example #3
0
String f_eregi_replace(CStrRef pattern, CStrRef replacement, CStrRef str) {
  return f_mb_eregi_replace(pattern, replacement, str);
}