/** * Set the calendar to be used by this date format. Initially, the default * calendar for the specified or default locale is used. The caller should * not delete the Calendar object after it is adopted by this call. * * @param calendarToAdopt Calendar object to be adopted.
*/ virtualvoid adoptCalendar(Calendar* calendarToAdopt);
/** * Set the calendar to be used by this date format. Initially, the default * calendar for the specified or default locale is used. * * @param newCalendar Calendar object to be set.
*/ virtualvoid setCalendar(const Calendar& newCalendar);
/** * Sets the time zone for the calendar of this DateFormat object. The caller * no longer owns the TimeZone object and should not delete it after this call. * * @param zoneToAdopt the TimeZone to be adopted.
*/ virtualvoid adoptTimeZone(TimeZone* zoneToAdopt);
/** * Sets the time zone for the calendar of this DateFormat object. * @param zone the new time zone.
*/ virtualvoid setTimeZone(const TimeZone& zone);
/** * Return the class ID for this class. This is useful only for comparing to * a return value from getDynamicClassID(). For example: * <pre> * . Base* polymorphic_pointer = createPolymorphicObject(); * . if (polymorphic_pointer->getDynamicClassID() == * . derived::getStaticClassID()) ... * </pre> * @return The class ID for all objects of this class.
*/
U_I18N_API static UClassID U_EXPORT2 getStaticClassID();
/** * Returns a unique class ID POLYMORPHICALLY. Pure virtual override. This * method is to implement a simple version of RTTI, since not all C++ * compilers support genuine RTTI. Polymorphic operator==() and clone() * methods call this method. * * @return The class ID for this object. All objects of a * given class have the same class ID. Objects of * other classes have different class IDs.
*/ virtual UClassID getDynamicClassID() const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.