mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Unicode support.
This commit is contained in:
parent
b80cb7bd2f
commit
264cec8be6
97 changed files with 6227 additions and 961 deletions
79
ext/unicode/php_unicode.h
Normal file
79
ext/unicode/php_unicode.h
Normal file
|
@ -0,0 +1,79 @@
|
|||
/*
|
||||
+----------------------------------------------------------------------+
|
||||
| This source file is subject to version 3.0 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_0.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. |
|
||||
+----------------------------------------------------------------------+
|
||||
| Authors: Andrei Zmievski <andrei@php.net> |
|
||||
+----------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
/* $ Id: $ */
|
||||
|
||||
#ifndef PHP_UNICODE_H
|
||||
#define PHP_UNICODE_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <php.h>
|
||||
|
||||
#ifdef HAVE_UNICODE
|
||||
|
||||
#include <php_ini.h>
|
||||
#include <SAPI.h>
|
||||
#include <ext/standard/info.h>
|
||||
|
||||
|
||||
extern zend_module_entry unicode_module_entry;
|
||||
#define phpext_unicode_ptr &unicode_module_entry
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
#define PHP_UNICODE_API __declspec(dllexport)
|
||||
#else
|
||||
#define PHP_UNICODE_API
|
||||
#endif
|
||||
|
||||
PHP_MINIT_FUNCTION(unicode);
|
||||
PHP_MSHUTDOWN_FUNCTION(unicode);
|
||||
PHP_RINIT_FUNCTION(unicode);
|
||||
PHP_RSHUTDOWN_FUNCTION(unicode);
|
||||
PHP_MINFO_FUNCTION(unicode);
|
||||
|
||||
#ifdef ZTS
|
||||
#include "TSRM.h"
|
||||
#endif
|
||||
|
||||
PHP_FUNCTION(icu_loc_get_default);
|
||||
PHP_FUNCTION(icu_loc_set_default);
|
||||
|
||||
extern php_stream_filter_factory php_unicode_filter_factory;
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#include <zend_unicode.h>
|
||||
#include <unicode/uloc.h>
|
||||
#endif /* PHP_HAVE_UNICODE */
|
||||
|
||||
#endif /* PHP_UNICODE_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
|
||||
*/
|
Loading…
Add table
Add a link
Reference in a new issue