php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_intl.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | This source file is subject to version 3.01 of the PHP license, |
4 | that is bundled with this package in the file LICENSE, and is |
5 | available through the world-wide-web at the following url: |
6 | https://www.php.net/license/3_01.txt |
7 | If you did not receive a copy of the PHP license and are unable to |
8 | obtain it through the world-wide-web, please send a note to |
9 | license@php.net so we can mail you a copy immediately. |
10 +----------------------------------------------------------------------+
11 | Authors: Vadim Savchuk <vsavchuk@productengine.com> |
12 | Dmitry Lakhtyuk <dlakhtyuk@productengine.com> |
13 | Stanislav Malyshev <stas@zend.com> |
14 | Kirti Velankar <kirtig@yahoo-inc.com> |
15 +----------------------------------------------------------------------+
16 */
17
18#ifndef PHP_INTL_H
19#define PHP_INTL_H
20
21#include <php.h>
22
23/* Even if we're included from C++, don't introduce C++ definitions
24 * because we were included with extern "C". The effect would be that
25 * when the headers defined any method, they would do so with C linkage */
26#undef U_SHOW_CPLUSPLUS_API
27#define U_SHOW_CPLUSPLUS_API 0
29#include <unicode/ubrk.h>
30#include "intl_error.h"
32
34#define phpext_intl_ptr &intl_module_entry
35
36#ifdef PHP_WIN32
37#define PHP_INTL_API __declspec(dllexport)
38#else
39#define PHP_INTL_API
40#endif
41
42#ifdef ZTS
43#include "TSRM.h"
44#endif
45
47 struct UCollator *current_collator;
50 UBreakIterator* grapheme_iterator;
55
56#if defined(ZTS) && defined(COMPILE_DL_INTL)
58#endif
59
61/* Macro to access request-wide global variables. */
62#define INTL_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(intl, v)
63
69
70const char *intl_locale_get_default( void );
71
72#define PHP_INTL_VERSION PHP_VERSION
73
74#endif /* PHP_INTL_H */
int(* collator_compare_func_t)(zval *result, zval *op1, zval *op2)
struct _intl_error intl_error
#define PHP_MSHUTDOWN_FUNCTION
Definition php.h:401
#define PHP_MINIT_FUNCTION
Definition php.h:400
#define PHP_MINFO_FUNCTION
Definition php.h:404
#define PHP_RINIT_FUNCTION
Definition php.h:402
#define PHP_RSHUTDOWN_FUNCTION
Definition php.h:403
zend_module_entry intl_module_entry
Definition php_intl.c:110
intl_error g_error
Definition php_intl.h:51
bool use_exceptions
Definition php_intl.h:53
const char * intl_locale_get_default(void)
Definition php_intl.c:91
zend_long error_level
Definition php_intl.h:52
char * default_locale
Definition php_intl.h:48
UBreakIterator * grapheme_iterator
Definition php_intl.h:50
collator_compare_func_t compare_func
Definition php_intl.h:49
struct UCollator * current_collator
Definition php_intl.h:47
#define ZEND_TSRMLS_CACHE_EXTERN()
Definition zend.h:67
#define ZEND_END_MODULE_GLOBALS(module_name)
Definition zend_API.h:248
#define ZEND_EXTERN_MODULE_GLOBALS(module_name)
Definition zend_API.h:270
#define ZEND_BEGIN_MODULE_GLOBALS(module_name)
Definition zend_API.h:246
int32_t zend_long
Definition zend_long.h:42
struct _zend_module_entry zend_module_entry