Back to index

php5  5.3.10
php_ereg.h
Go to the documentation of this file.
00001 /* 
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1997-2012 The PHP Group                                |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 3.01 of the PHP license,      |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.php.net/license/3_01.txt                                  |
00011    | If you did not receive a copy of the PHP license and are unable to   |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@php.net so we can mail you a copy immediately.               |
00014    +----------------------------------------------------------------------+
00015    | Author: Rasmus Lerdorf <rasmus@lerdorf.on.ca>                        |
00016    +----------------------------------------------------------------------+
00017 */
00018 
00019 
00020 /* $Id: php_ereg.h 321634 2012-01-01 13:15:04Z felipe $ */
00021 
00022 #ifndef EREG_H
00023 #define EREG_H
00024 
00025 #include "php_regex.h"
00026 
00027 extern zend_module_entry ereg_module_entry;
00028 #define phpext_ereg_ptr &ereg_module_entry
00029 
00030 PHPAPI char *php_ereg_replace(const char *pattern, const char *replace, const char *string, int icase, int extended);
00031 
00032 PHP_FUNCTION(ereg);
00033 PHP_FUNCTION(eregi);
00034 PHP_FUNCTION(eregi_replace);
00035 PHP_FUNCTION(ereg_replace);
00036 PHP_FUNCTION(split);
00037 PHP_FUNCTION(spliti);
00038 PHPAPI PHP_FUNCTION(sql_regcase);
00039 
00040 ZEND_BEGIN_MODULE_GLOBALS(ereg)
00041        HashTable ht_rc;
00042        unsigned int lru_counter;
00043 ZEND_END_MODULE_GLOBALS(ereg)
00044 
00045 /* Module functions */
00046 PHP_MINIT_FUNCTION(ereg);
00047 PHP_MSHUTDOWN_FUNCTION(ereg);
00048 PHP_MINFO_FUNCTION(ereg);
00049 
00050 #ifdef ZTS
00051 #define EREG(v) TSRMG(ereg_globals_id, zend_ereg_globals *, v)
00052 #else
00053 #define EREG(v) (ereg_globals.v)
00054 #endif
00055 
00056 #endif /* REG_H */