<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.3.1"/> <title>ICU 49.1.1: TimeZoneNames::MatchInfoCollection Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">ICU 49.1.1  <span id="projectnumber">49.1.1</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.3.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="classes.html"><span>Data Structure Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="classTimeZoneNames.html">TimeZoneNames</a></li><li class="navelem"><a class="el" href="classTimeZoneNames_1_1MatchInfoCollection.html">MatchInfoCollection</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <div class="title">TimeZoneNames::MatchInfoCollection Class Reference</div> </div> </div><!--header--> <div class="contents"> <p><code><a class="el" href="classTimeZoneNames_1_1MatchInfoCollection.html" title="MatchInfoCollection represents a collection of time zone name matches used by TimeZoneNames#find.">MatchInfoCollection</a></code> represents a collection of time zone name matches used by <a class="el" href="classTimeZoneNames.html#ad915605142bc7719f92f573e7603c710">TimeZoneNames#find</a>. <a href="classTimeZoneNames_1_1MatchInfoCollection.html#details">More...</a></p> <p><code>#include <<a class="el" href="tznames_8h_source.html">tznames.h</a>></code></p> <div class="dynheader"> Inheritance diagram for TimeZoneNames::MatchInfoCollection:</div> <div class="dyncontent"> <div class="center"> <img src="classTimeZoneNames_1_1MatchInfoCollection.png" usemap="#TimeZoneNames::MatchInfoCollection_map" alt=""/> <map id="TimeZoneNames::MatchInfoCollection_map" name="TimeZoneNames::MatchInfoCollection_map"> <area href="classUMemory.html" title="UMemory is the common ICU base class." alt="UMemory" shape="rect" coords="0,0,224,24"/> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a81cb6fa0f2e743643294ba29b5aa1222"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneNames_1_1MatchInfoCollection.html#a81cb6fa0f2e743643294ba29b5aa1222">MatchInfoCollection</a> ()</td></tr> <tr class="memdesc:a81cb6fa0f2e743643294ba29b5aa1222"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#a81cb6fa0f2e743643294ba29b5aa1222">More...</a><br/></td></tr> <tr class="separator:a81cb6fa0f2e743643294ba29b5aa1222"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab6d503ec39c7d31f0ac6a7f226486f31"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneNames_1_1MatchInfoCollection.html#ab6d503ec39c7d31f0ac6a7f226486f31">~MatchInfoCollection</a> ()</td></tr> <tr class="memdesc:ab6d503ec39c7d31f0ac6a7f226486f31"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ab6d503ec39c7d31f0ac6a7f226486f31">More...</a><br/></td></tr> <tr class="separator:ab6d503ec39c7d31f0ac6a7f226486f31"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a94a50dd4935e7a91af24a636cf3fc862"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneNames_1_1MatchInfoCollection.html#a94a50dd4935e7a91af24a636cf3fc862">addZone</a> (<a class="el" href="tznames_8h.html#a8fbf9ebf198c9ad6a217b010b5b75878">UTimeZoneNameType</a> nameType, int32_t matchLength, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &tzID, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a94a50dd4935e7a91af24a636cf3fc862"><td class="mdescLeft"> </td><td class="mdescRight">Adds a zone match. <a href="#a94a50dd4935e7a91af24a636cf3fc862">More...</a><br/></td></tr> <tr class="separator:a94a50dd4935e7a91af24a636cf3fc862"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aeb57a47d15491bc4d048102c6c0f237b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneNames_1_1MatchInfoCollection.html#aeb57a47d15491bc4d048102c6c0f237b">addMetaZone</a> (<a class="el" href="tznames_8h.html#a8fbf9ebf198c9ad6a217b010b5b75878">UTimeZoneNameType</a> nameType, int32_t matchLength, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &mzID, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:aeb57a47d15491bc4d048102c6c0f237b"><td class="mdescLeft"> </td><td class="mdescRight">Adds a meata zone match. <a href="#aeb57a47d15491bc4d048102c6c0f237b">More...</a><br/></td></tr> <tr class="separator:aeb57a47d15491bc4d048102c6c0f237b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3c51a9263c118156520f68c8fc00d27c"><td class="memItemLeft" align="right" valign="top">int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneNames_1_1MatchInfoCollection.html#a3c51a9263c118156520f68c8fc00d27c">size</a> () const </td></tr> <tr class="memdesc:a3c51a9263c118156520f68c8fc00d27c"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of entries available in this object. <a href="#a3c51a9263c118156520f68c8fc00d27c">More...</a><br/></td></tr> <tr class="separator:a3c51a9263c118156520f68c8fc00d27c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9369884c1437230e067d3ad14c5b2331"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tznames_8h.html#a8fbf9ebf198c9ad6a217b010b5b75878">UTimeZoneNameType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneNames_1_1MatchInfoCollection.html#a9369884c1437230e067d3ad14c5b2331">getNameTypeAt</a> (int32_t idx) const </td></tr> <tr class="memdesc:a9369884c1437230e067d3ad14c5b2331"><td class="mdescLeft"> </td><td class="mdescRight">Returns the time zone name type of a match at the specified index. <a href="#a9369884c1437230e067d3ad14c5b2331">More...</a><br/></td></tr> <tr class="separator:a9369884c1437230e067d3ad14c5b2331"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a625a7ede4e285774453d05b0513d04ae"><td class="memItemLeft" align="right" valign="top">int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneNames_1_1MatchInfoCollection.html#a625a7ede4e285774453d05b0513d04ae">getMatchLengthAt</a> (int32_t idx) const </td></tr> <tr class="memdesc:a625a7ede4e285774453d05b0513d04ae"><td class="mdescLeft"> </td><td class="mdescRight">Returns the match length of a match at the specified index. <a href="#a625a7ede4e285774453d05b0513d04ae">More...</a><br/></td></tr> <tr class="separator:a625a7ede4e285774453d05b0513d04ae"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a558613ad2336ebef4d02e34092c4a473"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneNames_1_1MatchInfoCollection.html#a558613ad2336ebef4d02e34092c4a473">getTimeZoneIDAt</a> (int32_t idx, <a class="el" href="classUnicodeString.html">UnicodeString</a> &tzID) const </td></tr> <tr class="memdesc:a558613ad2336ebef4d02e34092c4a473"><td class="mdescLeft"> </td><td class="mdescRight">Gets the zone ID of a match at the specified index. <a href="#a558613ad2336ebef4d02e34092c4a473">More...</a><br/></td></tr> <tr class="separator:a558613ad2336ebef4d02e34092c4a473"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a48907d07eada1111dfb99a7988c609c7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeZoneNames_1_1MatchInfoCollection.html#a48907d07eada1111dfb99a7988c609c7">getMetaZoneIDAt</a> (int32_t idx, <a class="el" href="classUnicodeString.html">UnicodeString</a> &mzID) const </td></tr> <tr class="memdesc:a48907d07eada1111dfb99a7988c609c7"><td class="mdescLeft"> </td><td class="mdescRight">Gets the metazone ID of a match at the specified index. <a href="#a48907d07eada1111dfb99a7988c609c7">More...</a><br/></td></tr> <tr class="separator:a48907d07eada1111dfb99a7988c609c7"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p><code><a class="el" href="classTimeZoneNames_1_1MatchInfoCollection.html" title="MatchInfoCollection represents a collection of time zone name matches used by TimeZoneNames#find.">MatchInfoCollection</a></code> represents a collection of time zone name matches used by <a class="el" href="classTimeZoneNames.html#ad915605142bc7719f92f573e7603c710">TimeZoneNames#find</a>. </p> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000507">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 49 technology preview </dd></dl> <p>Definition at line <a class="el" href="tznames_8h_source.html#l00267">267</a> of file <a class="el" href="tznames_8h_source.html">tznames.h</a>.</p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="a81cb6fa0f2e743643294ba29b5aa1222"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">TimeZoneNames::MatchInfoCollection::MatchInfoCollection </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Constructor. </p> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000509">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 49 technology preview </dd></dl> </div> </div> <a class="anchor" id="ab6d503ec39c7d31f0ac6a7f226486f31"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual TimeZoneNames::MatchInfoCollection::~MatchInfoCollection </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Destructor. </p> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000510">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 49 technology preview </dd></dl> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="aeb57a47d15491bc4d048102c6c0f237b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void TimeZoneNames::MatchInfoCollection::addMetaZone </td> <td>(</td> <td class="paramtype"><a class="el" href="tznames_8h.html#a8fbf9ebf198c9ad6a217b010b5b75878">UTimeZoneNameType</a> </td> <td class="paramname"><em>nameType</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t </td> <td class="paramname"><em>matchLength</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>mzID</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Adds a meata zone match. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">nameType</td><td>The name type. </td></tr> <tr><td class="paramname">matchLength</td><td>The match length. </td></tr> <tr><td class="paramname">mzID</td><td>The metazone ID. </td></tr> <tr><td class="paramname">status</td><td>Receives the status </td></tr> </table> </dd> </dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000512">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 49 technology preview </dd></dl> </div> </div> <a class="anchor" id="a94a50dd4935e7a91af24a636cf3fc862"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void TimeZoneNames::MatchInfoCollection::addZone </td> <td>(</td> <td class="paramtype"><a class="el" href="tznames_8h.html#a8fbf9ebf198c9ad6a217b010b5b75878">UTimeZoneNameType</a> </td> <td class="paramname"><em>nameType</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t </td> <td class="paramname"><em>matchLength</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>tzID</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Adds a zone match. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">nameType</td><td>The name type. </td></tr> <tr><td class="paramname">matchLength</td><td>The match length. </td></tr> <tr><td class="paramname">tzID</td><td>The time zone ID. </td></tr> <tr><td class="paramname">status</td><td>Receives the status </td></tr> </table> </dd> </dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000511">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 49 technology preview </dd></dl> </div> </div> <a class="anchor" id="a625a7ede4e285774453d05b0513d04ae"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int32_t TimeZoneNames::MatchInfoCollection::getMatchLengthAt </td> <td>(</td> <td class="paramtype">int32_t </td> <td class="paramname"><em>idx</em></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns the match length of a match at the specified index. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">idx</td><td>The index </td></tr> <tr><td class="paramname">status</td><td>Receives the status </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The match length. If the specified idx is out of range, it returns 0. </dd></dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000515">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 49 technology preview </dd></dl> </div> </div> <a class="anchor" id="a48907d07eada1111dfb99a7988c609c7"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> TimeZoneNames::MatchInfoCollection::getMetaZoneIDAt </td> <td>(</td> <td class="paramtype">int32_t </td> <td class="paramname"><em>idx</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>mzID</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p>Gets the metazone ID of a match at the specified index. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">idx</td><td>The index </td></tr> <tr><td class="paramname">mzID</td><td>Receives the metazone ID </td></tr> <tr><td class="paramname">status</td><td>Receives the status. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>TRUE if the meta zone ID was set to mzID. </dd></dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000517">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 49 technology preview </dd></dl> </div> </div> <a class="anchor" id="a9369884c1437230e067d3ad14c5b2331"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="tznames_8h.html#a8fbf9ebf198c9ad6a217b010b5b75878">UTimeZoneNameType</a> TimeZoneNames::MatchInfoCollection::getNameTypeAt </td> <td>(</td> <td class="paramtype">int32_t </td> <td class="paramname"><em>idx</em></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns the time zone name type of a match at the specified index. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">idx</td><td>The index </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The time zone name type. If the specified idx is out of range, it returns UTZNM_UNKNOWN. </dd></dl> <dl class="section see"><dt>See Also</dt><dd><a class="el" href="tznames_8h.html#a43e50ce952077b55b335c6559d64fc20" title="Constants for time zone display name types.">UTimeZoneNameType</a> </dd></dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000514">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 49 technology preview </dd></dl> </div> </div> <a class="anchor" id="a558613ad2336ebef4d02e34092c4a473"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> TimeZoneNames::MatchInfoCollection::getTimeZoneIDAt </td> <td>(</td> <td class="paramtype">int32_t </td> <td class="paramname"><em>idx</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>tzID</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p>Gets the zone ID of a match at the specified index. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">idx</td><td>The index </td></tr> <tr><td class="paramname">tzID</td><td>Receives the zone ID. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>TRUE if the zone ID was set to tzID. </dd></dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000516">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 49 technology preview </dd></dl> </div> </div> <a class="anchor" id="a3c51a9263c118156520f68c8fc00d27c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int32_t TimeZoneNames::MatchInfoCollection::size </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns the number of entries available in this object. </p> <dl class="section return"><dt>Returns</dt><dd>The number of entries. </dd></dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000513">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 49 technology preview </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="tznames_8h_source.html">tznames.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.3.1 </small></address> </body> </html>