Back to index

php5  5.3.10
Functions
formatter_main.h File Reference
#include <php.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 PHP_FUNCTION (numfmt_create)
 PHP_FUNCTION (numfmt_get_error_code)
 PHP_FUNCTION (numfmt_get_error_message)
 PHP_METHOD (NumberFormatter, __construct)

Function Documentation

Definition at line 78 of file formatter_main.c.

Here is the call graph for this function:

Definition at line 100 of file formatter_main.c.

{
       FORMATTER_METHOD_INIT_VARS

       /* Parse parameters. */
       if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O",
              &object, NumberFormatter_ce_ptr ) == FAILURE )
       {
              intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR,
                     "numfmt_get_error_code: unable to parse input params", 0 TSRMLS_CC );

              RETURN_FALSE;
       }

       nfo = (NumberFormatter_object *) zend_object_store_get_object( object TSRMLS_CC );

       /* Return formatter's last error code. */
       RETURN_LONG( INTL_DATA_ERROR_CODE(nfo) );
}

Here is the call graph for this function:

Definition at line 126 of file formatter_main.c.

{
       char*                    message = NULL;
       FORMATTER_METHOD_INIT_VARS

       /* Parse parameters. */
       if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O",
              &object, NumberFormatter_ce_ptr ) == FAILURE )
       {
              intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR,
                     "numfmt_get_error_message: unable to parse input params", 0 TSRMLS_CC );

              RETURN_FALSE;
       }

       nfo = (NumberFormatter_object *) zend_object_store_get_object( object TSRMLS_CC );

       /* Return last error message. */
       message = intl_error_get_message( INTL_DATA_ERROR_P(nfo) TSRMLS_CC );
       RETURN_STRING( message, 0);
}

Here is the call graph for this function:

PHP_METHOD ( NumberFormatter  ,
__construct   
)

Definition at line 88 of file formatter_main.c.

Here is the call graph for this function: