📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 15:45:20
📂
/ (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_1Operand.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::Operand 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_1Operand.html">Operand</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::Operand Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>The <code><a class="el" href="classicu_1_1message2_1_1data__model_1_1Operand.html" title="The Operand class corresponds to the operand nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf . ">Operand</a></code> class corresponds to the <code>operand</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_1Operand.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::Operand:</div> <div class="dyncontent"> <div class="center"> <img src="classicu_1_1message2_1_1data__model_1_1Operand.png" usemap="#icu::message2::data_5Fmodel::Operand_map" alt=""/> <map id="icu::message2::data_5Fmodel::Operand_map" name="icu::message2::data_5Fmodel::Operand_map"> <area href="classicu_1_1UObject.html" title="UObject is the common ICU "boilerplate" class. " alt="icu::UObject" shape="rect" coords="0,56,217,80"/> <area href="classicu_1_1UMemory.html" title="UMemory is the common ICU base class. " alt="icu::UMemory" shape="rect" coords="0,0,217,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:aa96e1461fedb9b49831d6b7c03bf3267"><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_1Operand.html#aa96e1461fedb9b49831d6b7c03bf3267">isVariable</a> () const</td></tr> <tr class="memdesc:aa96e1461fedb9b49831d6b7c03bf3267"><td class="mdescLeft"> </td><td class="mdescRight">Determines if this operand represents a variable. <a href="#aa96e1461fedb9b49831d6b7c03bf3267">More...</a><br /></td></tr> <tr class="separator:aa96e1461fedb9b49831d6b7c03bf3267"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a590c45cc5e4134b3912c11229fbd3c75"><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_1Operand.html#a590c45cc5e4134b3912c11229fbd3c75">isLiteral</a> () const</td></tr> <tr class="memdesc:a590c45cc5e4134b3912c11229fbd3c75"><td class="mdescLeft"> </td><td class="mdescRight">Determines if this operand represents a literal. <a href="#a590c45cc5e4134b3912c11229fbd3c75">More...</a><br /></td></tr> <tr class="separator:a590c45cc5e4134b3912c11229fbd3c75"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1c276f7e8f560bf77c0c653f0401992f"><td class="memItemLeft" align="right" valign="top">virtual <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_1Operand.html#a1c276f7e8f560bf77c0c653f0401992f">isNull</a> () const</td></tr> <tr class="memdesc:a1c276f7e8f560bf77c0c653f0401992f"><td class="mdescLeft"> </td><td class="mdescRight">Determines if this operand is the null operand. <a href="#a1c276f7e8f560bf77c0c653f0401992f">More...</a><br /></td></tr> <tr class="separator:a1c276f7e8f560bf77c0c653f0401992f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2fd157822b8d4d0599ebf1e2af434f17"><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_1UnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Operand.html#a2fd157822b8d4d0599ebf1e2af434f17">asVariable</a> () const</td></tr> <tr class="memdesc:a2fd157822b8d4d0599ebf1e2af434f17"><td class="mdescLeft"> </td><td class="mdescRight">Returns a reference to this operand's variable name. <a href="#a2fd157822b8d4d0599ebf1e2af434f17">More...</a><br /></td></tr> <tr class="separator:a2fd157822b8d4d0599ebf1e2af434f17"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acf05d261dca31f5de33d36a07b39bdd0"><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_1Operand.html#acf05d261dca31f5de33d36a07b39bdd0">asLiteral</a> () const</td></tr> <tr class="memdesc:acf05d261dca31f5de33d36a07b39bdd0"><td class="mdescLeft"> </td><td class="mdescRight">Returns a reference to this operand's literal contents. <a href="#acf05d261dca31f5de33d36a07b39bdd0">More...</a><br /></td></tr> <tr class="separator:acf05d261dca31f5de33d36a07b39bdd0"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad8daaa142455485c53ca4c823ad7fb61"><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_1Operand.html#ad8daaa142455485c53ca4c823ad7fb61">Operand</a> ()</td></tr> <tr class="memdesc:ad8daaa142455485c53ca4c823ad7fb61"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#ad8daaa142455485c53ca4c823ad7fb61">More...</a><br /></td></tr> <tr class="separator:ad8daaa142455485c53ca4c823ad7fb61"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8084811079976b369f6cee3413882466"><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_1Operand.html#a8084811079976b369f6cee3413882466">Operand</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &v)</td></tr> <tr class="memdesc:a8084811079976b369f6cee3413882466"><td class="mdescLeft"> </td><td class="mdescRight">Variable operand constructor. <a href="#a8084811079976b369f6cee3413882466">More...</a><br /></td></tr> <tr class="separator:a8084811079976b369f6cee3413882466"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aaca32721e173898d63df2647e6cdf441"><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_1Operand.html#aaca32721e173898d63df2647e6cdf441">Operand</a> (const <a class="el" href="classicu_1_1message2_1_1data__model_1_1Literal.html">Literal</a> &l)</td></tr> <tr class="memdesc:aaca32721e173898d63df2647e6cdf441"><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> operand constructor. <a href="#aaca32721e173898d63df2647e6cdf441">More...</a><br /></td></tr> <tr class="separator:aaca32721e173898d63df2647e6cdf441"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa1721ee182a48bf4f0f555604d292496"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1message2_1_1data__model_1_1Operand.html">Operand</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Operand.html#aa1721ee182a48bf4f0f555604d292496">operator=</a> (<a class="el" href="classicu_1_1message2_1_1data__model_1_1Operand.html">Operand</a>) noexcept</td></tr> <tr class="memdesc:aa1721ee182a48bf4f0f555604d292496"><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <a href="#aa1721ee182a48bf4f0f555604d292496">More...</a><br /></td></tr> <tr class="separator:aa1721ee182a48bf4f0f555604d292496"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a400ff99636f4141dc69b9e500161000d"><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_1Operand.html#a400ff99636f4141dc69b9e500161000d">Operand</a> (const <a class="el" href="classicu_1_1message2_1_1data__model_1_1Operand.html">Operand</a> &)</td></tr> <tr class="memdesc:a400ff99636f4141dc69b9e500161000d"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#a400ff99636f4141dc69b9e500161000d">More...</a><br /></td></tr> <tr class="separator:a400ff99636f4141dc69b9e500161000d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad3df8ac8fb3a98b60fb48a8f139db91c"><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_1Operand.html#ad3df8ac8fb3a98b60fb48a8f139db91c">~Operand</a> ()</td></tr> <tr class="memdesc:ad3df8ac8fb3a98b60fb48a8f139db91c"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ad3df8ac8fb3a98b60fb48a8f139db91c">More...</a><br /></td></tr> <tr class="separator:ad3df8ac8fb3a98b60fb48a8f139db91c"><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:a6d2981d25e9e4f8d4fa90df733745877"><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_1Operand.html#a6d2981d25e9e4f8d4fa90df733745877">swap</a> (<a class="el" href="classicu_1_1message2_1_1data__model_1_1Operand.html">Operand</a> &o1, <a class="el" href="classicu_1_1message2_1_1data__model_1_1Operand.html">Operand</a> &o2) noexcept</td></tr> <tr class="memdesc:a6d2981d25e9e4f8d4fa90df733745877"><td class="mdescLeft"> </td><td class="mdescRight">Non-member swap function. <a href="#a6d2981d25e9e4f8d4fa90df733745877">More...</a><br /></td></tr> <tr class="separator:a6d2981d25e9e4f8d4fa90df733745877"><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_1Operand.html" title="The Operand class corresponds to the operand nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf . ">Operand</a></code> class corresponds to the <code>operand</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 represents a <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> | VariableRef</code> – see the <code>operand?</code> field of the <code>FunctionRef</code> interface defined at: <a href="https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#expressions">https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#expressions</a> with the difference that it can also represent a null operand (the absent operand in an <code>annotation</code> with no operand).</p> <p><code><a class="el" href="classicu_1_1message2_1_1data__model_1_1Operand.html" title="The Operand class corresponds to the operand nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf . ">Operand</a></code> is immutable and is copyable and movable.</p> <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#_deprecated000397">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#l00215">215</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="ad8daaa142455485c53ca4c823ad7fb61"></a> <h2 class="memtitle"><span class="permalink"><a href="#ad8daaa142455485c53ca4c823ad7fb61">◆ </a></span>Operand() <span class="overload">[1/4]</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::Operand::Operand </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>Default constructor. </p> <p>Creates a null <a class="el" href="classicu_1_1message2_1_1data__model_1_1Operand.html" title="The Operand class corresponds to the operand nonterminal in the MessageFormat 2 grammar, https://github.com/unicode-org/message-format-wg/blob/main/spec/message.abnf . ">Operand</a>.</p> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000456">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> <p class="definition">Definition at line <a class="el" href="messageformat2__data__model_8h_source.html#l00271">271</a> of file <a class="el" href="messageformat2__data__model_8h_source.html">messageformat2_data_model.h</a>.</p> </div> </div> <a id="a8084811079976b369f6cee3413882466"></a> <h2 class="memtitle"><span class="permalink"><a href="#a8084811079976b369f6cee3413882466">◆ </a></span>Operand() <span class="overload">[2/4]</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::Operand::Operand </td> <td>(</td> <td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>v</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>Variable operand constructor. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">v</td><td>The variable name; an operand corresponding to a reference to <code>v</code> is returned.</td></tr> </table> </dd> </dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000457">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> <p class="definition">Definition at line <a class="el" href="messageformat2__data__model_8h_source.html#l00281">281</a> of file <a class="el" href="messageformat2__data__model_8h_source.html">messageformat2_data_model.h</a>.</p> </div> </div> <a id="aaca32721e173898d63df2647e6cdf441"></a> <h2 class="memtitle"><span class="permalink"><a href="#aaca32721e173898d63df2647e6cdf441">◆ </a></span>Operand() <span class="overload">[3/4]</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::Operand::Operand </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>l</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> operand constructor. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">l</td><td>The literal to use for this operand; an operand corresponding to <code>l</code> is returned.</td></tr> </table> </dd> </dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000458">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> <p class="definition">Definition at line <a class="el" href="messageformat2__data__model_8h_source.html#l00291">291</a> of file <a class="el" href="messageformat2__data__model_8h_source.html">messageformat2_data_model.h</a>.</p> </div> </div> <a id="a400ff99636f4141dc69b9e500161000d"></a> <h2 class="memtitle"><span class="permalink"><a href="#a400ff99636f4141dc69b9e500161000d">◆ </a></span>Operand() <span class="overload">[4/4]</span></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> icu::message2::data_model::Operand::Operand </td> <td>(</td> <td class="paramtype">const <a class="el" href="classicu_1_1message2_1_1data__model_1_1Operand.html">Operand</a> & </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Copy constructor. </p> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000461">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#_deprecated000430">Deprecated:</a></b></dt><dd>This API is for technology preview only. </dd></dl> </div> </div> <a id="ad3df8ac8fb3a98b60fb48a8f139db91c"></a> <h2 class="memtitle"><span class="permalink"><a href="#ad3df8ac8fb3a98b60fb48a8f139db91c">◆ </a></span>~Operand()</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::Operand::~Operand </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#_internal000462">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#_deprecated000431">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="acf05d261dca31f5de33d36a07b39bdd0"></a> <h2 class="memtitle"><span class="permalink"><a href="#acf05d261dca31f5de33d36a07b39bdd0">◆ </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::Operand::asLiteral </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns a reference to this operand's literal contents. </p> <p>Precondition: <a class="el" href="classicu_1_1message2_1_1data__model_1_1Operand.html#a590c45cc5e4134b3912c11229fbd3c75" title="Determines if this operand represents a literal. ">isLiteral()</a></p> <dl class="section return"><dt>Returns</dt><dd>A reference to the literal</dd></dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000455">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="a2fd157822b8d4d0599ebf1e2af434f17"></a> <h2 class="memtitle"><span class="permalink"><a href="#a2fd157822b8d4d0599ebf1e2af434f17">◆ </a></span>asVariable()</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_1UnicodeString.html">UnicodeString</a>& icu::message2::data_model::Operand::asVariable </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns a reference to this operand's variable name. </p> <p>Precondition: <a class="el" href="classicu_1_1message2_1_1data__model_1_1Operand.html#aa96e1461fedb9b49831d6b7c03bf3267" title="Determines if this operand represents a variable. ">isVariable()</a></p> <dl class="section return"><dt>Returns</dt><dd>A reference to the name of the variable</dd></dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000454">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> </div> </div> <a id="a590c45cc5e4134b3912c11229fbd3c75"></a> <h2 class="memtitle"><span class="permalink"><a href="#a590c45cc5e4134b3912c11229fbd3c75">◆ </a></span>isLiteral()</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> <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> icu::message2::data_model::Operand::isLiteral </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Determines if this operand represents a literal. </p> <dl class="section return"><dt>Returns</dt><dd>True if and only if the operand is a literal.</dd></dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000452">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> </div> </div> <a id="a1c276f7e8f560bf77c0c653f0401992f"></a> <h2 class="memtitle"><span class="permalink"><a href="#a1c276f7e8f560bf77c0c653f0401992f">◆ </a></span>isNull()</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> <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> icu::message2::data_model::Operand::isNull </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">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Determines if this operand is the null operand. </p> <dl class="section return"><dt>Returns</dt><dd>True if and only if the operand is the null operand.</dd></dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000453">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> </div> </div> <a id="aa96e1461fedb9b49831d6b7c03bf3267"></a> <h2 class="memtitle"><span class="permalink"><a href="#aa96e1461fedb9b49831d6b7c03bf3267">◆ </a></span>isVariable()</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> <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> icu::message2::data_model::Operand::isVariable </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Determines if this operand represents a variable. </p> <dl class="section return"><dt>Returns</dt><dd>True if and only if the operand is a variable.</dd></dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000451">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> </div> </div> <a id="aa1721ee182a48bf4f0f555604d292496"></a> <h2 class="memtitle"><span class="permalink"><a href="#aa1721ee182a48bf4f0f555604d292496">◆ </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">virtual <a class="el" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a">U_I18N_API</a> <a class="el" href="classicu_1_1message2_1_1data__model_1_1Operand.html">Operand</a>& icu::message2::data_model::Operand::operator= </td> <td>(</td> <td class="paramtype"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Operand.html">Operand</a> </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 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#_internal000460">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#_deprecated000429">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="a6d2981d25e9e4f8d4fa90df733745877"></a> <h2 class="memtitle"><span class="permalink"><a href="#a6d2981d25e9e4f8d4fa90df733745877">◆ </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_1Operand.html">Operand</a> & </td> <td class="paramname"><em>o1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classicu_1_1message2_1_1data__model_1_1Operand.html">Operand</a> & </td> <td class="paramname"><em>o2</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">o1</td><td>will get o2's contents </td></tr> <tr><td class="paramname">o2</td><td>will get o1's contents</td></tr> </table> </dd> </dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000459">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#_deprecated000428">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#l00300">300</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