Lines Matching refs:fieldIndex
359 static UCalendarDateFields fieldNameConverter(sal_Int16 fieldIndex) throw(RuntimeException) in fieldNameConverter() argument
363 switch (fieldIndex) { in fieldNameConverter()
385 Calendar_gregorian::setValue( sal_Int16 fieldIndex, sal_Int16 value ) throw(RuntimeException) in setValue() argument
387 if (fieldIndex < 0 || FIELD_INDEX_COUNT <= fieldIndex) in setValue()
389 fieldSet |= (1 << fieldIndex); in setValue()
390 fieldValue[fieldIndex] = value; in setValue()
428 for (sal_Int16 fieldIndex = 0; fieldIndex < FIELD_INDEX_COUNT; fieldIndex++) in submitFields() local
430 if (fieldSet & (1 << fieldIndex)) in submitFields()
432 switch (fieldIndex) in submitFields()
435 body->set(fieldNameConverter(fieldIndex), fieldSetValue[fieldIndex]); in submitFields()
708 for (sal_Int16 fieldIndex = 0; fieldIndex < FIELD_INDEX_COUNT; fieldIndex++) in getValue() local
710 if (fieldIndex == CalendarFieldIndex::ZONE_OFFSET_SECOND_MILLIS || in getValue()
711 fieldIndex == CalendarFieldIndex::DST_OFFSET_SECOND_MILLIS) in getValue()
715 fieldIndex), status = U_ZERO_ERROR); in getValue()
720 if (fieldIndex == CalendarFieldIndex::ZONE_OFFSET) in getValue()
728 else if (fieldIndex == CalendarFieldIndex::DST_OFFSET) in getValue()
737 fieldValue[fieldIndex] = (sal_Int16) value; in getValue()
740 if ( fieldIndex == CalendarFieldIndex::DAY_OF_WEEK ) in getValue()
741 fieldValue[fieldIndex]--; // UCAL_SUNDAY:/* == 1 */ ==> Weekdays::SUNDAY /* ==0 */ in getValue()
748 Calendar_gregorian::getValue( sal_Int16 fieldIndex ) throw(RuntimeException) in getValue() argument
750 if (fieldIndex < 0 || FIELD_INDEX_COUNT <= fieldIndex) in getValue()
758 return fieldValue[fieldIndex]; in getValue()
762 Calendar_gregorian::addValue( sal_Int16 fieldIndex, sal_Int32 value ) throw(RuntimeException) in addValue() argument
766 body->add(fieldNameConverter(fieldIndex), value, status = U_ZERO_ERROR); in addValue()
779 for ( sal_Int16 fieldIndex = 0; fieldIndex < FIELD_INDEX_COUNT; fieldIndex++ ) { in isValid() local
781 if (tmp & (1 << fieldIndex)) { in isValid()
782 if (fieldSetValue[fieldIndex] != fieldValue[fieldIndex]) in isValid()