Lines Matching refs:id
61 * with a time zone ID. For instance, the time zone ID for the US Pacific
71 * if a time zone ID is supported or not. You can then choose a
72 * supported ID to get a <code>TimeZone</code>.
74 * supported IDs, then you can create a custom time zone ID with
84 * time zone ID. The <code>TimeZone</code> that is returned
85 * when you specify a custom time zone ID uses the specified
88 * time zone ID to create a TimeZone representing 14 hours ahead
91 * normalize a custom time zone ID.
103 * <li>An ID. This is a text string that uniquely identifies the time zone.</li>
106 * (Only the ID is actually implemented in TimeZone; subclasses of TimeZone may handle
112 * world, each with a unique ID. Each ID consists of a region (usually a continent or
117 * Anywhere the API requires an ID, you can use either form.
120 * and pass it a time zone ID. You can use the createEnumeration() function to
140 * createTimeZone() returns a mutable clone of this time zone if the input ID is not recognized.
154 * <p>Note: For backward compatibility reason, the ID used by the time
156 * ID for the GMT time zone is "Etc/GMT".
165 * Creates a <code>TimeZone</code> for the given ID.
166 * @param ID the ID for a <code>TimeZone</code>, such as "America/Los_Angeles",
167 * or a custom ID such as "GMT-8:00".
169 * if the given ID cannot be understood or if the given ID is "Etc/Unknown".
172 * compare the result with getUnknown() or check the ID of the return result.
175 static TimeZone* U_EXPORT2 createTimeZone(const UnicodeString& ID);
240 * includes the given ID. An equivalency group contains zones
243 * <p>The returned count includes the given ID; it is always >= 1.
244 * The given ID must be a system time zone. If it is not, returns
246 * @param id a system time zone ID
248 * 'id', or zero if 'id' is not a valid system ID
252 static int32_t U_EXPORT2 countEquivalentIDs(const UnicodeString& id);
255 * Returns an ID in the equivalency group that
256 * includes the given ID. An equivalency group contains zones
260 * value returned by <code>countEquivalentIDs(id)</code>. For
262 * given id. If the given id is not a valid system time zone, or
264 * @param id a system time zone ID
266 * returned by <code>countEquivalentIDs(id)</code>
267 * @return the ID of the index-th zone in the equivalency group
268 * containing 'id', or an empty string if 'id' is not a valid
269 * system ID or 'index' is out of range
273 static const UnicodeString U_EXPORT2 getEquivalentID(const UnicodeString& id,
281 * recognized, the TimeZone indicated by the ID kLastResortID is instantiated
322 * Returns the canonical system timezone ID or the normalized
323 * custom time zone ID for the given time zone ID.
324 * @param id The input time zone ID to be canonicalized.
325 * @param canonicalID Receives the canonical system time zone ID
326 * or the custom time zone ID in normalized format.
327 * @param status Recevies the status. When the given time zone ID
328 * is neither a known system time zone ID nor a
329 * valid custom time zone ID, U_ILLEGAL_ARGUMENT_ERROR
334 static UnicodeString& U_EXPORT2 getCanonicalID(const UnicodeString& id,
338 * Returns the canonical system time zone ID or the normalized
339 * custom time zone ID for the given time zone ID.
340 * @param id The input time zone ID to be canonicalized.
341 * @param canonicalID Receives the canonical system time zone ID
342 * or the custom time zone ID in normalized format.
343 * @param isSystemID Receives if the given ID is a known system
344 * time zone ID.
345 * @param status Recevies the status. When the given time zone ID
346 * is neither a known system time zone ID nor a
347 * valid custom time zone ID, U_ILLEGAL_ARGUMENT_ERROR
352 static UnicodeString& U_EXPORT2 getCanonicalID(const UnicodeString& id,
473 * Fills in "ID" with the TimeZone's ID.
475 * @param ID Receives this TimeZone's ID.
476 * @return A reference to 'ID'
479 UnicodeString& getID(UnicodeString& ID) const;
482 * Sets the TimeZone's ID to the specified value. This doesn't affect any other
489 * Los Angeles. They're still those for New York. Only the ID has changed.)
491 * @param ID The new time zone ID.
494 void setID(const UnicodeString& ID);
632 * <code>BasicTimeZone</code> class (Note that <code>TimeZone::createTimeZone(const UnicodeString &ID)</code>
658 * That is, if this zone differs only in ID, if at all.
661 * with the possible exception of the ID
676 * Return the class ID for this class. This is useful only for
678 * @return The class ID for all objects of this class.
684 * Returns a unique class ID POLYMORPHICALLY. This method is to
690 * @return The class ID for this object. All objects of a given class have the
691 * same class ID. Objects of other classes have different class IDs.
715 * system time zone ID. The region code is either ISO 3166
721 * @param id The system time zone ID.
724 * @param status Receives the status. When the given time zone ID
725 * is not a known system time zone ID,
730 static int32_t U_EXPORT2 getRegion(const UnicodeString& id,
736 * Default constructor. ID is initialized to the empty string.
742 * Construct a TimeZone with a given ID.
743 * @param id a system time zone ID
746 TimeZone(const UnicodeString &id);
766 * @param ruleid ID of rule to load
782 * Finds the given ID in the Olson tzdata. If the given ID is found in the tzdata,
783 * returns the pointer to the ID resource. This method is exposed through ZoneMeta class
785 * ID as a key.
786 * @param id zone id string
787 * @return the pointer of the ID resource, or NULL.
789 static const UChar* findID(const UnicodeString& id);
792 * Resolve a link in Olson tzdata. When the given id is known and it's not a link,
793 * the id itself is returned. When the given id is known and it is a link, then
794 * dereferenced zone id is returned. When the given id is unknown, then it returns
796 * @param id zone id string
799 static const UChar* dereferOlsonLink(const UnicodeString& id);
804 * @param id zone id string
807 static const UChar* getRegion(const UnicodeString& id);
812 * @param id zone id string
816 static const UChar* getRegion(const UnicodeString& id, UErrorCode& status);
820 * @param id id A string of the form GMT[+-]hh:mm, GMT[+-]hhmm, or
826 * @return Returns TRUE when the given custom id is valid.
828 static UBool parseCustomID(const UnicodeString& id, int32_t& sign, int32_t& hour,
833 * custom time zone identifier for the given custom id string.
834 * @param id a string of the form GMT[+-]hh:mm, GMT[+-]hhmm, or
836 * @param normalized Receives the normalized custom ID
837 * @param status Receives the status. When the input ID string is invalid,
839 * @return The normalized custom id string.
841 static UnicodeString& getCustomID(const UnicodeString& id, UnicodeString& normalized,
845 * Returns the normalized custome time zone ID for the given offset fields.
850 * @param id Receves the format result (normalized custom ID)
851 * @return The reference to id
854 UBool negative, UnicodeString& id);
874 UnicodeString fID; // this time zone's ID
883 TimeZone::getID(UnicodeString& ID) const
885 ID = fID;
886 return ID;
892 TimeZone::setID(const UnicodeString& ID)
894 fID = ID;