/* {{{ void transliterator_object_init( Transliterator_object* to ) * Initialize internals of Transliterator_object. */ static void transliterator_object_init( Transliterator_object* to ) { if( !to ) return; intl_error_init( TRANSLITERATOR_ERROR_P( to ) ); }
/* {{{ void spoofchecker_object_init( Spoofchecker_object* co ) * Initialize internals of Spoofchecker_object. * Must be called before any other call to 'spoofchecker_object_...' functions. */ void spoofchecker_object_init(Spoofchecker_object* co) { if (!co) { return; } intl_error_init(SPOOFCHECKER_ERROR_P(co)); }
/* {{{ intl_error* intl_error_create() * Create and initialize internals of 'intl_error'. */ intl_error* intl_error_create( void ) { intl_error* err = ecalloc( 1, sizeof( intl_error ) ); intl_error_init( err ); return err; }
/* {{{ Spoofchecker_object_create */ zend_object *Spoofchecker_object_create(zend_class_entry *ce) { Spoofchecker_object* intern; intern = zend_object_alloc(sizeof(Spoofchecker_object), ce); intl_error_init(SPOOFCHECKER_ERROR_P(intern)); zend_object_std_init(&intern->zo, ce); object_properties_init(&intern->zo, ce); intern->zo.handlers = &Spoofchecker_handlers; return &intern->zo; }
/* {{{ Spoofchecker_object_create */ zend_object *Spoofchecker_object_create( zend_class_entry *ce) { Spoofchecker_object* intern; intern = ecalloc(1, sizeof(Spoofchecker_object) + sizeof(zval) * (ce->default_properties_count - 1)); intl_error_init(SPOOFCHECKER_ERROR_P(intern)); zend_object_std_init(&intern->zo, ce); object_properties_init(&intern->zo, ce); intern->zo.handlers = &Spoofchecker_handlers; return &intern->zo; }
/* {{{ ResourceBundle_object_create */ static zend_object *ResourceBundle_object_create( zend_class_entry *ce ) { ResourceBundle_object *rb; rb = zend_object_alloc(sizeof(ResourceBundle_object), ce); zend_object_std_init( &rb->zend, ce ); object_properties_init( &rb->zend, ce); intl_error_init( INTL_DATA_ERROR_P(rb) ); rb->me = NULL; rb->child = NULL; rb->zend.handlers = &ResourceBundle_object_handlers; return &rb->zend; }
/* {{{ void TimeZone_object_init(TimeZone_object* to) * Initialize internals of TImeZone_object not specific to zend standard objects. */ static void TimeZone_object_init(TimeZone_object *to) { intl_error_init(TIMEZONE_ERROR_P(to)); to->utimezone = NULL; to->should_delete = 0; }
/* {{{ void calendar_object_init(Calendar_object* to) * Initialize internals of Calendar_object not specific to zend standard objects. */ static void calendar_object_init(Calendar_object *co) { intl_error_init(CALENDAR_ERROR_P(co)); co->ucal = NULL; }