root/ext/intl/php_intl.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2    +----------------------------------------------------------------------+
   3    | PHP Version 7                                                        |
   4    +----------------------------------------------------------------------+
   5    | This source file is subject to version 3.01 of the PHP license,      |
   6    | that is bundled with this package in the file LICENSE, and is        |
   7    | available through the world-wide-web at the following url:           |
   8    | http://www.php.net/license/3_01.txt                                  |
   9    | If you did not receive a copy of the PHP license and are unable to   |
  10    | obtain it through the world-wide-web, please send a note to          |
  11    | license@php.net so we can mail you a copy immediately.               |
  12    +----------------------------------------------------------------------+
  13    | Authors: Vadim Savchuk <vsavchuk@productengine.com>                  |
  14    |          Dmitry Lakhtyuk <dlakhtyuk@productengine.com>               |
  15    |          Stanislav Malyshev <stas@zend.com>                          |
  16    |          Kirti Velankar <kirtig@yahoo-inc.com>                       |
  17    +----------------------------------------------------------------------+
  18  */
  19 
  20 #ifndef PHP_INTL_H
  21 #define PHP_INTL_H
  22 
  23 #include <php.h>
  24 
  25 /* Even if we're included from C++, don't introduce C++ definitions
  26  * because we were included with extern "C". The effect would be that
  27  * when the headers defined any method, they would do so with C linkage */
  28 #undef U_SHOW_CPLUSPLUS_API
  29 #define U_SHOW_CPLUSPLUS_API 0
  30 #include "collator/collator_sort.h"
  31 #include <unicode/ubrk.h>
  32 #include "intl_error.h"
  33 #include "Zend/zend_exceptions.h"
  34 
  35 extern zend_module_entry intl_module_entry;
  36 #define phpext_intl_ptr &intl_module_entry
  37 
  38 #ifdef PHP_WIN32
  39 #define PHP_INTL_API __declspec(dllexport)
  40 #else
  41 #define PHP_INTL_API
  42 #endif
  43 
  44 #ifdef ZTS
  45 #include "TSRM.h"
  46 #endif
  47 
  48 ZEND_BEGIN_MODULE_GLOBALS(intl)
  49         zval current_collator;
  50         char* default_locale;
  51         collator_compare_func_t compare_func;
  52         UBreakIterator* grapheme_iterator;
  53         intl_error g_error;
  54         zend_long error_level;
  55         zend_bool use_exceptions;
  56 ZEND_END_MODULE_GLOBALS(intl)
  57 
  58 #if defined(ZTS) && defined(COMPILE_DL_INTL)
  59 ZEND_TSRMLS_CACHE_EXTERN()
  60 #endif
  61 
  62 ZEND_EXTERN_MODULE_GLOBALS(intl)
  63 /* Macro to access request-wide global variables. */
  64 #define INTL_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(intl, v)
  65 
  66 PHP_MINIT_FUNCTION(intl);
  67 PHP_MSHUTDOWN_FUNCTION(intl);
  68 PHP_RINIT_FUNCTION(intl);
  69 PHP_RSHUTDOWN_FUNCTION(intl);
  70 PHP_MINFO_FUNCTION(intl);
  71 
  72 const char *intl_locale_get_default( void );
  73 
  74 #define PHP_INTL_VERSION "1.1.0"
  75 
  76 #endif  /* PHP_INTL_H */
  77 
  78 /*
  79  * Local variables:
  80  * tab-width: 4
  81  * c-basic-offset: 4
  82  * End:
  83  * vim600: noet sw=4 ts=4 fdm=marker
  84  * vim<600: noet sw=4 ts=4
  85  */

/* [<][>][^][v][top][bottom][index][help] */