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