1 Star 0 Fork 3

xxx / php-ext-trie-filter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
php_trie_filter.h 2.36 KB
一键复制 编辑 原始数据 按行查看 历史
zzjin 提交于 2017-08-08 16:44 . 1. 支持php7
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2010 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP 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.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Lijun Wu <wulijun01234@gmail.com> |
+----------------------------------------------------------------------+
*/
/* $Id$ */
#include <iconv.h>
#include <datrie/trie.h>
#ifndef PHP_TRIE_FILTER_H
#define PHP_TRIE_FILTER_H
extern zend_module_entry trie_filter_module_entry;
#define phpext_trie_filter_ptr &trie_filter_module_entry
#ifdef PHP_WIN32
#define PHP_TRIE_FILTER_API __declspec(dllexport)
#else
#define PHP_TRIE_FILTER_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
#define ALPHA_CHARSET "UCS-4LE"
#define PHP_TRIE_FILTER_RES_NAME "Trie tree filter"
PHP_MINIT_FUNCTION(trie_filter);
PHP_MSHUTDOWN_FUNCTION(trie_filter);
PHP_RINIT_FUNCTION(trie_filter);
PHP_RSHUTDOWN_FUNCTION(trie_filter);
PHP_MINFO_FUNCTION(trie_filter);
PHP_FUNCTION(trie_filter_load);
PHP_FUNCTION(trie_filter_read);
PHP_FUNCTION(trie_filter_search);
PHP_FUNCTION(trie_filter_search_all);
PHP_FUNCTION(trie_filter_new);
PHP_FUNCTION(trie_filter_store);
PHP_FUNCTION(trie_filter_delete);
PHP_FUNCTION(trie_filter_save);
PHP_FUNCTION(trie_filter_write);
PHP_FUNCTION(trie_filter_free);
#ifdef ZTS
#define TRIE_FILTER_G(v) TSRMG(trie_filter_globals_id, zend_trie_filter_globals *, v)
#else
#define TRIE_FILTER_G(v) (trie_filter_globals.v)
#endif
#endif /* PHP_TRIE_FILTER_H */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/
1
https://gitee.com/kxvzz/php-ext-trie-filter.git
git@gitee.com:kxvzz/php-ext-trie-filter.git
kxvzz
php-ext-trie-filter
php-ext-trie-filter
master

搜索帮助