Back to index

php5  5.3.10
php_intl.h
Go to the documentation of this file.
00001 /*
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | This source file is subject to version 3.01 of the PHP license,      |
00006    | that is bundled with this package in the file LICENSE, and is        |
00007    | available through the world-wide-web at the following url:           |
00008    | http://www.php.net/license/3_01.txt                                  |
00009    | If you did not receive a copy of the PHP license and are unable to   |
00010    | obtain it through the world-wide-web, please send a note to          |
00011    | license@php.net so we can mail you a copy immediately.               |
00012    +----------------------------------------------------------------------+
00013    | Authors: Vadim Savchuk <vsavchuk@productengine.com>                  |
00014    |          Dmitry Lakhtyuk <dlakhtyuk@productengine.com>               |
00015    |          Stanislav Malyshev <stas@zend.com>                          |
00016    |          Kirti Velankar <kirtig@yahoo-inc.com>                       |
00017    +----------------------------------------------------------------------+
00018  */
00019 
00020 #ifndef PHP_INTL_H
00021 #define PHP_INTL_H
00022 
00023 #include <php.h>
00024 
00025 #include "collator/collator_sort.h"
00026 #include "grapheme/grapheme.h"
00027 #include "intl_error.h"
00028 
00029 extern zend_module_entry intl_module_entry;
00030 #define phpext_intl_ptr &intl_module_entry
00031 
00032 #ifdef PHP_WIN32
00033 #define PHP_INTL_API __declspec(dllexport)
00034 #else
00035 #define PHP_INTL_API
00036 #endif
00037 
00038 #ifdef ZTS
00039 #include "TSRM.h"
00040 #endif
00041 
00042 ZEND_BEGIN_MODULE_GLOBALS(intl)
00043        zval* current_collator;
00044        char* default_locale;
00045        collator_compare_func_t compare_func;
00046        UBreakIterator* grapheme_iterator;
00047        intl_error g_error;
00048        long error_level;
00049 ZEND_END_MODULE_GLOBALS(intl)
00050 
00051 /* Macro to access request-wide global variables. */
00052 #ifdef ZTS
00053 #define INTL_G(v) TSRMG(intl_globals_id, zend_intl_globals *, v)
00054 #else
00055 #define INTL_G(v) (intl_globals.v)
00056 #endif
00057 
00058 ZEND_EXTERN_MODULE_GLOBALS(intl)
00059 
00060 PHP_MINIT_FUNCTION(intl);
00061 PHP_MSHUTDOWN_FUNCTION(intl);
00062 PHP_RINIT_FUNCTION(intl);
00063 PHP_RSHUTDOWN_FUNCTION(intl);
00064 PHP_MINFO_FUNCTION(intl);
00065 
00066 #define PHP_INTL_VERSION "1.1.0"
00067 
00068 #endif  /* PHP_INTL_H */
00069 
00070 /*
00071  * Local variables:
00072  * tab-width: 4
00073  * c-basic-offset: 4
00074  * End:
00075  * vim600: noet sw=4 ts=4 fdm=marker
00076  * vim<600: noet sw=4 ts=4
00077  */