root/ext/ereg/php_ereg.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* 
   2    +----------------------------------------------------------------------+
   3    | PHP Version 5                                                        |
   4    +----------------------------------------------------------------------+
   5    | Copyright (c) 1997-2016 The PHP Group                                |
   6    +----------------------------------------------------------------------+
   7    | This source file is subject to version 3.01 of the PHP license,      |
   8    | that is bundled with this package in the file LICENSE, and is        |
   9    | available through the world-wide-web at the following url:           |
  10    | http://www.php.net/license/3_01.txt                                  |
  11    | If you did not receive a copy of the PHP license and are unable to   |
  12    | obtain it through the world-wide-web, please send a note to          |
  13    | license@php.net so we can mail you a copy immediately.               |
  14    +----------------------------------------------------------------------+
  15    | Author: Rasmus Lerdorf <rasmus@lerdorf.on.ca>                        |
  16    +----------------------------------------------------------------------+
  17 */
  18 
  19 
  20 /* $Id$ */
  21 
  22 #ifndef EREG_H
  23 #define EREG_H
  24 
  25 #include "php_regex.h"
  26 
  27 extern zend_module_entry ereg_module_entry;
  28 #define phpext_ereg_ptr &ereg_module_entry
  29 
  30 #ifdef PHP_WIN32
  31 # define PHP_EREG_API __declspec(dllexport)
  32 #elif defined(__GNUC__) && __GNUC__ >= 4
  33 # define PHP_EREG_API __attribute__ ((visibility("default")))
  34 #else
  35 # define PHP_EREG_API
  36 #endif
  37 
  38 PHP_EREG_API char *php_ereg_replace(const char *pattern, const char *replace, const char *string, int icase, int extended TSRMLS_DC);
  39 
  40 PHP_FUNCTION(ereg);
  41 PHP_FUNCTION(eregi);
  42 PHP_FUNCTION(eregi_replace);
  43 PHP_FUNCTION(ereg_replace);
  44 PHP_FUNCTION(split);
  45 PHP_FUNCTION(spliti);
  46 PHP_EREG_API PHP_FUNCTION(sql_regcase);
  47 
  48 ZEND_BEGIN_MODULE_GLOBALS(ereg)
  49         HashTable ht_rc;
  50         unsigned int lru_counter;
  51 ZEND_END_MODULE_GLOBALS(ereg)
  52 
  53 /* Module functions */
  54 PHP_MINFO_FUNCTION(ereg);
  55 
  56 #ifdef ZTS
  57 #define EREG(v) TSRMG(ereg_globals_id, zend_ereg_globals *, v)
  58 #else
  59 #define EREG(v) (ereg_globals.v)
  60 #endif
  61 
  62 ZEND_EXTERN_MODULE_GLOBALS(ereg)
  63 
  64 #endif /* REG_H */

/* [<][>][^][v][top][bottom][index][help] */