MatchInfoCollection
represents a collection of time zone name matches used by TimeZoneNames#find.
More...
#include <tznames.h>
Inheritance diagram for icu::TimeZoneNames::MatchInfoCollection:
Public Member Functions | |
MatchInfoCollection () | |
Constructor. | |
virtual | ~MatchInfoCollection () |
Destructor. | |
void | addZone (UTimeZoneNameType nameType, int32_t matchLength, const UnicodeString &tzID, UErrorCode &status) |
Adds a zone match. | |
void | addMetaZone (UTimeZoneNameType nameType, int32_t matchLength, const UnicodeString &mzID, UErrorCode &status) |
Adds a meata zone match. | |
int32_t | size () const |
Returns the number of entries available in this object. | |
UTimeZoneNameType | getNameTypeAt (int32_t idx) const |
Returns the time zone name type of a match at the specified index. | |
int32_t | getMatchLengthAt (int32_t idx) const |
Returns the match length of a match at the specified index. | |
UBool | getTimeZoneIDAt (int32_t idx, UnicodeString &tzID) const |
Gets the zone ID of a match at the specified index. | |
UBool | getMetaZoneIDAt (int32_t idx, UnicodeString &mzID) const |
Gets the metazone ID of a match at the specified index. |
MatchInfoCollection
represents a collection of time zone name matches used by TimeZoneNames#find.
Definition at line 267 of file tznames.h.
icu::TimeZoneNames::MatchInfoCollection::MatchInfoCollection | ( | ) |
virtual icu::TimeZoneNames::MatchInfoCollection::~MatchInfoCollection | ( | ) | [virtual] |
void icu::TimeZoneNames::MatchInfoCollection::addMetaZone | ( | UTimeZoneNameType | nameType, | |
int32_t | matchLength, | |||
const UnicodeString & | mzID, | |||
UErrorCode & | status | |||
) |
Adds a meata zone match.
nameType | The name type. | |
matchLength | The match length. | |
mzID | The metazone ID. | |
status | Receives the status |
void icu::TimeZoneNames::MatchInfoCollection::addZone | ( | UTimeZoneNameType | nameType, | |
int32_t | matchLength, | |||
const UnicodeString & | tzID, | |||
UErrorCode & | status | |||
) |
Adds a zone match.
nameType | The name type. | |
matchLength | The match length. | |
tzID | The time zone ID. | |
status | Receives the status |
Returns the match length of a match at the specified index.
idx | The index |
UBool icu::TimeZoneNames::MatchInfoCollection::getMetaZoneIDAt | ( | int32_t | idx, | |
UnicodeString & | mzID | |||
) | const |
Gets the metazone ID of a match at the specified index.
idx | The index | |
mzID | Receives the metazone ID |
UTimeZoneNameType icu::TimeZoneNames::MatchInfoCollection::getNameTypeAt | ( | int32_t | idx | ) | const |
Returns the time zone name type of a match at the specified index.
idx | The index |
UBool icu::TimeZoneNames::MatchInfoCollection::getTimeZoneIDAt | ( | int32_t | idx, | |
UnicodeString & | tzID | |||
) | const |
Gets the zone ID of a match at the specified index.
idx | The index | |
tzID | Receives the zone ID. |
int32_t icu::TimeZoneNames::MatchInfoCollection::size | ( | ) | const |
Returns the number of entries available in this object.