Home
last modified time | relevance | path

Searched refs:fCalendar (Results 1 – 10 of 10) sorted by relevance

/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/calendar/
DCalendarPanel.java42 for (int i = 0; i < fCalendar.length; i++) { in setLocale()
43 if (fCalendar[i] != null) { in setLocale()
44 fSymbols[i] = new DateFormatSymbols(fCalendar[i], in setLocale()
63 synchronized(fCalendar) { in add()
64 fCalendar[0].setTime(fStartOfMonth); in add()
65 fCalendar[0].add(field, delta); in add()
66 fStartOfMonth = fCalendar[0].getTime(); in add()
78 Date date = (fCalendar[index] == null) ? new Date() in setCalendar()
79 : fCalendar[index].getTime(); in setCalendar()
81 fCalendar[index] = c; in setCalendar()
[all …]
/external/icu/icu4c/source/i18n/
Ddatefmt.cpp126 : fCalendar(0), in DateFormat()
136 fCalendar(0), in DateFormat()
149 delete fCalendar; in operator =()
151 if(other.fCalendar) { in operator =()
152 fCalendar = other.fCalendar->clone(); in operator =()
154 fCalendar = NULL; in operator =()
171 delete fCalendar; in ~DateFormat()
189 fCalendar&&(fCalendar->isEquivalentTo(*fmt->fCalendar)) && in operator ==()
282 if (fCalendar != NULL) { in format()
284 Calendar* calClone = fCalendar->clone(); in format()
[all …]
Dwindtfmt.cpp252 if (strcmp(fCalendar->getType(), cal.getType()) != 0) { in format()
273 if (fCalendar == NULL || strcmp(fCalendar->getType(), newCalendar->getType()) != 0) { in adoptCalendar()
282 delete fCalendar; in adoptCalendar()
283 fCalendar = newCalendar; in adoptCalendar()
285 fZoneID = setTimeZoneInfo(fTZI, fCalendar->getTimeZone()); in adoptCalendar()
296 fCalendar->adoptTimeZone(zoneToAdopt); in adoptTimeZone()
302 fCalendar->setTimeZone(zone); in setTimeZone()
Dsmpdtfmt.cpp664 const char* cType = fCalendar ? fCalendar->getType() : NULL; in construct()
848fCalendar = Calendar::createInstance(adoptZone?adoptZone:TimeZone::createDefault(), locale, status… in initializeCalendar()
850 return fCalendar; in initializeCalendar()
884 if(fCalendar) { in initializeDefaultCentury()
885 fHaveDefaultCentury = fCalendar->haveDefaultCentury(); in initializeDefaultCentury()
887 fDefaultCenturyStart = fCalendar->defaultCenturyStart(); in initializeDefaultCentury()
888 fDefaultCenturyStartYear = fCalendar->defaultCenturyStartYear(); in initializeDefaultCentury()
917 if(!fCalendar) { in parseAmbiguousDatesAsAfter()
922 fCalendar->setTime(startDate, status); in parseAmbiguousDatesAsAfter()
926 fDefaultCenturyStartYear = fCalendar->get(UCAL_YEAR, status); in parseAmbiguousDatesAsAfter()
[all …]
Dreldtfmt.cpp568fCalendar = Calendar::createInstance(adoptZone?adoptZone:TimeZone::createDefault(), locale, status… in initializeCalendar()
570 if (U_SUCCESS(status) && fCalendar == NULL) { in initializeCalendar()
573 return fCalendar; in initializeCalendar()
Ddtptngen.cpp1254 LocalPointer<Calendar> fCalendar(Calendar::createInstance(locale, status), status); in setDateTimeFromCalendar() local
1263 if (fCalendar->getType() != nullptr && *fCalendar->getType() != '\0' in setDateTimeFromCalendar()
1264 && uprv_strcmp(fCalendar->getType(), DT_DateTimeGregorianTag) != 0) { in setDateTimeFromCalendar()
1265 … dateTimePatterns.adoptInstead(ures_getByKeyWithFallback(calData.getAlias(), fCalendar->getType(), in setDateTimeFromCalendar()
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/holiday/
DHolidayCalendarDemo.java430 set(locale, fDisplayLocale, fCalendar.getTime()); in setCalendarLocale()
434 set(fCalendarLocale, locale, fCalendar.getTime()); in setDisplayLocale()
445 fCalendar = Calendar.getInstance(fCalendarLocale); in set()
461 synchronized(fCalendar) { in add()
462 fCalendar.setTime(fStartOfMonth); in add()
463 fCalendar.add(field, delta); in add()
464 fStartOfMonth = fCalendar.getTime(); in add()
471 return fCalendar; in getCalendar()
489 synchronized(fCalendar) { in startOfMonth()
490 fCalendar.setTime(dateInMonth); // TODO: synchronization in startOfMonth()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DHolidayTest.java213 private Date startOfMonth(/*Date dateInMonth,*/ Calendar fCalendar) in startOfMonth() argument
218 int era = fCalendar.get(Calendar.ERA); in startOfMonth()
219 int year = fCalendar.get(Calendar.YEAR); in startOfMonth()
220 int month = fCalendar.get(Calendar.MONTH); in startOfMonth()
222 fCalendar.clear(); in startOfMonth()
223 fCalendar.set(Calendar.ERA, era); in startOfMonth()
224 fCalendar.set(Calendar.YEAR, year); in startOfMonth()
225 fCalendar.set(Calendar.MONTH, month); in startOfMonth()
226 fCalendar.set(Calendar.DATE, 1); in startOfMonth()
228 return fCalendar.getTime(); in startOfMonth()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DHolidayTest.java216 private Date startOfMonth(/*Date dateInMonth,*/ Calendar fCalendar) in startOfMonth() argument
221 int era = fCalendar.get(Calendar.ERA); in startOfMonth()
222 int year = fCalendar.get(Calendar.YEAR); in startOfMonth()
223 int month = fCalendar.get(Calendar.MONTH); in startOfMonth()
225 fCalendar.clear(); in startOfMonth()
226 fCalendar.set(Calendar.ERA, era); in startOfMonth()
227 fCalendar.set(Calendar.YEAR, year); in startOfMonth()
228 fCalendar.set(Calendar.MONTH, month); in startOfMonth()
229 fCalendar.set(Calendar.DATE, 1); in startOfMonth()
231 return fCalendar.getTime(); in startOfMonth()
/external/icu/icu4c/source/i18n/unicode/
Ddatefmt.h862 Calendar* fCalendar; variable