Back to index

php5  5.3.10
Defines | Functions | Variables
php_intl.h File Reference
#include <php.h>
#include "collator/collator_sort.h"
#include "grapheme/grapheme.h"
#include "intl_error.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define phpext_intl_ptr   &intl_module_entry
#define PHP_INTL_API
#define INTL_G(v)   (intl_globals.v)
#define PHP_INTL_VERSION   "1.1.0"

Functions

 PHP_MINIT_FUNCTION (intl)
 PHP_MSHUTDOWN_FUNCTION (intl)
 PHP_RINIT_FUNCTION (intl)
 PHP_RSHUTDOWN_FUNCTION (intl)
 PHP_MINFO_FUNCTION (intl)

Variables

zend_module_entry intl_module_entry
zval * current_collator
char * default_locale
collator_compare_func_t compare_func
UBreakIterator * grapheme_iterator
intl_error g_error
long error_level

Define Documentation

#define INTL_G (   v)    (intl_globals.v)

Definition at line 55 of file php_intl.h.

#define PHP_INTL_API

Definition at line 35 of file php_intl.h.

#define PHP_INTL_VERSION   "1.1.0"

Definition at line 66 of file php_intl.h.

Definition at line 30 of file php_intl.h.


Function Documentation

PHP_MINFO_FUNCTION ( intl  )

Definition at line 648 of file php_intl.c.

{
       php_info_print_table_start();
       php_info_print_table_header( 2, "Internationalization support", "enabled" );
       php_info_print_table_row( 2, "version", INTL_MODULE_VERSION );
       php_info_print_table_row( 2, "ICU version", U_ICU_VERSION );
#ifdef U_ICU_DATA_VERSION
       php_info_print_table_row( 2, "ICU Data version", U_ICU_DATA_VERSION );
#endif
       php_info_print_table_end();

    /* For the default locale php.ini setting */
    DISPLAY_INI_ENTRIES() ;
}

Here is the call graph for this function:

PHP_MINIT_FUNCTION ( intl  )

Definition at line 540 of file php_intl.c.

{
       /* For the default locale php.ini setting */
       REGISTER_INI_ENTRIES();

       REGISTER_LONG_CONSTANT("INTL_MAX_LOCALE_LEN", INTL_MAX_LOCALE_LEN, CONST_CS);
       REGISTER_STRING_CONSTANT("INTL_ICU_VERSION", U_ICU_VERSION, CONST_PERSISTENT | CONST_CS);
#ifdef U_ICU_DATA_VERSION
       REGISTER_STRING_CONSTANT("INTL_ICU_DATA_VERSION", U_ICU_DATA_VERSION, CONST_PERSISTENT | CONST_CS);
#endif 

       /* Register 'Collator' PHP class */
       collator_register_Collator_class( TSRMLS_C );

       /* Expose Collator constants to PHP scripts */
       collator_register_constants( INIT_FUNC_ARGS_PASSTHRU );

       /* Register 'NumberFormatter' PHP class */
       formatter_register_class( TSRMLS_C );

       /* Expose NumberFormatter constants to PHP scripts */
       formatter_register_constants( INIT_FUNC_ARGS_PASSTHRU );

       /* Register 'Normalizer' PHP class */
       normalizer_register_Normalizer_class( TSRMLS_C );

       /* Expose Normalizer constants to PHP scripts */
       normalizer_register_constants( INIT_FUNC_ARGS_PASSTHRU );

       /* Register 'Locale' PHP class */
       locale_register_Locale_class( TSRMLS_C );

       /* Expose Locale constants to PHP scripts */
       locale_register_constants( INIT_FUNC_ARGS_PASSTHRU );

       msgformat_register_class(TSRMLS_C);

       grapheme_register_constants( INIT_FUNC_ARGS_PASSTHRU );

       /* Register 'DateFormat' PHP class */
       dateformat_register_IntlDateFormatter_class( TSRMLS_C );

       /* Expose DateFormat constants to PHP scripts */
       dateformat_register_constants( INIT_FUNC_ARGS_PASSTHRU );

       /* Register 'ResourceBundle' PHP class */
       resourcebundle_register_class( TSRMLS_C);

       /* Expose ICU error codes to PHP scripts. */
       intl_expose_icu_error_codes( INIT_FUNC_ARGS_PASSTHRU );

       /* Expose IDN constants to PHP scripts. */
       idn_register_constants(INIT_FUNC_ARGS_PASSTHRU);

       /* Global error handling. */
       intl_error_init( NULL TSRMLS_CC );

       /* Set the default_locale value */
       if( INTL_G(default_locale) == NULL ) {
              INTL_G(default_locale) = pestrdup(uloc_getDefault(), 1) ;
       }

       return SUCCESS;
}

Here is the call graph for this function:

Definition at line 608 of file php_intl.c.

{
    /* For the default locale php.ini setting */
    UNREGISTER_INI_ENTRIES();

    return SUCCESS;
}
PHP_RINIT_FUNCTION ( intl  )

Definition at line 619 of file php_intl.c.

{
       /* Set the default_locale value */
    if( INTL_G(default_locale) == NULL ) {
        INTL_G(default_locale) = pestrdup(uloc_getDefault(), 1) ;
    }
       return SUCCESS;
}

Definition at line 631 of file php_intl.c.

Here is the call graph for this function:


Variable Documentation

Definition at line 45 of file php_intl.h.

Definition at line 43 of file php_intl.h.

Definition at line 44 of file php_intl.h.

Definition at line 48 of file php_intl.h.

Definition at line 47 of file php_intl.h.

UBreakIterator* grapheme_iterator

Definition at line 46 of file php_intl.h.

zend_module_entry intl_module_entry

Definition at line 507 of file php_intl.c.