Logo Search packages:      
Sourcecode: icu version File versions

void Calendar::setFirstDayOfWeek ( UCalendarDaysOfWeek  value  )  [inherited]

Sets what the first day of the week is; e.g., Sunday in US, Monday in France.

value The given first day of the week. ICU 2.6.

Definition at line 2046 of file calendar.cpp.

References FALSE, Calendar::fAreFieldsSet, Calendar::fFirstDayOfWeek, UCAL_SATURDAY, and UCAL_SUNDAY.

    if (fFirstDayOfWeek != value &&
        value >= UCAL_SUNDAY && value <= UCAL_SATURDAY) {
            fFirstDayOfWeek = value;
            fAreFieldsSet = FALSE;

Generated by  Doxygen 1.6.0   Back to index