/php-src/ext/intl/collator/ |
H A D | collator_class.h | 38 #define COLLATOR_ERROR(co) (co)->err argument 39 #define COLLATOR_ERROR_P(co) &(COLLATOR_ERROR(co)) argument 41 #define COLLATOR_ERROR_CODE(co) INTL_ERROR_CODE(COLLATOR_ERROR(co)) argument 42 #define COLLATOR_ERROR_CODE_P(co) &(INTL_ERROR_CODE(COLLATOR_ERROR(co))) argument 50 void collator_object_init( Collator_object* co ); 51 void collator_object_destroy( Collator_object* co ); 59 Collator_object* co = NULL; \ 62 #define COLLATOR_METHOD_FETCH_OBJECT INTL_METHOD_FETCH_OBJECT(INTL_COLLATOR, co) 65 #define COLLATOR_CHECK_STATUS( co, msg ) \ argument 66 intl_error_set_code( NULL, COLLATOR_ERROR_CODE( co ) ); \ [all …]
|
H A D | collator_class.c | 39 zend_object_std_dtor(&co->zo ); in Collator_objects_free() 41 collator_object_destroy(co ); in Collator_objects_free() 87 void collator_object_init( Collator_object* co ) in collator_object_init() argument 89 if( !co ) in collator_object_init() 92 intl_error_init( COLLATOR_ERROR_P( co ) ); in collator_object_init() 99 void collator_object_destroy( Collator_object* co ) in collator_object_destroy() argument 101 if( !co ) in collator_object_destroy() 104 if( co->ucoll ) in collator_object_destroy() 106 ucol_close( co->ucoll ); in collator_object_destroy() 107 co->ucoll = NULL; in collator_object_destroy() [all …]
|
H A D | collator_compare.c | 51 if (!co || !co->ucoll) { in PHP_FUNCTION() 52 intl_error_set_code( NULL, COLLATOR_ERROR_CODE( co ) ); in PHP_FUNCTION() 53 intl_errors_set_custom_msg( COLLATOR_ERROR_P( co ), in PHP_FUNCTION() 66 &ustr1, &ustr1_len, str1, str1_len, COLLATOR_ERROR_CODE_P( co ) ); in PHP_FUNCTION() 67 if( U_FAILURE( COLLATOR_ERROR_CODE( co ) ) ) in PHP_FUNCTION() 70 intl_error_set_code( NULL, COLLATOR_ERROR_CODE( co ) ); in PHP_FUNCTION() 73 intl_errors_set_custom_msg( COLLATOR_ERROR_P( co ), in PHP_FUNCTION() 83 if( U_FAILURE( COLLATOR_ERROR_CODE( co ) ) ) in PHP_FUNCTION() 86 intl_error_set_code( NULL, COLLATOR_ERROR_CODE( co ) ); in PHP_FUNCTION() 89 intl_errors_set_custom_msg( COLLATOR_ERROR_P( co ), in PHP_FUNCTION() [all …]
|
H A D | collator_locale.c | 44 if (!co || !co->ucoll) { in PHP_FUNCTION() 45 intl_error_set_code( NULL, COLLATOR_ERROR_CODE( co ) ); in PHP_FUNCTION() 46 intl_errors_set_custom_msg( COLLATOR_ERROR_P( co ), in PHP_FUNCTION() 55 co->ucoll, type, COLLATOR_ERROR_CODE_P( co ) ); in PHP_FUNCTION() 56 COLLATOR_CHECK_STATUS( co, "Error getting locale by type" ); in PHP_FUNCTION()
|
H A D | collator_attr.c | 43 value = ucol_getAttribute( co->ucoll, attribute, COLLATOR_ERROR_CODE_P( co ) ); in PHP_FUNCTION() 44 COLLATOR_CHECK_STATUS( co, "Error getting attribute value" ); in PHP_FUNCTION() 68 ucol_setAttribute( co->ucoll, attribute, value, COLLATOR_ERROR_CODE_P( co ) ); in PHP_FUNCTION() 69 COLLATOR_CHECK_STATUS( co, "Error setting attribute value" ); in PHP_FUNCTION() 91 RETURN_LONG( ucol_getStrength( co->ucoll ) ); in PHP_FUNCTION() 113 ucol_setStrength( co->ucoll, strength ); in PHP_FUNCTION()
|
H A D | collator_error.c | 36 co = Z_INTL_COLLATOR_P(object); in PHP_FUNCTION() 37 if( co == NULL ) in PHP_FUNCTION() 41 RETURN_LONG( COLLATOR_ERROR_CODE( co ) ); in PHP_FUNCTION() 60 co = Z_INTL_COLLATOR_P( object ); in PHP_FUNCTION() 61 if( co == NULL ) in PHP_FUNCTION() 65 message = intl_error_get_message( COLLATOR_ERROR_P( co ) ); in PHP_FUNCTION()
|
H A D | collator_sort.c | 276 if (!co->ucoll) { in collator_sort_internal() 292 INTL_G( current_collator ) = co->ucoll; in collator_sort_internal() 364 if (!co || !co->ucoll) { in PHP_FUNCTION() 365 intl_error_set_code( NULL, COLLATOR_ERROR_CODE( co ) ); in PHP_FUNCTION() 366 intl_errors_set_custom_msg( COLLATOR_ERROR_P( co ), in PHP_FUNCTION() 397 if( U_FAILURE( COLLATOR_ERROR_CODE( co ) ) ) in PHP_FUNCTION() 424 sortKeyLen = ucol_getSortKey( co->ucoll, in PHP_FUNCTION() 520 if (!co || !co->ucoll) { in PHP_FUNCTION() 522 intl_errors_set_custom_msg( COLLATOR_ERROR_P( co ), in PHP_FUNCTION() 536 if( U_FAILURE( COLLATOR_ERROR_CODE( co ) ) ) in PHP_FUNCTION() [all …]
|
H A D | collator_create.c | 30 Collator_object* co; in collator_ctor() local 51 co->ucoll = ucol_open( locale, COLLATOR_ERROR_CODE_P( co ) ); in collator_ctor() 52 INTL_CTOR_CHECK_STATUS(co, "collator_create: unable to open ICU collator"); in collator_ctor()
|
/php-src/ext/intl/spoofchecker/ |
H A D | spoofchecker_class.h | 44 #define SPOOFCHECKER_ERROR(co) (co)->err argument 45 #define SPOOFCHECKER_ERROR_P(co) &(SPOOFCHECKER_ERROR(co)) argument 47 #define SPOOFCHECKER_ERROR_CODE(co) INTL_ERROR_CODE(SPOOFCHECKER_ERROR(co)) argument 48 #define SPOOFCHECKER_ERROR_CODE_P(co) &(INTL_ERROR_CODE(SPOOFCHECKER_ERROR(co))) argument 52 void spoofchecker_object_init(Spoofchecker_object* co); 53 void spoofchecker_object_destroy(Spoofchecker_object* co); 61 Spoofchecker_object* co = NULL; \ 67 if (co->uspoof == NULL) { \ 73 #define SPOOFCHECKER_CHECK_STATUS(co, msg) \ argument 74 intl_error_set_code(NULL, SPOOFCHECKER_ERROR_CODE(co)); \ [all …]
|
H A D | spoofchecker_main.c | 40 …ret = uspoof_check2UTF8(co->uspoof, ZSTR_VAL(text), ZSTR_LEN(text), co->uspoofres, SPOOFCHECKER_ER… in PHP_METHOD() 42 …ret = uspoof_checkUTF8(co->uspoof, ZSTR_VAL(text), ZSTR_LEN(text), NULL, SPOOFCHECKER_ERROR_CODE_P… in PHP_METHOD() 45 if (U_FAILURE(SPOOFCHECKER_ERROR_CODE(co))) { in PHP_METHOD() 46 …ef(NULL, E_WARNING, "(%d) %s", SPOOFCHECKER_ERROR_CODE(co), u_errorName(SPOOFCHECKER_ERROR_CODE(co… in PHP_METHOD() 48 errmask = uspoof_getCheckResultChecks(co->uspoofres, SPOOFCHECKER_ERROR_CODE_P(co)); in PHP_METHOD() 86 …ef(NULL, E_WARNING, "(%d) %s", SPOOFCHECKER_ERROR_CODE(co), u_errorName(SPOOFCHECKER_ERROR_CODE(co… in PHP_METHOD() 109 uspoof_setAllowedLocales(co->uspoof, ZSTR_VAL(locales), SPOOFCHECKER_ERROR_CODE_P(co)); in PHP_METHOD() 112 …ef(NULL, E_WARNING, "(%d) %s", SPOOFCHECKER_ERROR_CODE(co), u_errorName(SPOOFCHECKER_ERROR_CODE(co… in PHP_METHOD() 130 uspoof_setChecks(co->uspoof, checks, SPOOFCHECKER_ERROR_CODE_P(co)); in PHP_METHOD() 133 …ef(NULL, E_WARNING, "(%d) %s", SPOOFCHECKER_ERROR_CODE(co), u_errorName(SPOOFCHECKER_ERROR_CODE(co… in PHP_METHOD() [all …]
|
H A D | spoofchecker_create.c | 38 co->uspoof = uspoof_open(SPOOFCHECKER_ERROR_CODE_P(co)); in PHP_METHOD() 39 INTL_METHOD_CHECK_STATUS(co, "spoofchecker: unable to open ICU Spoof Checker"); in PHP_METHOD() 49 uspoof_setRestrictionLevel(co->uspoof, SPOOFCHECKER_DEFAULT_RESTRICTION_LEVEL); in PHP_METHOD() 50 co->uspoofres = uspoof_openCheckResult(SPOOFCHECKER_ERROR_CODE_P(co)); in PHP_METHOD() 56 checks = uspoof_getChecks(co->uspoof, SPOOFCHECKER_ERROR_CODE_P(co)); in PHP_METHOD() 57 uspoof_setChecks(co->uspoof, checks & ~USPOOF_SINGLE_SCRIPT, SPOOFCHECKER_ERROR_CODE_P(co)); in PHP_METHOD()
|
H A D | spoofchecker_class.c | 34 zend_object_std_dtor(&co->zo); in Spoofchecker_objects_free() 36 spoofchecker_object_destroy(co); in Spoofchecker_objects_free() 111 if (!co) { in spoofchecker_object_init() 115 intl_error_init(SPOOFCHECKER_ERROR_P(co)); in spoofchecker_object_init() 124 if (!co) { in spoofchecker_object_destroy() 128 if (co->uspoof) { in spoofchecker_object_destroy() 129 uspoof_close(co->uspoof); in spoofchecker_object_destroy() 130 co->uspoof = NULL; in spoofchecker_object_destroy() 134 if (co->uspoofres) { in spoofchecker_object_destroy() 135 uspoof_closeCheckResult(co->uspoofres); in spoofchecker_object_destroy() [all …]
|
/php-src/ext/intl/normalizer/ |
H A D | normalizer_class.h | 33 #define NORMALIZER_ERROR(co) (co)->err argument 34 #define NORMALIZER_ERROR_P(co) &(NORMALIZER_ERROR(co)) argument 36 #define NORMALIZER_ERROR_CODE(co) INTL_ERROR_CODE(NORMALIZER_ERROR(co)) argument 37 #define NORMALIZER_ERROR_CODE_P(co) &(INTL_ERROR_CODE(NORMALIZER_ERROR(co))) argument
|
/php-src/ext/intl/calendar/ |
H A D | calendar_class.h | 46 #define CALENDAR_ERROR(co) (co)->err argument 47 #define CALENDAR_ERROR_P(co) &(CALENDAR_ERROR(co)) argument 49 #define CALENDAR_ERROR_CODE(co) INTL_ERROR_CODE(CALENDAR_ERROR(co)) argument 50 #define CALENDAR_ERROR_CODE_P(co) &(INTL_ERROR_CODE(CALENDAR_ERROR(co))) argument 52 #define CALENDAR_METHOD_INIT_VARS INTL_METHOD_INIT_VARS(Calendar, co) 53 #define CALENDAR_METHOD_FETCH_OBJECT_NO_CHECK INTL_METHOD_FETCH_OBJECT(INTL_CALENDAR, co) 56 if (co->ucal == NULL) \
|
H A D | calendar_methods.cpp | 254 UDate result = co->ucal->getTime(CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION() 273 co->ucal->setTime((UDate)time_arg, CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION() 352 UBool res = (co->ucal->*func)(*when_co->ucal, CALENDAR_ERROR_CODE(co)); in _php_intlcal_before_after() 512 co->ucal->clear(); in PHP_FUNCTION() 590 int32_t result = co->ucal->getFirstDayOfWeek(CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION() 754 UBool ret = co->ucal->inDaylightTime(CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION() 831 UBool ret = co->ucal->isWeekend((UDate)date, CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION() 917 UBool result = co->ucal->equals(*other_co->ucal, CALENDAR_ERROR_CODE(co)); in PHP_FUNCTION() 1098 double date = co->ucal->getTime(CALENDAR_ERROR_CODE(co)) / 1000.; in PHP_FUNCTION() 1172 if (co == NULL) in PHP_FUNCTION() [all …]
|
H A D | calendar_class.cpp | 64 return co->ucal; in calendar_fetch_native_calendar() 70 Calendar_object *co; in calendar_object_construct() local 73 assert(co->ucal == NULL); in calendar_object_construct() 74 co->ucal = (Calendar*)calendar; in calendar_object_construct() 137 Calendar_object *co; in Calendar_get_debug_info() local 146 cal = co->ucal; in Calendar_get_debug_info() 215 co->ucal = NULL; in calendar_object_init() 224 if (co->ucal) { in Calendar_objects_free() 225 delete co->ucal; in Calendar_objects_free() 226 co->ucal = NULL; in Calendar_objects_free() [all …]
|
H A D | gregoriancalendar_methods.cpp | 49 return (GregorianCalendar*)co->ucal; in fetch_greg() 136 Calendar_object *co = Z_INTL_CALENDAR_P(return_value); in _php_intlgregcal_constructor_body() local 139 if (co->ucal) { in _php_intlgregcal_constructor_body() 208 co->ucal = gcal; in _php_intlgregcal_constructor_body() 236 Calendar_object *co; in PHP_METHOD() local 260 co = Z_INTL_CALENDAR_P(return_value); in PHP_METHOD() 261 co->ucal = gcal; in PHP_METHOD() 273 Calendar_object *co; in PHP_METHOD() local 308 co = Z_INTL_CALENDAR_P(return_value); in PHP_METHOD() 309 co->ucal = gcal; in PHP_METHOD() [all …]
|
/php-src/ext/intl/transliterator/ |
H A D | transliterator_class.h | 43 #define TRANSLITERATOR_ERROR( co ) (co)->err argument 44 #define TRANSLITERATOR_ERROR_P( co ) &(TRANSLITERATOR_ERROR( co )) argument 46 #define TRANSLITERATOR_ERROR_CODE( co ) INTL_ERROR_CODE(TRANSLITERATOR_ERROR( co )) argument 47 #define TRANSLITERATOR_ERROR_CODE_P( co ) &(INTL_ERROR_CODE(TRANSLITERATOR_ERROR( co ))) argument
|
/php-src/ext/intl/dateformat/ |
H A D | datepatterngenerator_class.cpp | 62 static void IntlDatePatternGenerator_object_init(IntlDatePatternGenerator_object *co) in IntlDatePatternGenerator_object_init() argument 64 intl_error_init(DTPATTERNGEN_ERROR_P(co)); in IntlDatePatternGenerator_object_init() 65 co->dtpg = NULL; in IntlDatePatternGenerator_object_init() 70 IntlDatePatternGenerator_object* co = php_intl_datepatterngenerator_fetch_object(object); in IntlDatePatternGenerator_object_free() local 72 if (co->dtpg) { in IntlDatePatternGenerator_object_free() 73 delete co->dtpg; in IntlDatePatternGenerator_object_free() 74 co->dtpg = NULL; in IntlDatePatternGenerator_object_free() 76 intl_error_reset(DTPATTERNGEN_ERROR_P(co)); in IntlDatePatternGenerator_object_free() 78 zend_object_std_dtor(&co->zo); in IntlDatePatternGenerator_object_free()
|
/php-src/ext/dom/tests/ |
H A D | DOMDocument_validate_external_dtd.phpt | 10 // reusing existing xml: http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/dom.xml?view=co&conten… 11 // reusing existing dtd: http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/dom.ent?view=co&conten…
|
/php-src/ext/intl/timezone/ |
H A D | timezone_class.h | 55 #define TIMEZONE_ERROR_CODE(co) INTL_ERROR_CODE(TIMEZONE_ERROR(to)) argument 56 #define TIMEZONE_ERROR_CODE_P(co) &(INTL_ERROR_CODE(TIMEZONE_ERROR(to))) argument
|
/php-src/ext/spl/tests/ |
H A D | spl_pq_top_error_empty.phpt | 4 Nathaniel McHugh nat@fishtrap.co.uk
|
/php-src/ext/date/tests/ |
H A D | DateTimeZone_set_state.phpt | 4 Mark Baker mark@lange.demon.co.uk at the PHPNW2017 Conference for PHP Testfest 2017
|
H A D | DateTimeImmutable_set_state.phpt | 4 Mark Baker mark@lange.demon.co.uk at the PHPNW2017 Conference for PHP Testfest 2017
|
/php-src/ext/intl/common/ |
H A D | common_date.cpp | 203 Calendar_object *co = Z_INTL_CALENDAR_P(z); in intl_zval_to_millis() local 204 if (co->ucal == NULL) { in intl_zval_to_millis() 212 rv = (double)co->ucal->getTime(status); in intl_zval_to_millis()
|