📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 09:44:30
📂
/ (Root)
/
opt
/
alt
/
alt-nodejs22
/
root
/
usr
/
share
/
doc
/
alt-nodejs22-libicu-doc
📍 /opt/alt/alt-nodejs22/root/usr/share/doc/alt-nodejs22-libicu-doc
🔄 Refresh
✏️
Editing: classmessage2_1_1data__model_1_1Key.html
Read Only
<!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.14"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>ICU 77.1: icu::message2::data_model::Key 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="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.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 id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">ICU 77.1  <span id="projectnumber">77.1</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.14 --> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ var searchBox = new SearchBox("searchBox", "search",false,'Search'); /* @license-end */ </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); /* @license-end */</script> <div id="main-nav"></div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceicu.html">icu</a></li><li class="navelem"><b>message2</b></li><li class="navelem"><b>data_model</b></li><li class="navelem"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#friends">Friends</a> </div> <div class="headertitle"> <div class="title">icu::message2::data_model::Key Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>The <code><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html" title="The Key class corresponds to the key nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf . ">Key</a></code> class corresponds to the <code>key</code> nonterminal in the <a class="el" href="classicu_1_1MessageFormat.html">MessageFormat</a> 2 grammar, <a href="https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf">https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf</a> . <a href="classicu_1_1message2_1_1data__model_1_1Key.html#details">More...</a></p> <p><code>#include <<a class="el" href="messageformat2__data__model_8h_source.html">messageformat2_data_model.h</a>></code></p> <div class="dynheader"> Inheritance diagram for icu::message2::data_model::Key:</div> <div class="dyncontent"> <div class="center"> <img src="classicu_1_1message2_1_1data__model_1_1Key.png" usemap="#icu::message2::data_5Fmodel::Key_map" alt=""/> <map id="icu::message2::data_5Fmodel::Key_map" name="icu::message2::data_5Fmodel::Key_map"> <area href="classicu_1_1UObject.html" title="UObject is the common ICU "boilerplate" class. " alt="icu::UObject" shape="rect" coords="0,56,189,80"/> <area href="classicu_1_1UMemory.html" title="UMemory is the common ICU base class. " alt="icu::UMemory" shape="rect" coords="0,0,189,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:a3e0a0fcb4775e3324e9fa47fa3a09cfa"><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="classicu_1_1message2_1_1data__model_1_1Key.html#a3e0a0fcb4775e3324e9fa47fa3a09cfa">isWildcard</a> () const</td></tr> <tr class="memdesc:a3e0a0fcb4775e3324e9fa47fa3a09cfa"><td class="mdescLeft"> </td><td class="mdescRight">Determines if this is a wildcard key. <a href="#a3e0a0fcb4775e3324e9fa47fa3a09cfa">More...</a><br /></td></tr> <tr class="separator:a3e0a0fcb4775e3324e9fa47fa3a09cfa"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4c7c754023796897f24a13a86923fb03"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classicu_1_1message2_1_1data__model_1_1Literal.html">Literal</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html#a4c7c754023796897f24a13a86923fb03">asLiteral</a> () const</td></tr> <tr class="memdesc:a4c7c754023796897f24a13a86923fb03"><td class="mdescLeft"> </td><td class="mdescRight">Returns the contents of this key as a literal. <a href="#a4c7c754023796897f24a13a86923fb03">More...</a><br /></td></tr> <tr class="separator:a4c7c754023796897f24a13a86923fb03"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2b3df131ace84d85284a2a5043829cd7"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html#a2b3df131ace84d85284a2a5043829cd7">Key</a> (const <a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a> &other)</td></tr> <tr class="memdesc:a2b3df131ace84d85284a2a5043829cd7"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#a2b3df131ace84d85284a2a5043829cd7">More...</a><br /></td></tr> <tr class="separator:a2b3df131ace84d85284a2a5043829cd7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a610d2169401ac2ac6bab28782a4680b8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html#a610d2169401ac2ac6bab28782a4680b8">Key</a> ()</td></tr> <tr class="memdesc:a610d2169401ac2ac6bab28782a4680b8"><td class="mdescLeft"> </td><td class="mdescRight">Wildcard constructor; constructs a <a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html" title="The Key class corresponds to the key nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf . ">Key</a> representing the catchall or wildcard key, '*'. <a href="#a610d2169401ac2ac6bab28782a4680b8">More...</a><br /></td></tr> <tr class="separator:a610d2169401ac2ac6bab28782a4680b8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a60e110f93b433548c61f94b2638ab94e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html#a60e110f93b433548c61f94b2638ab94e">Key</a> (const <a class="el" href="classicu_1_1message2_1_1data__model_1_1Literal.html">Literal</a> &lit)</td></tr> <tr class="memdesc:a60e110f93b433548c61f94b2638ab94e"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Literal.html" title="The Literal class corresponds to the literal nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf and the Literal interface defined in // https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#expressions. ">Literal</a> key constructor. <a href="#a60e110f93b433548c61f94b2638ab94e">More...</a><br /></td></tr> <tr class="separator:a60e110f93b433548c61f94b2638ab94e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a443c084bc5f33437a860bc4a1fe6e9a5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html#a443c084bc5f33437a860bc4a1fe6e9a5">operator=</a> (<a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a>) noexcept</td></tr> <tr class="memdesc:a443c084bc5f33437a860bc4a1fe6e9a5"><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <a href="#a443c084bc5f33437a860bc4a1fe6e9a5">More...</a><br /></td></tr> <tr class="separator:a443c084bc5f33437a860bc4a1fe6e9a5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6392f85b562b7659f5d5f01fbc4f1791"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html#a6392f85b562b7659f5d5f01fbc4f1791">operator<</a> (const <a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a> &other) const</td></tr> <tr class="memdesc:a6392f85b562b7659f5d5f01fbc4f1791"><td class="mdescLeft"> </td><td class="mdescRight">Less than operator. <a href="#a6392f85b562b7659f5d5f01fbc4f1791">More...</a><br /></td></tr> <tr class="separator:a6392f85b562b7659f5d5f01fbc4f1791"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6cb9181ce79c0765249c5f5f953e3d63"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html#a6cb9181ce79c0765249c5f5f953e3d63">operator==</a> (const <a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a> &other) const</td></tr> <tr class="memdesc:a6cb9181ce79c0765249c5f5f953e3d63"><td class="mdescLeft"> </td><td class="mdescRight">Equality operator. <a href="#a6cb9181ce79c0765249c5f5f953e3d63">More...</a><br /></td></tr> <tr class="separator:a6cb9181ce79c0765249c5f5f953e3d63"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a510e66a80001308ce80e4f55cb2ab404"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html#a510e66a80001308ce80e4f55cb2ab404">~Key</a> ()</td></tr> <tr class="memdesc:a510e66a80001308ce80e4f55cb2ab404"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a510e66a80001308ce80e4f55cb2ab404">More...</a><br /></td></tr> <tr class="separator:a510e66a80001308ce80e4f55cb2ab404"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_classicu_1_1UObject"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classicu_1_1UObject')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classicu_1_1UObject.html">icu::UObject</a></td></tr> <tr class="memitem:af10026497704f510d3d1f2eff50acb18 inherit pub_methods_classicu_1_1UObject"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1UObject.html#af10026497704f510d3d1f2eff50acb18">~UObject</a> ()</td></tr> <tr class="memdesc:af10026497704f510d3d1f2eff50acb18 inherit pub_methods_classicu_1_1UObject"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="classicu_1_1UObject.html#af10026497704f510d3d1f2eff50acb18">More...</a><br /></td></tr> <tr class="separator:af10026497704f510d3d1f2eff50acb18 inherit pub_methods_classicu_1_1UObject"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aca1169c4978c52ce2b76eda104e9a214 inherit pub_methods_classicu_1_1UObject"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="uobject_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1UObject.html#aca1169c4978c52ce2b76eda104e9a214">getDynamicClassID</a> () const</td></tr> <tr class="memdesc:aca1169c4978c52ce2b76eda104e9a214 inherit pub_methods_classicu_1_1UObject"><td class="mdescLeft"> </td><td class="mdescRight">ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. <a href="classicu_1_1UObject.html#aca1169c4978c52ce2b76eda104e9a214">More...</a><br /></td></tr> <tr class="separator:aca1169c4978c52ce2b76eda104e9a214 inherit pub_methods_classicu_1_1UObject"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a> Friends</h2></td></tr> <tr class="memitem:abe22260eb719343c6a277b39dc94d053"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html#abe22260eb719343c6a277b39dc94d053">swap</a> (<a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a> &k1, <a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a> &k2) noexcept</td></tr> <tr class="memdesc:abe22260eb719343c6a277b39dc94d053"><td class="mdescLeft"> </td><td class="mdescRight">Non-member swap function. <a href="#abe22260eb719343c6a277b39dc94d053">More...</a><br /></td></tr> <tr class="separator:abe22260eb719343c6a277b39dc94d053"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>The <code><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html" title="The Key class corresponds to the key nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf . ">Key</a></code> class corresponds to the <code>key</code> nonterminal in the <a class="el" href="classicu_1_1MessageFormat.html">MessageFormat</a> 2 grammar, <a href="https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf">https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf</a> . </p> <p>It also corresponds to the <code><a class="el" href="classicu_1_1message2_1_1data__model_1_1Literal.html" title="The Literal class corresponds to the literal nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf and the Literal interface defined in // https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#expressions. ">Literal</a> | CatchallKey</code> that is the element type of the <code>keys</code> array in the <code><a class="el" href="classicu_1_1message2_1_1data__model_1_1Variant.html" title="A Variant pairs a list of keys with a pattern It corresponds to the Variant interface defined in http...">Variant</a></code> interface defined in <a href="https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#messages">https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#messages</a></p> <p>A key is either a literal or the wildcard symbol (represented in messages as '*')</p> <p><code><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html" title="The Key class corresponds to the key nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf . ">Key</a></code> is immutable, copyable and movable.</p> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000415">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 75 technology preview </dd></dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000405">Deprecated:</a></b></dt><dd>This API is for technology preview only. </dd></dl> <p class="definition">Definition at line <a class="el" href="messageformat2__data__model_8h_source.html#l00387">387</a> of file <a class="el" href="messageformat2__data__model_8h_source.html">messageformat2_data_model.h</a>.</p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a id="a2b3df131ace84d85284a2a5043829cd7"></a> <h2 class="memtitle"><span class="permalink"><a href="#a2b3df131ace84d85284a2a5043829cd7">◆ </a></span>Key() <span class="overload">[1/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">icu::message2::data_model::Key::Key </td> <td>(</td> <td class="paramtype">const <a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Copy constructor. </p> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000430">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 75 technology preview </dd></dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000420">Deprecated:</a></b></dt><dd>This API is for technology preview only. </dd></dl> <p class="definition">Definition at line <a class="el" href="messageformat2__data__model_8h_source.html#l00414">414</a> of file <a class="el" href="messageformat2__data__model_8h_source.html">messageformat2_data_model.h</a>.</p> </div> </div> <a id="a610d2169401ac2ac6bab28782a4680b8"></a> <h2 class="memtitle"><span class="permalink"><a href="#a610d2169401ac2ac6bab28782a4680b8">◆ </a></span>Key() <span class="overload">[2/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">icu::message2::data_model::Key::Key </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Wildcard constructor; constructs a <a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html" title="The Key class corresponds to the key nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf . ">Key</a> representing the catchall or wildcard key, '*'. </p> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000431">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 75 technology preview </dd></dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000421">Deprecated:</a></b></dt><dd>This API is for technology preview only. </dd></dl> <p class="definition">Definition at line <a class="el" href="messageformat2__data__model_8h_source.html#l00422">422</a> of file <a class="el" href="messageformat2__data__model_8h_source.html">messageformat2_data_model.h</a>.</p> </div> </div> <a id="a60e110f93b433548c61f94b2638ab94e"></a> <h2 class="memtitle"><span class="permalink"><a href="#a60e110f93b433548c61f94b2638ab94e">◆ </a></span>Key() <span class="overload">[3/3]</span></h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">icu::message2::data_model::Key::Key </td> <td>(</td> <td class="paramtype">const <a class="el" href="classicu_1_1message2_1_1data__model_1_1Literal.html">Literal</a> & </td> <td class="paramname"><em>lit</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td> </tr> </table> </div><div class="memdoc"> <p><a class="el" href="classicu_1_1message2_1_1data__model_1_1Literal.html" title="The Literal class corresponds to the literal nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf and the Literal interface defined in // https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#expressions. ">Literal</a> key constructor. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">lit</td><td>A <a class="el" href="classicu_1_1message2_1_1data__model_1_1Literal.html" title="The Literal class corresponds to the literal nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf and the Literal interface defined in // https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#expressions. ">Literal</a> to use for this key. The result matches the literal <code>lit</code>.</td></tr> </table> </dd> </dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000432">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 75 technology preview </dd></dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000422">Deprecated:</a></b></dt><dd>This API is for technology preview only. </dd></dl> <p class="definition">Definition at line <a class="el" href="messageformat2__data__model_8h_source.html#l00432">432</a> of file <a class="el" href="messageformat2__data__model_8h_source.html">messageformat2_data_model.h</a>.</p> </div> </div> <a id="a510e66a80001308ce80e4f55cb2ab404"></a> <h2 class="memtitle"><span class="permalink"><a href="#a510e66a80001308ce80e4f55cb2ab404">◆ </a></span>~Key()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual icu::message2::data_model::Key::~Key </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#_internal000437">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 75 technology preview </dd></dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000427">Deprecated:</a></b></dt><dd>This API is for technology preview only. </dd></dl> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a id="a4c7c754023796897f24a13a86923fb03"></a> <h2 class="memtitle"><span class="permalink"><a href="#a4c7c754023796897f24a13a86923fb03">◆ </a></span>asLiteral()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classicu_1_1message2_1_1data__model_1_1Literal.html">Literal</a>& icu::message2::data_model::Key::asLiteral </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns the contents of this key as a literal. </p> <p>Precondition: !isWildcard()</p> <dl class="section return"><dt>Returns</dt><dd>The literal contents of the key</dd></dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000429">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 75 technology preview </dd></dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000419">Deprecated:</a></b></dt><dd>This API is for technology preview only. </dd></dl> </div> </div> <a id="a3e0a0fcb4775e3324e9fa47fa3a09cfa"></a> <h2 class="memtitle"><span class="permalink"><a href="#a3e0a0fcb4775e3324e9fa47fa3a09cfa">◆ </a></span>isWildcard()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> icu::message2::data_model::Key::isWildcard </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Determines if this is a wildcard key. </p> <dl class="section return"><dt>Returns</dt><dd>True if and only if this is the wildcard key</dd></dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000428">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 75 technology preview </dd></dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000418">Deprecated:</a></b></dt><dd>This API is for technology preview only. </dd></dl> <p class="definition">Definition at line <a class="el" href="messageformat2__data__model_8h_source.html#l00397">397</a> of file <a class="el" href="messageformat2__data__model_8h_source.html">messageformat2_data_model.h</a>.</p> </div> </div> <a id="a6392f85b562b7659f5d5f01fbc4f1791"></a> <h2 class="memtitle"><span class="permalink"><a href="#a6392f85b562b7659f5d5f01fbc4f1791">◆ </a></span>operator<()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool icu::message2::data_model::Key::operator< </td> <td>(</td> <td class="paramtype">const <a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Less than operator. </p> <p>Compares the literal of <code>this</code> with the literal of <code>other</code>. This method is used in representing the mapping from key lists to patterns in a message with variants, and is not expected to be useful otherwise.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">other</td><td>The <a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html" title="The Key class corresponds to the key nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf . ">Key</a> to compare to this one. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>true if the two <code><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html" title="The Key class corresponds to the key nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf . ">Key</a></code>s are not wildcards and if <code>this.asLiteral()</code> < <code>other.asLiteral()</code>. Returns false otherwise.</dd></dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000435">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 75 technology preview </dd></dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000425">Deprecated:</a></b></dt><dd>This API is for technology preview only. </dd></dl> </div> </div> <a id="a443c084bc5f33437a860bc4a1fe6e9a5"></a> <h2 class="memtitle"><span class="permalink"><a href="#a443c084bc5f33437a860bc4a1fe6e9a5">◆ </a></span>operator=()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a>& icu::message2::data_model::Key::operator= </td> <td>(</td> <td class="paramtype"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a> </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">noexcept</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Assignment operator. </p> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000434">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 75 technology preview </dd></dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000424">Deprecated:</a></b></dt><dd>This API is for technology preview only. </dd></dl> </div> </div> <a id="a6cb9181ce79c0765249c5f5f953e3d63"></a> <h2 class="memtitle"><span class="permalink"><a href="#a6cb9181ce79c0765249c5f5f953e3d63">◆ </a></span>operator==()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool icu::message2::data_model::Key::operator== </td> <td>(</td> <td class="paramtype">const <a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Equality operator. </p> <p>Compares the literal of <code>this</code> with the literal of <code>other</code>. This method is used in representing the mapping from key lists to patterns in a message with variants, and is not expected to be useful otherwise.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">other</td><td>The <a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html" title="The Key class corresponds to the key nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf . ">Key</a> to compare to this one. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>true if either both <code><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html" title="The Key class corresponds to the key nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf . ">Key</a></code>s are wildcards, or <code>this.asLiteral()</code> == <code>other.asLiteral()</code>. Returns false otherwise.</dd></dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000436">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 75 technology preview </dd></dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000426">Deprecated:</a></b></dt><dd>This API is for technology preview only. </dd></dl> </div> </div> <h2 class="groupheader">Friends And Related Function Documentation</h2> <a id="abe22260eb719343c6a277b39dc94d053"></a> <h2 class="memtitle"><span class="permalink"><a href="#abe22260eb719343c6a277b39dc94d053">◆ </a></span>swap</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void swap </td> <td>(</td> <td class="paramtype"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a> & </td> <td class="paramname"><em>k1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a> & </td> <td class="paramname"><em>k2</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">friend</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Non-member swap function. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">k1</td><td>will get k2's contents </td></tr> <tr><td class="paramname">k2</td><td>will get k1's contents</td></tr> </table> </dd> </dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000433">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 75 technology preview </dd></dl> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000423">Deprecated:</a></b></dt><dd>This API is for technology preview only. </dd></dl> <p class="definition">Definition at line <a class="el" href="messageformat2__data__model_8h_source.html#l00441">441</a> of file <a class="el" href="messageformat2__data__model_8h_source.html">messageformat2_data_model.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>i18n/unicode/<a class="el" href="messageformat2__data__model_8h_source.html">messageformat2_data_model.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.14 </small></address> </body> </html>
💾 Save Changes
❌ Cancel