Back to index

php5  5.3.10
Functions | Variables
collator_class.c File Reference
#include "collator_class.h"
#include "php_intl.h"
#include "collator_attr.h"
#include "collator_compare.h"
#include "collator_sort.h"
#include "collator_convert.h"
#include "collator_locale.h"
#include "collator_create.h"
#include "collator_error.h"
#include "intl_error.h"
#include <unicode/ucol.h>

Go to the source code of this file.

Functions

static void Collator_objects_dtor (void *object, zend_object_handle handle TSRMLS_DC)
void Collator_objects_free (zend_object *object TSRMLS_DC)
zend_object_value Collator_object_create (zend_class_entry *ce TSRMLS_DC)
void collator_register_Collator_class (TSRMLS_D)
void collator_object_init (Collator_object *co TSRMLS_DC)
void collator_object_destroy (Collator_object *co TSRMLS_DC)

Variables

zend_class_entry * Collator_ce_ptr = NULL
static zend_object_handlers Collator_handlers
function_entry Collator_class_functions []

Function Documentation

zend_object_value Collator_object_create ( zend_class_entry *ce  TSRMLS_DC)

Definition at line 61 of file collator_class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void collator_object_destroy ( Collator_object *co  TSRMLS_DC)

Definition at line 179 of file collator_class.c.

{
       if( !co )
              return;

       if( co->ucoll )
       {
              ucol_close( co->ucoll );
              co->ucoll = NULL;
       }

       intl_error_reset( COLLATOR_ERROR_P( co ) TSRMLS_CC );
}

Here is the call graph for this function:

Here is the caller graph for this function:

void collator_object_init ( Collator_object *co  TSRMLS_DC)

Definition at line 167 of file collator_class.c.

{
       if( !co )
              return;

       intl_error_init( COLLATOR_ERROR_P( co ) TSRMLS_CC );
}

Here is the call graph for this function:

static void Collator_objects_dtor ( void *  object,
zend_object_handle handle  TSRMLS_DC 
) [static]

Definition at line 39 of file collator_class.c.

{
       zend_objects_destroy_object( object, handle TSRMLS_CC );
}

Here is the call graph for this function:

Here is the caller graph for this function:

void Collator_objects_free ( zend_object *object  TSRMLS_DC)

Definition at line 48 of file collator_class.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 137 of file collator_class.c.

{
       zend_class_entry ce;

       /* Create and register 'Collator' class. */
       INIT_CLASS_ENTRY( ce, "Collator", Collator_class_functions );
       ce.create_object = Collator_object_create;
       Collator_ce_ptr = zend_register_internal_class( &ce TSRMLS_CC );

       memcpy(&Collator_handlers, zend_get_std_object_handlers(),
              sizeof Collator_handlers);
       /* Collator has no usable clone semantics - ucol_cloneBinary/ucol_openBinary require binary buffer 
          for which we don't have the place to keep */  
       Collator_handlers.clone_obj = NULL; 

       /* Declare 'Collator' class properties. */
       if( !Collator_ce_ptr )
       {
              zend_error( E_ERROR,
                     "Collator: attempt to create properties "
                     "on a non-registered class." );
              return;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

zend_class_entry* Collator_ce_ptr = NULL

Definition at line 31 of file collator_class.c.

Initial value:

Definition at line 115 of file collator_class.c.

zend_object_handlers Collator_handlers [static]

Definition at line 32 of file collator_class.c.