Logo Search packages:      
Sourcecode: icu version File versions  Download package

int32_t Calendar::internalGet ( UCalendarDateFields  field,
int32_t  defaultValue 
) const [inline, protected, inherited]

Gets the value for a given time field. Subclasses can use this function to get field values without forcing recomputation of time. If the field's stamp is UNSET, the defaultValue is used.

Parameters:
field The given time field.
defaultValue a default value used if the field is unset.
Returns:
The value for the given time field.

For internal use only.

Definition at line 1313 of file calendar.h.

{return fStamp[field]>kUnset ? fFields[field] : defaultValue;}


Generated by  Doxygen 1.6.0   Back to index