📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 15:56:32
📂
/ (Root)
/
opt
/
alt
/
alt-nodejs20
/
root
/
usr
/
share
/
doc
/
alt-nodejs20-libicu-doc
📍 /opt/alt/alt-nodejs20/root/usr/share/doc/alt-nodejs20-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 78.3: 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 78.3  <span id="projectnumber">78.3</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:a60ccc18f447fcc427cbd7ec7332f4bb2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <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#a60ccc18f447fcc427cbd7ec7332f4bb2">isWildcard</a> () const</td></tr> <tr class="memdesc:a60ccc18f447fcc427cbd7ec7332f4bb2"><td class="mdescLeft"> </td><td class="mdescRight">Determines if this is a wildcard key. <a href="#a60ccc18f447fcc427cbd7ec7332f4bb2">More...</a><br /></td></tr> <tr class="separator:a60ccc18f447fcc427cbd7ec7332f4bb2"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a061694eede7627edc02a5a32aae5ca5e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> 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#a061694eede7627edc02a5a32aae5ca5e">asLiteral</a> () const</td></tr> <tr class="memdesc:a061694eede7627edc02a5a32aae5ca5e"><td class="mdescLeft"> </td><td class="mdescRight">Returns the contents of this key as a literal. <a href="#a061694eede7627edc02a5a32aae5ca5e">More...</a><br /></td></tr> <tr class="separator:a061694eede7627edc02a5a32aae5ca5e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aabc99064ded10502a675d6d91ef2cf32"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html#aabc99064ded10502a675d6d91ef2cf32">Key</a> (const <a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a> &other)</td></tr> <tr class="memdesc:aabc99064ded10502a675d6d91ef2cf32"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#aabc99064ded10502a675d6d91ef2cf32">More...</a><br /></td></tr> <tr class="separator:aabc99064ded10502a675d6d91ef2cf32"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad8324c38380ce975cd231e3474ed3e08"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html#ad8324c38380ce975cd231e3474ed3e08">Key</a> ()</td></tr> <tr class="memdesc:ad8324c38380ce975cd231e3474ed3e08"><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="#ad8324c38380ce975cd231e3474ed3e08">More...</a><br /></td></tr> <tr class="separator:ad8324c38380ce975cd231e3474ed3e08"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9f44246f87b7b042056d6e9dce2c0787"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html#a9f44246f87b7b042056d6e9dce2c0787">Key</a> (const <a class="el" href="classicu_1_1message2_1_1data__model_1_1Literal.html">Literal</a> &lit)</td></tr> <tr class="memdesc:a9f44246f87b7b042056d6e9dce2c0787"><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="#a9f44246f87b7b042056d6e9dce2c0787">More...</a><br /></td></tr> <tr class="separator:a9f44246f87b7b042056d6e9dce2c0787"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4e98e381aba8137792feb46f0dc905de"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <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#a4e98e381aba8137792feb46f0dc905de">operator=</a> (<a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html">Key</a>) noexcept</td></tr> <tr class="memdesc:a4e98e381aba8137792feb46f0dc905de"><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <a href="#a4e98e381aba8137792feb46f0dc905de">More...</a><br /></td></tr> <tr class="separator:a4e98e381aba8137792feb46f0dc905de"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4c11e28de4fdd8b0dc14a9e5b4b3f73b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html#a4c11e28de4fdd8b0dc14a9e5b4b3f73b">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:a4c11e28de4fdd8b0dc14a9e5b4b3f73b"><td class="mdescLeft"> </td><td class="mdescRight">Less than operator. <a href="#a4c11e28de4fdd8b0dc14a9e5b4b3f73b">More...</a><br /></td></tr> <tr class="separator:a4c11e28de4fdd8b0dc14a9e5b4b3f73b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a38ffdded7d246f6a816c91e9cdb80e3e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html#a38ffdded7d246f6a816c91e9cdb80e3e">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:a38ffdded7d246f6a816c91e9cdb80e3e"><td class="mdescLeft"> </td><td class="mdescRight">Equality operator. <a href="#a38ffdded7d246f6a816c91e9cdb80e3e">More...</a><br /></td></tr> <tr class="separator:a38ffdded7d246f6a816c91e9cdb80e3e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a51ac62750a2ed424cbfc4cb1d2cdf744"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html#a51ac62750a2ed424cbfc4cb1d2cdf744">~Key</a> ()</td></tr> <tr class="memdesc:a51ac62750a2ed424cbfc4cb1d2cdf744"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a51ac62750a2ed424cbfc4cb1d2cdf744">More...</a><br /></td></tr> <tr class="separator:a51ac62750a2ed424cbfc4cb1d2cdf744"><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:abff2cc9429eac65fc8078b86269a4f00"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> friend void </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Key.html#abff2cc9429eac65fc8078b86269a4f00">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:abff2cc9429eac65fc8078b86269a4f00"><td class="mdescLeft"> </td><td class="mdescRight">Non-member swap function. <a href="#abff2cc9429eac65fc8078b86269a4f00">More...</a><br /></td></tr> <tr class="separator:abff2cc9429eac65fc8078b86269a4f00"><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#_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#_deprecated000398">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#l00346">346</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="aabc99064ded10502a675d6d91ef2cf32"></a> <h2 class="memtitle"><span class="permalink"><a href="#aabc99064ded10502a675d6d91ef2cf32">◆ </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"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> 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#_internal000465">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#_deprecated000434">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#l00373">373</a> of file <a class="el" href="messageformat2__data__model_8h_source.html">messageformat2_data_model.h</a>.</p> </div> </div> <a id="ad8324c38380ce975cd231e3474ed3e08"></a> <h2 class="memtitle"><span class="permalink"><a href="#ad8324c38380ce975cd231e3474ed3e08">◆ </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"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> 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#_internal000466">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#_deprecated000435">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#l00381">381</a> of file <a class="el" href="messageformat2__data__model_8h_source.html">messageformat2_data_model.h</a>.</p> </div> </div> <a id="a9f44246f87b7b042056d6e9dce2c0787"></a> <h2 class="memtitle"><span class="permalink"><a href="#a9f44246f87b7b042056d6e9dce2c0787">◆ </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"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> 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#_internal000467">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#_deprecated000436">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#l00391">391</a> of file <a class="el" href="messageformat2__data__model_8h_source.html">messageformat2_data_model.h</a>.</p> </div> </div> <a id="a51ac62750a2ed424cbfc4cb1d2cdf744"></a> <h2 class="memtitle"><span class="permalink"><a href="#a51ac62750a2ed424cbfc4cb1d2cdf744">◆ </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 <a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> 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#_internal000472">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#_deprecated000441">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="a061694eede7627edc02a5a32aae5ca5e"></a> <h2 class="memtitle"><span class="permalink"><a href="#a061694eede7627edc02a5a32aae5ca5e">◆ </a></span>asLiteral()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> 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#_internal000464">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#_deprecated000433">Deprecated:</a></b></dt><dd>This API is for technology preview only. </dd></dl> </div> </div> <a id="a60ccc18f447fcc427cbd7ec7332f4bb2"></a> <h2 class="memtitle"><span class="permalink"><a href="#a60ccc18f447fcc427cbd7ec7332f4bb2">◆ </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="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <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#_internal000463">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#_deprecated000432">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#l00356">356</a> of file <a class="el" href="messageformat2__data__model_8h_source.html">messageformat2_data_model.h</a>.</p> </div> </div> <a id="a4c11e28de4fdd8b0dc14a9e5b4b3f73b"></a> <h2 class="memtitle"><span class="permalink"><a href="#a4c11e28de4fdd8b0dc14a9e5b4b3f73b">◆ </a></span>operator<()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> 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#_internal000470">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#_deprecated000439">Deprecated:</a></b></dt><dd>This API is for technology preview only. </dd></dl> </div> </div> <a id="a4e98e381aba8137792feb46f0dc905de"></a> <h2 class="memtitle"><span class="permalink"><a href="#a4e98e381aba8137792feb46f0dc905de">◆ </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="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <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#_internal000469">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#_deprecated000438">Deprecated:</a></b></dt><dd>This API is for technology preview only. </dd></dl> </div> </div> <a id="a38ffdded7d246f6a816c91e9cdb80e3e"></a> <h2 class="memtitle"><span class="permalink"><a href="#a38ffdded7d246f6a816c91e9cdb80e3e">◆ </a></span>operator==()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> 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#_internal000471">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#_deprecated000440">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="abff2cc9429eac65fc8078b86269a4f00"></a> <h2 class="memtitle"><span class="permalink"><a href="#abff2cc9429eac65fc8078b86269a4f00">◆ </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"><a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> friend 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#_internal000468">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#_deprecated000437">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#l00400">400</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