Back to index

php5  5.3.10
Classes | Functions
formatter_data.h File Reference
#include <php.h>
#include <unicode/unum.h>
#include "intl_error.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  formatter_data

Functions

formatter_dataformatter_data_create (TSRMLS_D)
void formatter_data_init (formatter_data *nf_data TSRMLS_DC)
void formatter_data_free (formatter_data *nf_data TSRMLS_DC)

Class Documentation

struct formatter_data

Definition at line 26 of file formatter_data.h.

Collaboration diagram for formatter_data:
Class Members
intl_error error
UNumberFormat * unum

Function Documentation

Definition at line 55 of file formatter_data.c.

{
       formatter_data* nf_data = ecalloc( 1, sizeof(formatter_data) );

       formatter_data_init( nf_data TSRMLS_CC );

       return nf_data;
}

Here is the call graph for this function:

void formatter_data_free ( formatter_data *nf_data  TSRMLS_DC)

Definition at line 39 of file formatter_data.c.

{
       if( !nf_data )
              return;

       if( nf_data->unum )
              unum_close( nf_data->unum );

       nf_data->unum = NULL;
       intl_error_reset( &nf_data->error TSRMLS_CC );
}

Here is the call graph for this function:

Here is the caller graph for this function:

void formatter_data_init ( formatter_data *nf_data  TSRMLS_DC)

Definition at line 26 of file formatter_data.c.

{
       if( !nf_data )
              return;

       nf_data->unum                = NULL;
       intl_error_reset( &nf_data->error TSRMLS_CC );
}

Here is the call graph for this function:

Here is the caller graph for this function: