Lines Matching refs:rb
40 ResourceBundle_object *rb = (ResourceBundle_object *) object; in ResourceBundle_object_destroy() local
43 intl_error_reset( INTL_DATA_ERROR_P(rb) TSRMLS_CC ); in ResourceBundle_object_destroy()
45 if (rb->me) { in ResourceBundle_object_destroy()
46 ures_close( rb->me ); in ResourceBundle_object_destroy()
48 if (rb->child) { in ResourceBundle_object_destroy()
49 ures_close( rb->child ); in ResourceBundle_object_destroy()
61 ResourceBundle_object *rb; in ResourceBundle_object_create() local
63 rb = ecalloc( 1, sizeof(ResourceBundle_object) ); in ResourceBundle_object_create()
65 zend_object_std_init( (zend_object *) rb, ce TSRMLS_CC ); in ResourceBundle_object_create()
67 intl_error_init( INTL_DATA_ERROR_P(rb) TSRMLS_CC ); in ResourceBundle_object_create()
68 rb->me = NULL; in ResourceBundle_object_create()
69 rb->child = NULL; in ResourceBundle_object_create()
72 retval.handle = zend_objects_store_put( rb, ResourceBundle_object_destroy, NULL, NULL TSRMLS_CC ); in ResourceBundle_object_create()
90 …ResourceBundle_object *rb = (ResourceBundle_object *) zend_object_store_get_object( object TSRMLS_… in resourcebundle_ctor() local
106 rb->me = ures_open(bundlename, locale, &INTL_DATA_ERROR_CODE(rb)); in resourcebundle_ctor()
108 rb->me = ures_openDirect(bundlename, locale, &INTL_DATA_ERROR_CODE(rb)); in resourcebundle_ctor()
111 INTL_CTOR_CHECK_STATUS(rb, "resourcebundle_ctor: Cannot load libICU resource bundle"); in resourcebundle_ctor()
113 …if (!fallback && (INTL_DATA_ERROR_CODE(rb) == U_USING_FALLBACK_WARNING || INTL_DATA_ERROR_CODE(rb)… in resourcebundle_ctor()
114 intl_errors_set_code( NULL, INTL_DATA_ERROR_CODE(rb) TSRMLS_CC ); in resourcebundle_ctor()
116 …bundlename, locale, ures_getLocaleByType( rb->me, ULOC_ACTUAL_LOCALE, &INTL_DATA_ERROR_CODE(rb)) ); in resourcebundle_ctor()
117 intl_errors_set_custom_msg( INTL_DATA_ERROR_P(rb), pbuf, 1 TSRMLS_CC ); in resourcebundle_ctor()
161 ResourceBundle_object *rb; in resourcebundle_array_fetch() local
169 rb->child = ures_getByIndex( rb->me, meindex, rb->child, &INTL_DATA_ERROR_CODE(rb) ); in resourcebundle_array_fetch()
173 rb->child = ures_getByKey(rb->me, mekey, rb->child, &INTL_DATA_ERROR_CODE(rb) ); in resourcebundle_array_fetch()
175 intl_errors_set(INTL_DATA_ERROR_P(rb), U_ILLEGAL_ARGUMENT_ERROR, in resourcebundle_array_fetch()
180 intl_error_set_code( NULL, INTL_DATA_ERROR_CODE(rb) TSRMLS_CC ); in resourcebundle_array_fetch()
181 if (U_FAILURE(INTL_DATA_ERROR_CODE(rb))) { in resourcebundle_array_fetch()
187 intl_errors_set_custom_msg( INTL_DATA_ERROR_P(rb), pbuf, 1 TSRMLS_CC ); in resourcebundle_array_fetch()
192 …if (!fallback && (INTL_DATA_ERROR_CODE(rb) == U_USING_FALLBACK_WARNING || INTL_DATA_ERROR_CODE(rb)… in resourcebundle_array_fetch()
194 const char * locale = ures_getLocaleByType( rb->me, ULOC_ACTUAL_LOCALE, &icuerror ); in resourcebundle_array_fetch()
200 intl_errors_set_custom_msg( INTL_DATA_ERROR_P(rb), pbuf, 1 TSRMLS_CC ); in resourcebundle_array_fetch()
205 resourcebundle_extract_value( return_value, rb TSRMLS_CC ); in resourcebundle_array_fetch()
255 ResourceBundle_object *rb; in resourcebundle_array_count() local
258 if (rb->me == NULL) { in resourcebundle_array_count()
259 intl_errors_set(&rb->error, U_ILLEGAL_ARGUMENT_ERROR, in resourcebundle_array_count()
264 *count = ures_getSize( rb->me ); in resourcebundle_array_count()
292 len = ures_getSize( rb->me ); in ZEND_END_ARG_INFO()
364 rb = (ResourceBundle_object *) zend_object_store_get_object( object TSRMLS_CC ); in ZEND_END_ARG_INFO()
366 RETURN_LONG(INTL_DATA_ERROR_CODE(rb)); in ZEND_END_ARG_INFO()
392 rb = (ResourceBundle_object *) zend_object_store_get_object( object TSRMLS_CC ); in ZEND_END_ARG_INFO()
393 message = (char *)intl_error_get_message(INTL_DATA_ERROR_P(rb) TSRMLS_CC); in ZEND_END_ARG_INFO()