Lines Matching refs:rb
41 ResourceBundle_object *rb = php_intl_resourcebundle_fetch_object(object); in ResourceBundle_object_destroy() local
44 intl_error_reset( INTL_DATA_ERROR_P(rb) ); in ResourceBundle_object_destroy()
46 if (rb->me) { in ResourceBundle_object_destroy()
47 ures_close( rb->me ); in ResourceBundle_object_destroy()
49 if (rb->child) { in ResourceBundle_object_destroy()
50 ures_close( rb->child ); in ResourceBundle_object_destroy()
58 ResourceBundle_object *rb; in ResourceBundle_object_create() local
60 rb = ecalloc( 1, sizeof(ResourceBundle_object) + zend_object_properties_size(ce)); in ResourceBundle_object_create()
62 zend_object_std_init( &rb->zend, ce ); in ResourceBundle_object_create()
63 object_properties_init( &rb->zend, ce); in ResourceBundle_object_create()
65 intl_error_init( INTL_DATA_ERROR_P(rb) ); in ResourceBundle_object_create()
66 rb->me = NULL; in ResourceBundle_object_create()
67 rb->child = NULL; in ResourceBundle_object_create()
69 rb->zend.handlers = &ResourceBundle_object_handlers; in ResourceBundle_object_create()
71 return &rb->zend; in ResourceBundle_object_create()
86 ResourceBundle_object *rb = Z_INTL_RESOURCEBUNDLE_P( object ); in resourcebundle_ctor() local
112 rb->me = ures_open(bundlename, locale, &INTL_DATA_ERROR_CODE(rb)); in resourcebundle_ctor()
114 rb->me = ures_openDirect(bundlename, locale, &INTL_DATA_ERROR_CODE(rb)); in resourcebundle_ctor()
117 INTL_CTOR_CHECK_STATUS(rb, "resourcebundle_ctor: Cannot load libICU resource bundle"); in resourcebundle_ctor()
119 if (!fallback && (INTL_DATA_ERROR_CODE(rb) == U_USING_FALLBACK_WARNING || in resourcebundle_ctor()
120 INTL_DATA_ERROR_CODE(rb) == U_USING_DEFAULT_WARNING)) { in resourcebundle_ctor()
122 intl_errors_set_code(NULL, INTL_DATA_ERROR_CODE(rb)); in resourcebundle_ctor()
127 rb->me, ULOC_ACTUAL_LOCALE, &INTL_DATA_ERROR_CODE(rb))); in resourcebundle_ctor()
128 intl_errors_set_custom_msg(INTL_DATA_ERROR_P(rb), pbuf, 1); in resourcebundle_ctor()
183 ResourceBundle_object *rb; in resourcebundle_array_fetch() local
191 rb->child = ures_getByIndex( rb->me, meindex, rb->child, &INTL_DATA_ERROR_CODE(rb) ); in resourcebundle_array_fetch()
194 rb->child = ures_getByKey(rb->me, mekey, rb->child, &INTL_DATA_ERROR_CODE(rb) ); in resourcebundle_array_fetch()
196 intl_errors_set(INTL_DATA_ERROR_P(rb), U_ILLEGAL_ARGUMENT_ERROR, in resourcebundle_array_fetch()
201 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE(rb) ); in resourcebundle_array_fetch()
202 if (U_FAILURE(INTL_DATA_ERROR_CODE(rb))) { in resourcebundle_array_fetch()
208 intl_errors_set_custom_msg( INTL_DATA_ERROR_P(rb), pbuf, 1 ); in resourcebundle_array_fetch()
213 …if (!fallback && (INTL_DATA_ERROR_CODE(rb) == U_USING_FALLBACK_WARNING || INTL_DATA_ERROR_CODE(rb)… in resourcebundle_array_fetch()
215 const char * locale = ures_getLocaleByType( rb->me, ULOC_ACTUAL_LOCALE, &icuerror ); in resourcebundle_array_fetch()
221 intl_errors_set_custom_msg( INTL_DATA_ERROR_P(rb), pbuf, 1 ); in resourcebundle_array_fetch()
226 resourcebundle_extract_value( return_value, rb ); in resourcebundle_array_fetch()
272 ResourceBundle_object *rb; in resourcebundle_array_count() local
275 if (rb->me == NULL) { in resourcebundle_array_count()
276 intl_errors_set(&rb->error, U_ILLEGAL_ARGUMENT_ERROR, in resourcebundle_array_count()
281 *count = ures_getSize( rb->me ); in resourcebundle_array_count()
309 len = ures_getSize( rb->me ); in ZEND_END_ARG_INFO()
386 rb = Z_INTL_RESOURCEBUNDLE_P( object ); in ZEND_END_ARG_INFO()
388 RETURN_LONG(INTL_DATA_ERROR_CODE(rb)); in ZEND_END_ARG_INFO()
414 rb = Z_INTL_RESOURCEBUNDLE_P( object ); in ZEND_END_ARG_INFO()
415 message = intl_error_get_message(INTL_DATA_ERROR_P(rb)); in ZEND_END_ARG_INFO()