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.cpp708 const char* cType = fCalendar ? fCalendar->getType() : NULL; in construct()
892fCalendar = Calendar::createInstance(adoptZone?adoptZone:TimeZone::createDefault(), locale, status… in initializeCalendar()
894 return fCalendar; in initializeCalendar()
927 if(fCalendar) { in initializeDefaultCentury()
928 fHaveDefaultCentury = fCalendar->haveDefaultCentury(); in initializeDefaultCentury()
930 fDefaultCenturyStart = fCalendar->defaultCenturyStart(); in initializeDefaultCentury()
931 fDefaultCenturyStartYear = fCalendar->defaultCenturyStartYear(); in initializeDefaultCentury()
960 if(!fCalendar) { in parseAmbiguousDatesAsAfter()
965 fCalendar->setTime(startDate, status); in parseAmbiguousDatesAsAfter()
969 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.cpp1180 Calendar* fCalendar = Calendar::createInstance(locale, status); in setDateTimeFromCalendar() local
1187 if (fCalendar != NULL && fCalendar->getType() != NULL && *fCalendar->getType() != '\0' in setDateTimeFromCalendar()
1188 && uprv_strcmp(fCalendar->getType(), DT_DateTimeGregorianTag) != 0) { in setDateTimeFromCalendar()
1189 … dateTimePatterns.adoptInstead(ures_getByKeyWithFallback(calData.getAlias(), fCalendar->getType(), in setDateTimeFromCalendar()
1212 delete fCalendar; 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/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/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/icu4c/source/i18n/unicode/
Ddatefmt.h857 Calendar* fCalendar; variable