Searched defs:cal (Results 1 - 6 of 6) sorted by relevance

/PHP_TRUNK/ext/calendar/
H A Dcalendar.c263 static void _php_cal_info(int cal, zval *ret) argument
269 calendar = &cal_conversion_table[cal];
292 zend_long cal = -1; local
295 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &cal) == FAILURE) {
299 if (cal == -1) {
313 if (cal != -1 && (cal < 0 || cal >= CAL_NUM_CALS)) {
314 php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid calendar ID %pd.", cal);
318 _php_cal_info(cal, return_valu
327 zend_long cal, month, year; local
371 zend_long cal, month, day, year; local
390 zend_long jd, cal; local
[all...]
/PHP_TRUNK/ext/intl/calendar/
H A Dcalendar_class.cpp152 const Calendar *cal; local
161 cal = co->ucal;
163 if (cal == NULL) {
171 ZVAL_STRING(&zv, const_cast<char*>(cal->getType()));
179 timezone_object_construct(&cal->getTimeZone(), &ztz , 0 TSRMLS_CC);
193 Locale locale = cal->getLocale(ULOC_VALID_LOCALE, uec);
210 int32_t res = cal->get(debug_info_fields[i].field, uec);
H A Dcalendar_methods.cpp76 Calendar *cal = Calendar::createInstance(timeZone, local
78 if (cal == NULL) {
84 calendar_object_create(return_value, cal TSRMLS_CC);
1150 Calendar *cal; local
1204 cal = Calendar::createInstance(timeZone,
1206 if (cal == NULL) {
1212 cal->setTime(((UDate)Z_LVAL(zv_timestamp)) * 1000., status);
1214 /* time zone was adopted by cal; should not be deleted here */
1215 delete cal;
1221 calendar_object_create(return_value, cal TSRMLS_C
[all...]
/PHP_TRUNK/ext/intl/dateformat/
H A Ddateformat_attrcpp.cpp186 const Calendar *cal = fetch_datefmt(dfo)->getCalendar(); local
187 if (cal == NULL) {
191 Calendar *cal_clone = cal->clone();
222 Calendar *cal; local
231 "datefmt_set_calendar", INTL_DATA_ERROR_P(dfo), cal, cal_type,
243 delete cal;
246 cal->adoptTimeZone(old_timezone);
248 cal = cal->clone();
249 if (cal
[all...]
H A Ddateformat_helpers.cpp35 Calendar*& cal,
45 cal = new GregorianCalendar(locale, status);
63 cal = Calendar::createInstance(locale, status);
65 cal = new GregorianCalendar(locale, status);
75 cal = calendar_fetch_native_calendar(calendar_zv TSRMLS_CC);
76 if (cal == NULL) {
95 if (cal == NULL && !U_FAILURE(status)) {
31 datefmt_process_calendar_arg(zval* calendar_zv, Locale const& locale, const char *func_name, intl_error *err, Calendar*& cal, zend_long& cal_int_type, bool& calendar_owned TSRMLS_DC) argument
H A Ddateformat_format_object.cpp72 Calendar *cal = NULL; local
156 cal = obj_cal->clone();
162 cal = new GregorianCalendar(Locale::createFromName(locale_str), status);
204 //must be in this order (or have the cal adopt the tz)
205 df->adoptCalendar(cal);
206 cal = NULL;
232 delete cal;

Completed in 9 milliseconds