Annotation of embedaddon/php/ext/mbstring/php_mbregex.h, revision 1.1

1.1     ! misho       1: /*
        !             2:    +----------------------------------------------------------------------+
        !             3:    | PHP Version 5                                                        |
        !             4:    +----------------------------------------------------------------------+
        !             5:    | Copyright (c) 1997-2012 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: Moriyoshi Koizumi <moriyoshi@php.net>                        |
        !            16:    +----------------------------------------------------------------------+
        !            17:  */
        !            18: 
        !            19: /* $Id: php_mbregex.h 321634 2012-01-01 13:15:04Z felipe $ */
        !            20:  
        !            21: #ifndef _PHP_MBREGEX_H
        !            22: #define _PHP_MBREGEX_H
        !            23: 
        !            24: #if HAVE_MBREGEX
        !            25: 
        !            26: #include "php.h"
        !            27: #include "zend.h"
        !            28: 
        !            29: /* {{{ PHP_MBREGEX_FUNCTION_ENTRIES */
        !            30: #define PHP_MBREGEX_FUNCTION_ENTRIES \
        !            31:        PHP_FE(mb_regex_encoding,       arginfo_mb_regex_encoding) \
        !            32:        PHP_FE(mb_regex_set_options,    arginfo_mb_regex_set_options) \
        !            33:        PHP_FE(mb_ereg,                 arginfo_mb_ereg) \
        !            34:        PHP_FE(mb_eregi,                        arginfo_mb_eregi) \
        !            35:        PHP_FE(mb_ereg_replace,                 arginfo_mb_ereg_replace) \
        !            36:        PHP_FE(mb_eregi_replace,                        arginfo_mb_eregi_replace) \
        !            37:        PHP_FE(mb_split,                                        arginfo_mb_split) \
        !            38:        PHP_FE(mb_ereg_match,                   arginfo_mb_ereg_match) \
        !            39:        PHP_FE(mb_ereg_search,                  arginfo_mb_ereg_search) \
        !            40:        PHP_FE(mb_ereg_search_pos,              arginfo_mb_ereg_search_pos) \
        !            41:        PHP_FE(mb_ereg_search_regs,             arginfo_mb_ereg_search_regs) \
        !            42:        PHP_FE(mb_ereg_search_init,             arginfo_mb_ereg_search_init) \
        !            43:        PHP_FE(mb_ereg_search_getregs,  arginfo_mb_ereg_search_getregs) \
        !            44:        PHP_FE(mb_ereg_search_getpos,   arginfo_mb_ereg_search_getpos) \
        !            45:        PHP_FE(mb_ereg_search_setpos,   arginfo_mb_ereg_search_setpos) \
        !            46:        PHP_FALIAS(mbregex_encoding,    mb_regex_encoding,      arginfo_mb_regex_encoding) \
        !            47:        PHP_FALIAS(mbereg,      mb_ereg,        arginfo_mb_ereg) \
        !            48:        PHP_FALIAS(mberegi,     mb_eregi,       arginfo_mb_eregi) \
        !            49:        PHP_FALIAS(mbereg_replace,      mb_ereg_replace,        arginfo_mb_ereg_replace) \
        !            50:        PHP_FALIAS(mberegi_replace,     mb_eregi_replace,       arginfo_mb_eregi_replace) \
        !            51:        PHP_FALIAS(mbsplit,     mb_split,       arginfo_mb_split) \
        !            52:        PHP_FALIAS(mbereg_match,        mb_ereg_match,  arginfo_mb_ereg_match) \
        !            53:        PHP_FALIAS(mbereg_search,       mb_ereg_search, arginfo_mb_ereg_search) \
        !            54:        PHP_FALIAS(mbereg_search_pos,   mb_ereg_search_pos,     arginfo_mb_ereg_search_pos) \
        !            55:        PHP_FALIAS(mbereg_search_regs,  mb_ereg_search_regs,    arginfo_mb_ereg_search_regs) \
        !            56:        PHP_FALIAS(mbereg_search_init,  mb_ereg_search_init,    arginfo_mb_ereg_search_init) \
        !            57:        PHP_FALIAS(mbereg_search_getregs,       mb_ereg_search_getregs, arginfo_mb_ereg_search_getregs) \
        !            58:        PHP_FALIAS(mbereg_search_getpos,        mb_ereg_search_getpos,  arginfo_mb_ereg_search_getpos) \
        !            59:        PHP_FALIAS(mbereg_search_setpos,        mb_ereg_search_setpos,  arginfo_mb_ereg_search_setpos)
        !            60: /* }}} */
        !            61: 
        !            62: #define PHP_MBREGEX_MAXCACHE 50
        !            63: 
        !            64: PHP_MINIT_FUNCTION(mb_regex);
        !            65: PHP_MSHUTDOWN_FUNCTION(mb_regex);
        !            66: PHP_RINIT_FUNCTION(mb_regex);
        !            67: PHP_RSHUTDOWN_FUNCTION(mb_regex);
        !            68: PHP_MINFO_FUNCTION(mb_regex);
        !            69: 
        !            70: typedef struct _zend_mb_regex_globals zend_mb_regex_globals;
        !            71: 
        !            72: zend_mb_regex_globals *php_mb_regex_globals_alloc(TSRMLS_D);
        !            73: void php_mb_regex_globals_free(zend_mb_regex_globals *pglobals TSRMLS_DC);
        !            74: int php_mb_regex_set_mbctype(const char *enc TSRMLS_DC);
        !            75: int php_mb_regex_set_default_mbctype(const char *encname TSRMLS_DC);
        !            76: const char *php_mb_regex_get_mbctype(TSRMLS_D);
        !            77: const char *php_mb_regex_get_default_mbctype(TSRMLS_D);
        !            78: 
        !            79: PHP_FUNCTION(mb_regex_encoding);
        !            80: PHP_FUNCTION(mb_ereg);
        !            81: PHP_FUNCTION(mb_eregi);
        !            82: PHP_FUNCTION(mb_ereg_replace);
        !            83: PHP_FUNCTION(mb_eregi_replace);
        !            84: PHP_FUNCTION(mb_split);
        !            85: PHP_FUNCTION(mb_ereg_match);
        !            86: PHP_FUNCTION(mb_ereg_search);
        !            87: PHP_FUNCTION(mb_ereg_search_pos);
        !            88: PHP_FUNCTION(mb_ereg_search_regs);
        !            89: PHP_FUNCTION(mb_ereg_search_init);
        !            90: PHP_FUNCTION(mb_ereg_search_getregs);
        !            91: PHP_FUNCTION(mb_ereg_search_getpos);
        !            92: PHP_FUNCTION(mb_ereg_search_setpos);
        !            93: PHP_FUNCTION(mb_regex_set_options);
        !            94: 
        !            95: #endif /* HAVE_MBREGEX */
        !            96: 
        !            97: #endif /* _PHP_MBREGEX_H */
        !            98: 
        !            99: /*
        !           100:  * Local variables:
        !           101:  * tab-width: 4
        !           102:  * c-basic-offset: 4
        !           103:  * End:
        !           104:  * vim600: noet sw=4 ts=4 fdm=marker
        !           105:  * vim<600: noet sw=4 ts=4
        !           106:  */
        !           107: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>