a8e3321fbd
We'd like to start using ##mixed## instead of ##var## for attribute types to be consistent with Hack. As a followup to this (once released), we would codemod all ##var## to ##mixed##.
62 linhas
2.6 KiB
C++
62 linhas
2.6 KiB
C++
/*
|
|
+----------------------------------------------------------------------+
|
|
| HipHop for PHP |
|
|
+----------------------------------------------------------------------+
|
|
| Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
|
|
| Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) |
|
|
+----------------------------------------------------------------------+
|
|
| This source file is subject to version 2.00 of the Zend license, |
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
| available through the world-wide-web at the following url: |
|
|
| http://www.zend.com/license/2_00.txt. |
|
|
| If you did not receive a copy of the Zend license and are unable to |
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
| license@zend.com so we can mail you a copy immediately. |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
|
|
#ifndef incl_HPHP_PREG_H_
|
|
#define incl_HPHP_PREG_H_
|
|
|
|
#include "hphp/runtime/base/types.h"
|
|
#include "hphp/runtime/base/complex_types.h"
|
|
|
|
namespace HPHP {
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
Variant preg_grep(CStrRef pattern, CArrRef input, int flags = 0);
|
|
|
|
Variant preg_match(CStrRef pattern, CStrRef subject, Variant &matches,
|
|
int flags = 0, int offset = 0);
|
|
|
|
Variant preg_match(CStrRef pattern, CStrRef subject, int flags = 0,
|
|
int offset = 0);
|
|
|
|
Variant preg_match_all(CStrRef pattern, CStrRef subject, Variant &matches,
|
|
int flags = 0, int offset = 0);
|
|
|
|
Variant preg_match_all(CStrRef pattern, CStrRef subject,
|
|
int flags = 0, int offset = 0);
|
|
|
|
Variant preg_replace_impl(CVarRef pattern, CVarRef replacement,
|
|
CVarRef subject, int limit, Variant &count,
|
|
bool is_callable);
|
|
int preg_replace(Variant &result, CVarRef pattern, CVarRef replacement,
|
|
CVarRef subject, int limit = -1);
|
|
int preg_replace_callback(Variant &result, CVarRef pattern, CVarRef callback,
|
|
CVarRef subject, int limit = -1);
|
|
|
|
Variant preg_split(CVarRef pattern, CVarRef subject, int limit = -1,
|
|
int flags = 0);
|
|
String preg_quote(CStrRef str, CStrRef delimiter = null_string);
|
|
Variant php_split(CStrRef spliton, CStrRef str, int count, bool icase);
|
|
|
|
int preg_last_error();
|
|
|
|
size_t preg_pcre_cache_size();
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
}
|
|
|
|
#endif // incl_HPHP_PREG_H__
|