Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-updates > by-pkgid > 67d6f1fcdf59eeb6f1363fc33c40091c > files > 225

icu-doc-53.1-12.6.mga5.noarch.rpm

<!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.6"/>
<title>ICU 53.1: icu::PluralFormat 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/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ICU 53.1
   &#160;<span id="projectnumber">53.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(12)"><span class="SelectionMark">&#160;</span>Pages</a></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"><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Data Fields</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">icu::PluralFormat Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="plurfmt_8h_source.html">plurfmt.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for icu::PluralFormat:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classicu_1_1PluralFormat.png" usemap="#icu::PluralFormat_map" alt=""/>
  <map id="icu::PluralFormat_map" name="icu::PluralFormat_map">
<area href="classicu_1_1Format.html" title="Base class for all formats. " alt="icu::Format" shape="rect" coords="0,112,107,136"/>
<area href="classicu_1_1UObject.html" title="UObject is the common ICU &quot;boilerplate&quot; class. " alt="icu::UObject" shape="rect" coords="0,56,107,80"/>
<area href="classicu_1_1UMemory.html" title="UMemory is the common ICU base class. " alt="icu::UMemory" shape="rect" coords="0,0,107,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat_1_1PluralSelector.html">PluralSelector</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat_1_1PluralSelectorAdapter.html">PluralSelectorAdapter</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><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:a86d9ecf09311766e18c4fc410d6d93a1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a86d9ecf09311766e18c4fc410d6d93a1">PluralFormat</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a86d9ecf09311766e18c4fc410d6d93a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new cardinal-number <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for the default locale.  <a href="#a86d9ecf09311766e18c4fc410d6d93a1">More...</a><br/></td></tr>
<tr class="separator:a86d9ecf09311766e18c4fc410d6d93a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac161ae3b79374c79c0446407031fc5b6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#ac161ae3b79374c79c0446407031fc5b6">PluralFormat</a> (const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;locale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:ac161ae3b79374c79c0446407031fc5b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new cardinal-number <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for a given locale.  <a href="#ac161ae3b79374c79c0446407031fc5b6">More...</a><br/></td></tr>
<tr class="separator:ac161ae3b79374c79c0446407031fc5b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f2f556acc24d4198f7035ccdf3af0a6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a4f2f556acc24d4198f7035ccdf3af0a6">PluralFormat</a> (const <a class="el" href="classicu_1_1PluralRules.html">PluralRules</a> &amp;rules, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a4f2f556acc24d4198f7035ccdf3af0a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for a given set of rules.  <a href="#a4f2f556acc24d4198f7035ccdf3af0a6">More...</a><br/></td></tr>
<tr class="separator:a4f2f556acc24d4198f7035ccdf3af0a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:addad4d8e8c029ad6991a72ee369088ed"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#addad4d8e8c029ad6991a72ee369088ed">PluralFormat</a> (const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;locale, const <a class="el" href="classicu_1_1PluralRules.html">PluralRules</a> &amp;rules, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:addad4d8e8c029ad6991a72ee369088ed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for a given set of rules.  <a href="#addad4d8e8c029ad6991a72ee369088ed">More...</a><br/></td></tr>
<tr class="separator:addad4d8e8c029ad6991a72ee369088ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64b9cbab9ea35dcd390a2864f0ff91c3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a64b9cbab9ea35dcd390a2864f0ff91c3">PluralFormat</a> (const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;locale, <a class="el" href="upluralrules_8h.html#afceec9f2dee10dbf3ca0d694f66d5d3c">UPluralType</a> type, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a64b9cbab9ea35dcd390a2864f0ff91c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for the plural type.  <a href="#a64b9cbab9ea35dcd390a2864f0ff91c3">More...</a><br/></td></tr>
<tr class="separator:a64b9cbab9ea35dcd390a2864f0ff91c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4183314946db447e862a4e73fb770b6c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a4183314946db447e862a4e73fb770b6c">PluralFormat</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a4183314946db447e862a4e73fb770b6c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new cardinal-number <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for a given pattern string.  <a href="#a4183314946db447e862a4e73fb770b6c">More...</a><br/></td></tr>
<tr class="separator:a4183314946db447e862a4e73fb770b6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16dd83785e540b0cebec2a830732f7e2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a16dd83785e540b0cebec2a830732f7e2">PluralFormat</a> (const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;locale, const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a16dd83785e540b0cebec2a830732f7e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new cardinal-number <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for a given pattern string and locale.  <a href="#a16dd83785e540b0cebec2a830732f7e2">More...</a><br/></td></tr>
<tr class="separator:a16dd83785e540b0cebec2a830732f7e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7913182ef967a8ba8b6353c5b5dfd512"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a7913182ef967a8ba8b6353c5b5dfd512">PluralFormat</a> (const <a class="el" href="classicu_1_1PluralRules.html">PluralRules</a> &amp;rules, const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a7913182ef967a8ba8b6353c5b5dfd512"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for a given set of rules, a pattern and a locale.  <a href="#a7913182ef967a8ba8b6353c5b5dfd512">More...</a><br/></td></tr>
<tr class="separator:a7913182ef967a8ba8b6353c5b5dfd512"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bbd2cfe5f22e7118e8e1a7fd91f0787"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a9bbd2cfe5f22e7118e8e1a7fd91f0787">PluralFormat</a> (const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;locale, const <a class="el" href="classicu_1_1PluralRules.html">PluralRules</a> &amp;rules, const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a9bbd2cfe5f22e7118e8e1a7fd91f0787"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for a given set of rules, a pattern and a locale.  <a href="#a9bbd2cfe5f22e7118e8e1a7fd91f0787">More...</a><br/></td></tr>
<tr class="separator:a9bbd2cfe5f22e7118e8e1a7fd91f0787"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ad527709ef855c4ce5f04c668b326a5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a0ad527709ef855c4ce5f04c668b326a5">PluralFormat</a> (const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;locale, <a class="el" href="upluralrules_8h.html#afceec9f2dee10dbf3ca0d694f66d5d3c">UPluralType</a> type, const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a0ad527709ef855c4ce5f04c668b326a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for a plural type, a pattern and a locale.  <a href="#a0ad527709ef855c4ce5f04c668b326a5">More...</a><br/></td></tr>
<tr class="separator:a0ad527709ef855c4ce5f04c668b326a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2d7c5e12b281b008b0a64b8c569c6a7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#ab2d7c5e12b281b008b0a64b8c569c6a7">PluralFormat</a> (const <a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a> &amp;other)</td></tr>
<tr class="memdesc:ab2d7c5e12b281b008b0a64b8c569c6a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">copy constructor.  <a href="#ab2d7c5e12b281b008b0a64b8c569c6a7">More...</a><br/></td></tr>
<tr class="separator:ab2d7c5e12b281b008b0a64b8c569c6a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee2d3ee214c26aea688b3904e5e57e69"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#aee2d3ee214c26aea688b3904e5e57e69">~PluralFormat</a> ()</td></tr>
<tr class="memdesc:aee2d3ee214c26aea688b3904e5e57e69"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#aee2d3ee214c26aea688b3904e5e57e69">More...</a><br/></td></tr>
<tr class="separator:aee2d3ee214c26aea688b3904e5e57e69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e32005a7a3bda8417d363dccf98811a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a4e32005a7a3bda8417d363dccf98811a">applyPattern</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a4e32005a7a3bda8417d363dccf98811a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the pattern used by this plural format.  <a href="#a4e32005a7a3bda8417d363dccf98811a">More...</a><br/></td></tr>
<tr class="separator:a4e32005a7a3bda8417d363dccf98811a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ef08bd30c176be42acae50138541929"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a6ef08bd30c176be42acae50138541929">format</a> (int32_t number, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="memdesc:a6ef08bd30c176be42acae50138541929"><td class="mdescLeft">&#160;</td><td class="mdescRight">Formats a plural message for a given number.  <a href="#a6ef08bd30c176be42acae50138541929">More...</a><br/></td></tr>
<tr class="separator:a6ef08bd30c176be42acae50138541929"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0db2407737b3d24a30a128365e06984"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#aa0db2407737b3d24a30a128365e06984">format</a> (double number, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="memdesc:aa0db2407737b3d24a30a128365e06984"><td class="mdescLeft">&#160;</td><td class="mdescRight">Formats a plural message for a given number.  <a href="#aa0db2407737b3d24a30a128365e06984">More...</a><br/></td></tr>
<tr class="separator:aa0db2407737b3d24a30a128365e06984"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c2b11284acc3947175fa0283c51eb77"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a3c2b11284acc3947175fa0283c51eb77">format</a> (int32_t number, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classicu_1_1FieldPosition.html">FieldPosition</a> &amp;pos, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="memdesc:a3c2b11284acc3947175fa0283c51eb77"><td class="mdescLeft">&#160;</td><td class="mdescRight">Formats a plural message for a given number.  <a href="#a3c2b11284acc3947175fa0283c51eb77">More...</a><br/></td></tr>
<tr class="separator:a3c2b11284acc3947175fa0283c51eb77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ebc6337d68880de0d372071618aa259"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a6ebc6337d68880de0d372071618aa259">format</a> (double number, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classicu_1_1FieldPosition.html">FieldPosition</a> &amp;pos, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="memdesc:a6ebc6337d68880de0d372071618aa259"><td class="mdescLeft">&#160;</td><td class="mdescRight">Formats a plural message for a given number.  <a href="#a6ebc6337d68880de0d372071618aa259">More...</a><br/></td></tr>
<tr class="separator:a6ebc6337d68880de0d372071618aa259"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab14888c39ca635edf280752a710abdc1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#ab14888c39ca635edf280752a710abdc1">setLocale</a> (const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;locale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:ab14888c39ca635edf280752a710abdc1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the locale used by this <code>PluraFormat</code> object.  <a href="#ab14888c39ca635edf280752a710abdc1">More...</a><br/></td></tr>
<tr class="separator:ab14888c39ca635edf280752a710abdc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01dc06bd7b9ffadb8049a79069cea110"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a01dc06bd7b9ffadb8049a79069cea110">setNumberFormat</a> (const <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> *<a class="el" href="classicu_1_1PluralFormat.html#a6ef08bd30c176be42acae50138541929">format</a>, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="memdesc:a01dc06bd7b9ffadb8049a79069cea110"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the number format used by this formatter.  <a href="#a01dc06bd7b9ffadb8049a79069cea110">More...</a><br/></td></tr>
<tr class="separator:a01dc06bd7b9ffadb8049a79069cea110"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2df7d4b8b4b4d33b8c2919a4d0f561f0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a2df7d4b8b4b4d33b8c2919a4d0f561f0">operator=</a> (const <a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a> &amp;other)</td></tr>
<tr class="memdesc:a2df7d4b8b4b4d33b8c2919a4d0f561f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment operator.  <a href="#a2df7d4b8b4b4d33b8c2919a4d0f561f0">More...</a><br/></td></tr>
<tr class="separator:a2df7d4b8b4b4d33b8c2919a4d0f561f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1aec2634099cc21c235ea5243b4bc2cf"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a1aec2634099cc21c235ea5243b4bc2cf">operator==</a> (const <a class="el" href="classicu_1_1Format.html">Format</a> &amp;other) const </td></tr>
<tr class="memdesc:a1aec2634099cc21c235ea5243b4bc2cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return true if another object is semantically equal to this one.  <a href="#a1aec2634099cc21c235ea5243b4bc2cf">More...</a><br/></td></tr>
<tr class="separator:a1aec2634099cc21c235ea5243b4bc2cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7cd165e931a9070a755027664d3a577a"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a7cd165e931a9070a755027664d3a577a">operator!=</a> (const <a class="el" href="classicu_1_1Format.html">Format</a> &amp;other) const </td></tr>
<tr class="memdesc:a7cd165e931a9070a755027664d3a577a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return true if another object is semantically unequal to this one.  <a href="#a7cd165e931a9070a755027664d3a577a">More...</a><br/></td></tr>
<tr class="separator:a7cd165e931a9070a755027664d3a577a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af254f7c8e92992877bb8717641478d68"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classicu_1_1Format.html">Format</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#af254f7c8e92992877bb8717641478d68">clone</a> (void) const </td></tr>
<tr class="memdesc:af254f7c8e92992877bb8717641478d68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clones this <a class="el" href="classicu_1_1Format.html" title="Base class for all formats. ">Format</a> object polymorphically.  <a href="#af254f7c8e92992877bb8717641478d68">More...</a><br/></td></tr>
<tr class="separator:af254f7c8e92992877bb8717641478d68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd9d35881d35dc8db644779476aa0e26"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#afd9d35881d35dc8db644779476aa0e26">format</a> (const <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &amp;obj, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classicu_1_1FieldPosition.html">FieldPosition</a> &amp;pos, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="memdesc:afd9d35881d35dc8db644779476aa0e26"><td class="mdescLeft">&#160;</td><td class="mdescRight">Formats a plural message for a number taken from a <a class="el" href="classicu_1_1Formattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting. ">Formattable</a> object.  <a href="#afd9d35881d35dc8db644779476aa0e26">More...</a><br/></td></tr>
<tr class="separator:afd9d35881d35dc8db644779476aa0e26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b5078565321a1b178bebb72845940b1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a9b5078565321a1b178bebb72845940b1">toPattern</a> (<a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;appendTo)</td></tr>
<tr class="memdesc:a9b5078565321a1b178bebb72845940b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the pattern from <a class="el" href="classicu_1_1PluralFormat.html#a4e32005a7a3bda8417d363dccf98811a" title="Sets the pattern used by this plural format. ">applyPattern()</a> or constructor().  <a href="#a9b5078565321a1b178bebb72845940b1">More...</a><br/></td></tr>
<tr class="separator:a9b5078565321a1b178bebb72845940b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57dab6a7b69e3eb73062501db7fa1276"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a57dab6a7b69e3eb73062501db7fa1276">parseObject</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;source, <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &amp;result, <a class="el" href="classicu_1_1ParsePosition.html">ParsePosition</a> &amp;parse_pos) const </td></tr>
<tr class="memdesc:a57dab6a7b69e3eb73062501db7fa1276"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method is not yet supported by <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code>.  <a href="#a57dab6a7b69e3eb73062501db7fa1276">More...</a><br/></td></tr>
<tr class="separator:a57dab6a7b69e3eb73062501db7fa1276"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2580094ed932ebbf91992d72b4685d26"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="uobject_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a2580094ed932ebbf91992d72b4685d26">getDynamicClassID</a> () const </td></tr>
<tr class="memdesc:a2580094ed932ebbf91992d72b4685d26"><td class="mdescLeft">&#160;</td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for the actual class.  <a href="#a2580094ed932ebbf91992d72b4685d26">More...</a><br/></td></tr>
<tr class="separator:a2580094ed932ebbf91992d72b4685d26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22e8d6d37c4f2fb5761dce97cd09e03d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a22e8d6d37c4f2fb5761dce97cd09e03d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> (const <a class="el" href="classicu_1_1PluralRules.html">PluralRules</a> *rules, <a class="el" href="upluralrules_8h.html#afceec9f2dee10dbf3ca0d694f66d5d3c">UPluralType</a> type, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr class="separator:a22e8d6d37c4f2fb5761dce97cd09e03d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cec9f8579702e799c6161d026552c4f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#a8cec9f8579702e799c6161d026552c4f">copyObjects</a> (const <a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a> &amp;other)</td></tr>
<tr class="memdesc:a8cec9f8579702e799c6161d026552c4f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies dynamically allocated values (pointer fields).  <a href="#a8cec9f8579702e799c6161d026552c4f">More...</a><br/></td></tr>
<tr class="separator:a8cec9f8579702e799c6161d026552c4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa40330469be31252fd830617f65ddc39"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#aa40330469be31252fd830617f65ddc39">format</a> (const <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &amp;numberObject, double number, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classicu_1_1FieldPosition.html">FieldPosition</a> &amp;pos, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="separator:aa40330469be31252fd830617f65ddc39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classicu_1_1Format"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classicu_1_1Format')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classicu_1_1Format.html">icu::Format</a></td></tr>
<tr class="memitem:ab5b0d091d165c5576af62b3ee246058a inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#ab5b0d091d165c5576af62b3ee246058a">~Format</a> ()</td></tr>
<tr class="memdesc:ab5b0d091d165c5576af62b3ee246058a inherit pub_methods_classicu_1_1Format"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#ab5b0d091d165c5576af62b3ee246058a">More...</a><br/></td></tr>
<tr class="separator:ab5b0d091d165c5576af62b3ee246058a inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6805569ed12cf68e0e8359dadcbe9b1c inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a6805569ed12cf68e0e8359dadcbe9b1c">operator!=</a> (const <a class="el" href="classicu_1_1Format.html">Format</a> &amp;other) const </td></tr>
<tr class="memdesc:a6805569ed12cf68e0e8359dadcbe9b1c inherit pub_methods_classicu_1_1Format"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return true if the given <a class="el" href="classicu_1_1Format.html" title="Base class for all formats. ">Format</a> objects are not semantically equal.  <a href="#a6805569ed12cf68e0e8359dadcbe9b1c">More...</a><br/></td></tr>
<tr class="separator:a6805569ed12cf68e0e8359dadcbe9b1c inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab510bded8f13465d98b950db03f15297 inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#ab510bded8f13465d98b950db03f15297">format</a> (const <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &amp;obj, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="memdesc:ab510bded8f13465d98b950db03f15297 inherit pub_methods_classicu_1_1Format"><td class="mdescLeft">&#160;</td><td class="mdescRight">Formats an object to produce a string.  <a href="#ab510bded8f13465d98b950db03f15297">More...</a><br/></td></tr>
<tr class="separator:ab510bded8f13465d98b950db03f15297 inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a24241eabda236878b4f93395ca5218 inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a3a24241eabda236878b4f93395ca5218">format</a> (const <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &amp;obj, <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;appendTo, <a class="el" href="classicu_1_1FieldPositionIterator.html">FieldPositionIterator</a> *posIter, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="memdesc:a3a24241eabda236878b4f93395ca5218 inherit pub_methods_classicu_1_1Format"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classicu_1_1Format.html" title="Base class for all formats. ">Format</a> an object to produce a string.  <a href="#a3a24241eabda236878b4f93395ca5218">More...</a><br/></td></tr>
<tr class="separator:a3a24241eabda236878b4f93395ca5218 inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14835811eb14a1826b8529704de07bbf inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a14835811eb14a1826b8529704de07bbf">parseObject</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;source, <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &amp;result, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="memdesc:a14835811eb14a1826b8529704de07bbf inherit pub_methods_classicu_1_1Format"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parses a string to produce an object.  <a href="#a14835811eb14a1826b8529704de07bbf">More...</a><br/></td></tr>
<tr class="separator:a14835811eb14a1826b8529704de07bbf inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5064d4b46b3f5882fb339960089bf87e inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1Locale.html">Locale</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a5064d4b46b3f5882fb339960089bf87e">getLocale</a> (<a class="el" href="uloc_8h.html#adf053345d343f8d82ae080f7a5871f34">ULocDataLocaleType</a> type, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="memdesc:a5064d4b46b3f5882fb339960089bf87e inherit pub_methods_classicu_1_1Format"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the locale for this format object.  <a href="#a5064d4b46b3f5882fb339960089bf87e">More...</a><br/></td></tr>
<tr class="separator:a5064d4b46b3f5882fb339960089bf87e inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b0f21f3e3f6cc3ed196af5e6559b421 inherit pub_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a1b0f21f3e3f6cc3ed196af5e6559b421">getLocaleID</a> (<a class="el" href="uloc_8h.html#adf053345d343f8d82ae080f7a5871f34">ULocDataLocaleType</a> type, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr class="memdesc:a1b0f21f3e3f6cc3ed196af5e6559b421 inherit pub_methods_classicu_1_1Format"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the locale for this format object.  <a href="#a1b0f21f3e3f6cc3ed196af5e6559b421">More...</a><br/></td></tr>
<tr class="separator:a1b0f21f3e3f6cc3ed196af5e6559b421 inherit pub_methods_classicu_1_1Format"><td class="memSeparator" colspan="2">&#160;</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="-"/>&#160;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&#160;</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">&#160;</td><td class="mdescRight">Destructor.  <a href="#af10026497704f510d3d1f2eff50acb18">More...</a><br/></td></tr>
<tr class="separator:af10026497704f510d3d1f2eff50acb18 inherit pub_methods_classicu_1_1UObject"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ade2abfc3db882d5e0137d1ddae785f5d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="uobject_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#ade2abfc3db882d5e0137d1ddae785f5d">getStaticClassID</a> (void)</td></tr>
<tr class="memdesc:ade2abfc3db882d5e0137d1ddae785f5d"><td class="mdescLeft">&#160;</td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for this class.  <a href="#ade2abfc3db882d5e0137d1ddae785f5d">More...</a><br/></td></tr>
<tr class="separator:ade2abfc3db882d5e0137d1ddae785f5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae37a2b9cffba478b144eed689e4c602e"><td class="memItemLeft" align="right" valign="top">static int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1PluralFormat.html#ae37a2b9cffba478b144eed689e4c602e">findSubMessage</a> (const <a class="el" href="classicu_1_1MessagePattern.html">MessagePattern</a> &amp;pattern, int32_t partIndex, const <a class="el" href="classicu_1_1PluralFormat_1_1PluralSelector.html">PluralSelector</a> &amp;selector, void *context, double number, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;ec)</td></tr>
<tr class="memdesc:ae37a2b9cffba478b144eed689e4c602e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Finds the <a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a> sub-message for the given number, or the "other" sub-message.  <a href="#ae37a2b9cffba478b144eed689e4c602e">More...</a><br/></td></tr>
<tr class="separator:ae37a2b9cffba478b144eed689e4c602e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a7d1b312d72be3ad78a3f63debad36a41"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7d1b312d72be3ad78a3f63debad36a41"></a>
<a class="el" href="classicu_1_1Locale.html">Locale</a>&#160;</td><td class="memItemRight" valign="bottom"><b>locale</b></td></tr>
<tr class="separator:a7d1b312d72be3ad78a3f63debad36a41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0de7c08ab9e51d097dcd095810cd412"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac0de7c08ab9e51d097dcd095810cd412"></a>
<a class="el" href="classicu_1_1MessagePattern.html">MessagePattern</a>&#160;</td><td class="memItemRight" valign="bottom"><b>msgPattern</b></td></tr>
<tr class="separator:ac0de7c08ab9e51d097dcd095810cd412"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f7e3c1986d202106806f24396688a42"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7f7e3c1986d202106806f24396688a42"></a>
<a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>numberFormat</b></td></tr>
<tr class="separator:a7f7e3c1986d202106806f24396688a42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0eb3f440cbe8ffc214118ddfe96ccbb1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0eb3f440cbe8ffc214118ddfe96ccbb1"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>offset</b></td></tr>
<tr class="separator:a0eb3f440cbe8ffc214118ddfe96ccbb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7156248b4a00d4c63786783789d9a98e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7156248b4a00d4c63786783789d9a98e"></a>
<a class="el" href="classicu_1_1PluralFormat_1_1PluralSelectorAdapter.html">PluralSelectorAdapter</a>&#160;</td><td class="memItemRight" valign="bottom"><b>pluralRulesWrapper</b></td></tr>
<tr class="separator:a7156248b4a00d4c63786783789d9a98e"><td class="memSeparator" colspan="2">&#160;</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:a878637013842f94d9e8f7eb5ec0411b2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a878637013842f94d9e8f7eb5ec0411b2"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>MessageFormat</b></td></tr>
<tr class="separator:a878637013842f94d9e8f7eb5ec0411b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_classicu_1_1Format"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classicu_1_1Format')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classicu_1_1Format.html">icu::Format</a></td></tr>
<tr class="memitem:a9c316525df8bdb422d3e73f0eb9a2a32 inherit pro_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a9c316525df8bdb422d3e73f0eb9a2a32">setLocaleIDs</a> (const char *valid, const char *actual)</td></tr>
<tr class="separator:a9c316525df8bdb422d3e73f0eb9a2a32 inherit pro_methods_classicu_1_1Format"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e673e9e040598bace20c25a2261b845 inherit pro_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a0e673e9e040598bace20c25a2261b845">Format</a> ()</td></tr>
<tr class="memdesc:a0e673e9e040598bace20c25a2261b845 inherit pro_methods_classicu_1_1Format"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor for subclass use only.  <a href="#a0e673e9e040598bace20c25a2261b845">More...</a><br/></td></tr>
<tr class="separator:a0e673e9e040598bace20c25a2261b845 inherit pro_methods_classicu_1_1Format"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2747bab62f7164f3c1556c044502df6e inherit pro_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a2747bab62f7164f3c1556c044502df6e">Format</a> (const <a class="el" href="classicu_1_1Format.html">Format</a> &amp;)</td></tr>
<tr class="separator:a2747bab62f7164f3c1556c044502df6e inherit pro_methods_classicu_1_1Format"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e4a4f6e5eedfe8d949e9307191a3afc inherit pro_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classicu_1_1Format.html">Format</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a6e4a4f6e5eedfe8d949e9307191a3afc">operator=</a> (const <a class="el" href="classicu_1_1Format.html">Format</a> &amp;)</td></tr>
<tr class="separator:a6e4a4f6e5eedfe8d949e9307191a3afc inherit pro_methods_classicu_1_1Format"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_static_methods_classicu_1_1Format"><td colspan="2" onclick="javascript:toggleInherit('pro_static_methods_classicu_1_1Format')"><img src="closed.png" alt="-"/>&#160;Static Protected Member Functions inherited from <a class="el" href="classicu_1_1Format.html">icu::Format</a></td></tr>
<tr class="memitem:a4667230f833245c55ba081c163d8bb71 inherit pro_static_methods_classicu_1_1Format"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classicu_1_1Format.html#a4667230f833245c55ba081c163d8bb71">syntaxError</a> (const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;pattern, int32_t pos, <a class="el" href="structUParseError.html">UParseError</a> &amp;parseError)</td></tr>
<tr class="memdesc:a4667230f833245c55ba081c163d8bb71 inherit pro_static_methods_classicu_1_1Format"><td class="mdescLeft">&#160;</td><td class="mdescRight">Simple function for initializing a <a class="el" href="structUParseError.html" title="A UParseError struct is used to returned detailed information about parsing errors. ">UParseError</a> from a <a class="el" href="classicu_1_1UnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>.  <a href="#a4667230f833245c55ba081c163d8bb71">More...</a><br/></td></tr>
<tr class="separator:a4667230f833245c55ba081c163d8bb71 inherit pro_static_methods_classicu_1_1Format"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> supports the creation of internationalized messages with plural inflection. It is based on <em>plural selection</em>, i.e. the caller specifies messages for each plural case that can appear in the user's language and the <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> selects the appropriate message based on the number. </p>
<h4>The Problem of Plural Forms in Internationalized Messages</h4>
<p>Different languages have different ways to inflect plurals. Creating internationalized messages that include plural forms is only feasible when the framework is able to handle plural forms of <em>all</em> languages correctly. <code><a class="el" href="classicu_1_1ChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges. ">ChoiceFormat</a></code> doesn't handle this well, because it attaches a number interval to each message and selects the message whose interval contains a given number. This can only handle a finite number of intervals. But in some languages, like Polish, one plural case applies to infinitely many intervals (e.g., the plural case applies to numbers ending with 2, 3, or 4 except those ending with 12, 13, or 14). Thus <code><a class="el" href="classicu_1_1ChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and strings for those ranges. ">ChoiceFormat</a></code> is not adequate. </p>
<p><code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> deals with this by breaking the problem into two parts: </p>
<ul>
<li>
It uses <code><a class="el" href="classicu_1_1PluralRules.html" title="Defines rules for mapping non-negative numeric values onto a small set of keywords. ">PluralRules</a></code> that can define more complex conditions for a plural case than just a single interval. These plural rules define both what plural cases exist in a language, and to which numbers these cases apply. </li>
<li>
It provides predefined plural rules for many languages. Thus, the programmer need not worry about the plural cases of a language and does not have to define the plural cases; they can simply use the predefined keywords. The whole plural formatting of messages can be done using localized patterns from resource bundles. For predefined plural rules, see the CLDR <em>Language Plural Rules</em> page at <a href="http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html">http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html</a> </li>
</ul>
<h4>Usage of <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code></h4>
<p>Note: Typically, plural formatting is done via <code><a class="el" href="classicu_1_1MessageFormat.html">MessageFormat</a></code> with a <code>plural</code> argument type, rather than using a stand-alone <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code>. </p>
<p>This discussion assumes that you use <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> with a predefined set of plural rules. You can create one using one of the constructors that takes a <code>locale</code> object. To specify the message pattern, you can either pass it to the constructor or set it explicitly using the <code><a class="el" href="classicu_1_1PluralFormat.html#a4e32005a7a3bda8417d363dccf98811a" title="Sets the pattern used by this plural format. ">applyPattern()</a></code> method. The <code><a class="el" href="classicu_1_1PluralFormat.html#a6ef08bd30c176be42acae50138541929" title="Formats a plural message for a given number. ">format()</a></code> method takes a number object and selects the message of the matching plural case. This message will be returned. </p>
<h5>Patterns and Their Interpretation</h5>
<p>The pattern text defines the message output for each plural case of the specified locale. Syntax: </p>
<pre>
pluralStyle = [offsetValue] (selector '{' message '}')+
offsetValue = "offset:" number
selector = explicitValue | keyword
explicitValue = '=' number  // adjacent, no white space in between
keyword = [^[[:Pattern_Syntax:][:Pattern_White_Space:]]]+
message: see <a class="el" href="classicu_1_1MessageFormat.html">MessageFormat</a>
</pre><p> Pattern_White_Space between syntax elements is ignored, except between the {curly braces} and their sub-message, and between the '=' and the number of an explicitValue.</p>
<p>There are 6 predefined casekeyword in CLDR/ICU - 'zero', 'one', 'two', 'few', 'many' and 'other'. You always have to define a message text for the default plural case <code>other</code> which is contained in every rule set. If you do not specify a message text for a particular plural case, the message text of the plural case <code>other</code> gets assigned to this plural case. </p>
<p>When formatting, the input number is first matched against the explicitValue clauses. If there is no exact-number match, then a keyword is selected by calling the <code><a class="el" href="classicu_1_1PluralRules.html" title="Defines rules for mapping non-negative numeric values onto a small set of keywords. ">PluralRules</a></code> with the input number <em>minus the offset</em>. (The offset defaults to 0 if it is omitted from the pattern string.) If there is no clause with that keyword, then the "other" clauses is returned. </p>
<p>An unquoted pound sign (<code>#</code>) in the selected sub-message itself (i.e., outside of arguments nested in the sub-message) is replaced by the input number minus the offset. The number-minus-offset value is formatted using a <code><a class="el" href="classicu_1_1NumberFormat.html" title="Abstract base class for all number formats. ">NumberFormat</a></code> for the <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code>'s locale. If you need special number formatting, you have to use a <code><a class="el" href="classicu_1_1MessageFormat.html">MessageFormat</a></code> and explicitly specify a <code><a class="el" href="classicu_1_1NumberFormat.html" title="Abstract base class for all number formats. ">NumberFormat</a></code> argument. <b>Note:</b> That argument is formatting without subtracting the offset! If you need a custom format and have a non-zero offset, then you need to pass the number-minus-offset value as a separate parameter. </p>
<p>For a usage example, see the <a class="el" href="classicu_1_1MessageFormat.html">MessageFormat</a> class documentation.</p>
<h4>Defining Custom Plural Rules</h4>
<p>If you need to use <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> with custom rules, you can create a <code><a class="el" href="classicu_1_1PluralRules.html" title="Defines rules for mapping non-negative numeric values onto a small set of keywords. ">PluralRules</a></code> object and pass it to <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code>'s constructor. If you also specify a locale in this constructor, this locale will be used to format the number in the message texts. </p>
<p>For more information about <code><a class="el" href="classicu_1_1PluralRules.html" title="Defines rules for mapping non-negative numeric values onto a small set of keywords. ">PluralRules</a></code>, see <a class="el" href="classicu_1_1PluralRules.html">PluralRules</a>. </p>
<p>ported from Java </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003673">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

<p>Definition at line <a class="el" href="plurfmt_8h_source.html#l00143">143</a> of file <a class="el" href="plurfmt_8h_source.html">plurfmt.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a86d9ecf09311766e18c4fc410d6d93a1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">icu::PluralFormat::PluralFormat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new cardinal-number <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for the default locale. </p>
<p>This locale will be used to get the set of plural rules and for standard number formatting. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">status</td><td>output param set to success/failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003674">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="ac161ae3b79374c79c0446407031fc5b6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">icu::PluralFormat::PluralFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;&#160;</td>
          <td class="paramname"><em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new cardinal-number <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for a given locale. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> will be configured with rules for this locale. This locale will also be used for standard number formatting. </td></tr>
    <tr><td class="paramname">status</td><td>output param set to success/failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003675">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a4f2f556acc24d4198f7035ccdf3af0a6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">icu::PluralFormat::PluralFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1PluralRules.html">PluralRules</a> &amp;&#160;</td>
          <td class="paramname"><em>rules</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for a given set of rules. </p>
<p>The standard number formatting will be done using the default locale. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rules</td><td>defines the behavior of the <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> object. </td></tr>
    <tr><td class="paramname">status</td><td>output param set to success/failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003676">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="addad4d8e8c029ad6991a72ee369088ed"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">icu::PluralFormat::PluralFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;&#160;</td>
          <td class="paramname"><em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classicu_1_1PluralRules.html">PluralRules</a> &amp;&#160;</td>
          <td class="paramname"><em>rules</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for a given set of rules. </p>
<p>The standard number formatting will be done using the given locale. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the default number formatting will be done using this locale. </td></tr>
    <tr><td class="paramname">rules</td><td>defines the behavior of the <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> object. </td></tr>
    <tr><td class="paramname">status</td><td>output param set to success/failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003677">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>
<h4>Sample code</h4>
<div class="fragment"><div class="line"><span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><span class="preprocessor">#include &quot;<a class="code" href="plurfmt_8h.html">unicode/plurfmt.h</a>&quot;</span></div>
<div class="line"><span class="preprocessor">#include &quot;<a class="code" href="msgfmt_8h.html">unicode/msgfmt.h</a>&quot;</span></div>
<div class="line"><span class="preprocessor">#include &quot;<a class="code" href="ustdio_8h.html">unicode/ustdio.h</a>&quot;</span></div>
</div><!-- fragment --> <div class="fragment"><div class="line">        <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> status =<a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9">U_ZERO_ERROR</a>; </div>
<div class="line">        Locale locEn = Locale(<span class="stringliteral">&quot;en&quot;</span>);</div>
<div class="line">    Locale locSl = Locale(<span class="stringliteral">&quot;sl&quot;</span>);</div>
<div class="line"></div>
<div class="line">    UnicodeString patEn = UnicodeString(<span class="stringliteral">&quot;one{dog} other{dogs}&quot;</span>);                      <span class="comment">// English &#39;dog&#39;</span></div>
<div class="line">    UnicodeString patSl = UnicodeString(<span class="stringliteral">&quot;one{pes} two{psa} few{psi} other{psov}&quot;</span>);    <span class="comment">// Slovenian translation of dog in Plural Form</span></div>
<div class="line"></div>
<div class="line">    <span class="comment">// Create a new PluralFormat for a given locale locale and pattern string</span></div>
<div class="line">    <a class="code" href="classicu_1_1PluralFormat.html#a86d9ecf09311766e18c4fc410d6d93a1">PluralFormat</a> plfmtEn = <a class="code" href="classicu_1_1PluralFormat.html#a86d9ecf09311766e18c4fc410d6d93a1">PluralFormat</a>(locEn, patEn,status);</div>
<div class="line">    <a class="code" href="classicu_1_1PluralFormat.html#a86d9ecf09311766e18c4fc410d6d93a1">PluralFormat</a> plfmtSl = <a class="code" href="classicu_1_1PluralFormat.html#a86d9ecf09311766e18c4fc410d6d93a1">PluralFormat</a>(locSl, patSl,status);</div>
<div class="line">    <span class="comment">// Constructs a MessageFormat for given pattern and locale.</span></div>
<div class="line">    MessageFormat* msgfmtEn =  <span class="keyword">new</span> MessageFormat(<span class="stringliteral">&quot;{0,number} {1}&quot;</span>, locEn,status);</div>
<div class="line">    MessageFormat* msgfmtSl =  <span class="keyword">new</span> MessageFormat(<span class="stringliteral">&quot;{0,number} {1}&quot;</span>, locSl,status);</div>
<div class="line"></div>
<div class="line">        <span class="keywordtype">int</span> numbers[] = {0, 1, 2, 3, 4, 5, 10, 100, 101, 102};</div>
<div class="line">        <a class="code" href="ustdio_8h.html#a6c47bcc0394a1d176c636a59aff0ff0a">u_printf</a>(<span class="stringliteral">&quot;Output by using PluralFormat and MessageFormat API\n&quot;</span>);</div>
<div class="line">    <a class="code" href="ustdio_8h.html#a6c47bcc0394a1d176c636a59aff0ff0a">u_printf</a>(<span class="stringliteral">&quot;%-16s%-16s%-16s\n&quot;</span>,<span class="stringliteral">&quot;Number&quot;</span>, <span class="stringliteral">&quot;English&quot;</span>,<span class="stringliteral">&quot;Slovenian&quot;</span>);</div>
<div class="line"> </div>
<div class="line">    <span class="comment">// Use MessageFormat.format () to format the objects and append to the given StringBuffer</span></div>
<div class="line">    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0;i&lt;<span class="keyword">sizeof</span>(numbers)/<span class="keyword">sizeof</span>(<span class="keywordtype">int</span>);i++) {</div>
<div class="line">              UnicodeString msgEn,msgSl;</div>
<div class="line">                  FieldPosition fpos = 0;</div>
<div class="line">                  Formattable argEn[]={Formattable(numbers[i]), Formattable(plfmtEn.format(numbers[i],status))};</div>
<div class="line">                  Formattable argSl[]={Formattable(numbers[i]), Formattable(plfmtSl.format(numbers[i],status))};</div>
<div class="line">                  msgfmtEn-&gt;format(argEn,2,msgEn,fpos,status);</div>
<div class="line">                  msgfmtSl-&gt;format(argSl,2,msgSl,fpos,status);</div>
<div class="line">                  <a class="code" href="ustdio_8h.html#a6c47bcc0394a1d176c636a59aff0ff0a">u_printf</a>(<span class="stringliteral">&quot;%-16d%-16S%-16S\n&quot;</span>, numbers[i], msgEn.getTerminatedBuffer(),msgSl.getTerminatedBuffer());</div>
<div class="line">      }</div>
<div class="line"></div>
<div class="line">     <a class="code" href="ustdio_8h.html#a6c47bcc0394a1d176c636a59aff0ff0a">u_printf</a>(<span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"></div>
<div class="line">      <span class="comment">// Equivalent code with message format pattern</span></div>
<div class="line">      UnicodeString msgPatEn = <span class="stringliteral">&quot;{0,plural, one{# dog} other{# dogs}}&quot;</span>;</div>
<div class="line">      UnicodeString msgPatSl = <span class="stringliteral">&quot;{0,plural, one{# pes} two{# psa} few{# psi} other{# psov}}&quot;</span>;</div>
<div class="line"> </div>
<div class="line">          MessageFormat* altMsgfmtEn = <span class="keyword">new</span> MessageFormat(msgPatEn, locEn,status);</div>
<div class="line">      MessageFormat* altMsgfmtSl = <span class="keyword">new</span> MessageFormat(msgPatSl, locSl,status);</div>
<div class="line">      <a class="code" href="ustdio_8h.html#a6c47bcc0394a1d176c636a59aff0ff0a">u_printf</a>(<span class="stringliteral">&quot;Same Output by using MessageFormat API only\n&quot;</span>);</div>
<div class="line">      <a class="code" href="ustdio_8h.html#a6c47bcc0394a1d176c636a59aff0ff0a">u_printf</a>(<span class="stringliteral">&quot;%-16s%-16s%-16s\n&quot;</span>,<span class="stringliteral">&quot;Number&quot;</span>, <span class="stringliteral">&quot;English&quot;</span>,<span class="stringliteral">&quot;Slovenian&quot;</span>);</div>
<div class="line">      <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0;i&lt;<span class="keyword">sizeof</span>(numbers)/<span class="keyword">sizeof</span>(<span class="keywordtype">int</span>);i++) {</div>
<div class="line">          UnicodeString msgEn,msgSl;</div>
<div class="line">                  Formattable arg[] = {numbers[i]};</div>
<div class="line">                  FieldPosition fPos =0;</div>
<div class="line">                  altMsgfmtEn-&gt;format(arg, 1, msgEn, fPos, status);</div>
<div class="line">          altMsgfmtSl-&gt;format(arg, 1, msgSl, fPos,status);</div>
<div class="line">          <a class="code" href="ustdio_8h.html#a6c47bcc0394a1d176c636a59aff0ff0a">u_printf</a>(<span class="stringliteral">&quot;%-16d%-16S%-16S\n&quot;</span>, numbers[i], msgEn.getTerminatedBuffer(), msgSl.getTerminatedBuffer());</div>
<div class="line">      }</div>
<div class="line"></div>
<div class="line">        <span class="keyword">delete</span> msgfmtEn;</div>
<div class="line">        <span class="keyword">delete</span> msgfmtSl;</div>
<div class="line">        <span class="keyword">delete</span> altMsgfmtEn;</div>
<div class="line">        <span class="keyword">delete</span> altMsgfmtSl;</div>
</div><!-- fragment --> 
</div>
</div>
<a class="anchor" id="a64b9cbab9ea35dcd390a2864f0ff91c3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">icu::PluralFormat::PluralFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;&#160;</td>
          <td class="paramname"><em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="upluralrules_8h.html#afceec9f2dee10dbf3ca0d694f66d5d3c">UPluralType</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for the plural type. </p>
<p>The standard number formatting will be done using the given locale. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the default number formatting will be done using this locale. </td></tr>
    <tr><td class="paramname">type</td><td>The plural type (e.g., cardinal or ordinal). </td></tr>
    <tr><td class="paramname">status</td><td>output param set to success/failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003678">Stable:</a></b></dt><dd>ICU 50 </dd></dl>

</div>
</div>
<a class="anchor" id="a4183314946db447e862a4e73fb770b6c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">icu::PluralFormat::PluralFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new cardinal-number <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for a given pattern string. </p>
<p>The default locale will be used to get the set of plural rules and for standard number formatting. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pattern</td><td>the pattern for this <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code>. errors are returned to status if the pattern is invalid. </td></tr>
    <tr><td class="paramname">status</td><td>output param set to success/failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003679">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a16dd83785e540b0cebec2a830732f7e2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">icu::PluralFormat::PluralFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;&#160;</td>
          <td class="paramname"><em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new cardinal-number <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for a given pattern string and locale. </p>
<p>The locale will be used to get the set of plural rules and for standard number formatting. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> will be configured with rules for this locale. This locale will also be used for standard number formatting. </td></tr>
    <tr><td class="paramname">pattern</td><td>the pattern for this <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code>. errors are returned to status if the pattern is invalid. </td></tr>
    <tr><td class="paramname">status</td><td>output param set to success/failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003680">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a7913182ef967a8ba8b6353c5b5dfd512"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">icu::PluralFormat::PluralFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1PluralRules.html">PluralRules</a> &amp;&#160;</td>
          <td class="paramname"><em>rules</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for a given set of rules, a pattern and a locale. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rules</td><td>defines the behavior of the <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> object. </td></tr>
    <tr><td class="paramname">pattern</td><td>the pattern for this <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code>. errors are returned to status if the pattern is invalid. </td></tr>
    <tr><td class="paramname">status</td><td>output param set to success/failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003681">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a9bbd2cfe5f22e7118e8e1a7fd91f0787"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">icu::PluralFormat::PluralFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;&#160;</td>
          <td class="paramname"><em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classicu_1_1PluralRules.html">PluralRules</a> &amp;&#160;</td>
          <td class="paramname"><em>rules</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for a given set of rules, a pattern and a locale. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> will be configured with rules for this locale. This locale will also be used for standard number formatting. </td></tr>
    <tr><td class="paramname">rules</td><td>defines the behavior of the <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> object. </td></tr>
    <tr><td class="paramname">pattern</td><td>the pattern for this <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code>. errors are returned to status if the pattern is invalid. </td></tr>
    <tr><td class="paramname">status</td><td>output param set to success/failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003682">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a0ad527709ef855c4ce5f04c668b326a5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">icu::PluralFormat::PluralFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;&#160;</td>
          <td class="paramname"><em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="upluralrules_8h.html#afceec9f2dee10dbf3ca0d694f66d5d3c">UPluralType</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> for a plural type, a pattern and a locale. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> will be configured with rules for this locale. This locale will also be used for standard number formatting. </td></tr>
    <tr><td class="paramname">type</td><td>The plural type (e.g., cardinal or ordinal). </td></tr>
    <tr><td class="paramname">pattern</td><td>the pattern for this <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code>. errors are returned to status if the pattern is invalid. </td></tr>
    <tr><td class="paramname">status</td><td>output param set to success/failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003683">Stable:</a></b></dt><dd>ICU 50 </dd></dl>

</div>
</div>
<a class="anchor" id="ab2d7c5e12b281b008b0a64b8c569c6a7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">icu::PluralFormat::PluralFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>copy constructor. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003684">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aee2d3ee214c26aea688b3904e5e57e69"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual icu::PluralFormat::~PluralFormat </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="stable"><dt><b><a class="el" href="stable.html#_stable003685">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a4e32005a7a3bda8417d363dccf98811a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void icu::PluralFormat::applyPattern </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the pattern used by this plural format. </p>
<p>The method parses the pattern and creates a map of format strings for the plural rules. Patterns and their interpretation are specified in the class description.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pattern</td><td>the pattern for this plural format errors are returned to status if the pattern is invalid. </td></tr>
    <tr><td class="paramname">status</td><td>output param set to success/failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003686">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="af254f7c8e92992877bb8717641478d68"></a>
<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="classicu_1_1Format.html">Format</a>* icu::PluralFormat::clone </td>
          <td>(</td>
          <td class="paramtype">void&#160;</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>Clones this <a class="el" href="classicu_1_1Format.html" title="Base class for all formats. ">Format</a> object polymorphically. </p>
<p>The caller owns the result and should delete it when done. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003695">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

<p>Implements <a class="el" href="classicu_1_1Format.html#ad606fa4ed45908fe4220085c6276c65a">icu::Format</a>.</p>

</div>
</div>
<a class="anchor" id="a8cec9f8579702e799c6161d026552c4f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void icu::PluralFormat::copyObjects </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copies dynamically allocated values (pointer fields). </p>
<p>Others are copied using their copy constructors and assignment operators. </p>

</div>
</div>
<a class="anchor" id="ae37a2b9cffba478b144eed689e4c602e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int32_t icu::PluralFormat::findSubMessage </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1MessagePattern.html">MessagePattern</a> &amp;&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>partIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classicu_1_1PluralFormat_1_1PluralSelector.html">PluralSelector</a> &amp;&#160;</td>
          <td class="paramname"><em>selector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>ec</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Finds the <a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a> sub-message for the given number, or the "other" sub-message. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pattern</td><td>A <a class="el" href="classicu_1_1MessagePattern.html" title="Parses and represents ICU MessageFormat patterns. ">MessagePattern</a>. </td></tr>
    <tr><td class="paramname">partIndex</td><td>the index of the first <a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a> argument style part. </td></tr>
    <tr><td class="paramname">selector</td><td>the <a class="el" href="classicu_1_1PluralFormat_1_1PluralSelector.html">PluralSelector</a> for mapping the number (minus offset) to a keyword. </td></tr>
    <tr><td class="paramname">context</td><td>worker object for the selector. </td></tr>
    <tr><td class="paramname">number</td><td>a number to be matched to one of the <a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a> argument's explicit values, or mapped via the <a class="el" href="classicu_1_1PluralFormat_1_1PluralSelector.html">PluralSelector</a>. </td></tr>
    <tr><td class="paramname">ec</td><td>ICU error code. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the sub-message start part index.</dd></dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000374">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="a6ef08bd30c176be42acae50138541929"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> icu::PluralFormat::format </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Formats a plural message for a given number. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">number</td><td>a number for which the plural message should be formatted for. If no pattern has been applied to this <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> object yet, the formatted number will be returned. </td></tr>
    <tr><td class="paramname">status</td><td>output param set to success/failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the string containing the formatted plural message. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003687">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aa0db2407737b3d24a30a128365e06984"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> icu::PluralFormat::format </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Formats a plural message for a given number. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">number</td><td>a number for which the plural message should be formatted for. If no pattern has been applied to this <a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a> object yet, the formatted number will be returned. </td></tr>
    <tr><td class="paramname">status</td><td>output param set to success or failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the string containing the formatted plural message. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003688">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a3c2b11284acc3947175fa0283c51eb77"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a>&amp; icu::PluralFormat::format </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1FieldPosition.html">FieldPosition</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Formats a plural message for a given number. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">number</td><td>a number for which the plural message should be formatted for. If no pattern has been applied to this <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code> object yet, the formatted number will be returned. </td></tr>
    <tr><td class="paramname">appendTo</td><td>output parameter to receive result. result is appended to existing contents. </td></tr>
    <tr><td class="paramname">pos</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr>
    <tr><td class="paramname">status</td><td>output param set to success/failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the string containing the formatted plural message. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003689">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a6ebc6337d68880de0d372071618aa259"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a>&amp; icu::PluralFormat::format </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1FieldPosition.html">FieldPosition</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Formats a plural message for a given number. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">number</td><td>a number for which the plural message should be formatted for. If no pattern has been applied to this <a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a> object yet, the formatted number will be returned. </td></tr>
    <tr><td class="paramname">appendTo</td><td>output parameter to receive result. result is appended to existing contents. </td></tr>
    <tr><td class="paramname">pos</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr>
    <tr><td class="paramname">status</td><td>output param set to success/failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the string containing the formatted plural message. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003690">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="afd9d35881d35dc8db644779476aa0e26"></a>
<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_1UnicodeString.html">UnicodeString</a>&amp; icu::PluralFormat::format </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &amp;&#160;</td>
          <td class="paramname"><em>obj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1FieldPosition.html">FieldPosition</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</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>Formats a plural message for a number taken from a <a class="el" href="classicu_1_1Formattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting. ">Formattable</a> object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">obj</td><td>The object containing a number for which the plural message should be formatted. The object must be of a numeric type. </td></tr>
    <tr><td class="paramname">appendTo</td><td>output parameter to receive result. Result is appended to existing contents. </td></tr>
    <tr><td class="paramname">pos</td><td>On input: an alignment field, if desired. On output: the offsets of the alignment field. </td></tr>
    <tr><td class="paramname">status</td><td>output param filled with success/failure status. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Reference to 'appendTo' parameter. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003696">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

<p>Implements <a class="el" href="classicu_1_1Format.html#a68fb0a8875645f7ab11bb5230c03c212">icu::Format</a>.</p>

</div>
</div>
<a class="anchor" id="aa40330469be31252fd830617f65ddc39"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a>&amp; icu::PluralFormat::format </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1Formattable.html">Formattable</a> &amp;&#160;</td>
          <td class="paramname"><em>numberObject</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>appendTo</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1FieldPosition.html">FieldPosition</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000373">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl>

</div>
</div>
<a class="anchor" id="a2580094ed932ebbf91992d72b4685d26"></a>
<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="uobject_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> icu::PluralFormat::getDynamicClassID </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>ICU "poor man's RTTI", returns a UClassID for the actual class. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003700">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

<p>Reimplemented from <a class="el" href="classicu_1_1UObject.html#a1aa93096e880907080b503ff1fb0f8bc">icu::UObject</a>.</p>

</div>
</div>
<a class="anchor" id="ade2abfc3db882d5e0137d1ddae785f5d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="uobject_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> icu::PluralFormat::getStaticClassID </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>ICU "poor man's RTTI", returns a UClassID for this class. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003699">Stable:</a></b></dt><dd>ICU 4.0</dd></dl>

</div>
</div>
<a class="anchor" id="a7cd165e931a9070a755027664d3a577a"></a>
<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="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> icu::PluralFormat::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1Format.html">Format</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></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>Return true if another object is semantically unequal to this one. </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_1PluralFormat.html">PluralFormat</a> object to be compared with. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if other is semantically unequal to this. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003694">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a2df7d4b8b4b4d33b8c2919a4d0f561f0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a>&amp; icu::PluralFormat::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Assignment operator. </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_1PluralFormat.html">PluralFormat</a> object to copy from. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003692">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a1aec2634099cc21c235ea5243b4bc2cf"></a>
<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="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> icu::PluralFormat::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1Format.html">Format</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></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>Return true if another object is semantically equal to this one. </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_1PluralFormat.html">PluralFormat</a> object to be compared with. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if other is semantically equal to this. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003693">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

<p>Implements <a class="el" href="classicu_1_1Format.html#ab2db8f1097b03f3660d329752370bdf7">icu::Format</a>.</p>

</div>
</div>
<a class="anchor" id="a57dab6a7b69e3eb73062501db7fa1276"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void icu::PluralFormat::parseObject </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1Formattable.html">Formattable</a> &amp;&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classicu_1_1ParsePosition.html">ParsePosition</a> &amp;&#160;</td>
          <td class="paramname"><em>parse_pos</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</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>This method is not yet supported by <code><a class="el" href="classicu_1_1PluralFormat.html">PluralFormat</a></code>. </p>
<p>Before calling, set parse_pos.index to the offset you want to start parsing at in the source. After calling, parse_pos.index is the end of the text you parsed. If error occurs, index is unchanged. </p>
<p>When parsing, leading whitespace is discarded (with a successful parse), while trailing whitespace is left as is. </p>
<p>See <a class="el" href="classicu_1_1Format.html#a292d797eb9d3bc8a42d8d8efba119a83" title="Parse a string to produce an object. ">Format::parseObject()</a> for more.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>The string to be parsed into an object. </td></tr>
    <tr><td class="paramname">result</td><td><a class="el" href="classicu_1_1Formattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting. ">Formattable</a> to be set to the parse result. If parse fails, return contents are undefined. </td></tr>
    <tr><td class="paramname">parse_pos</td><td>The position to start parsing at. Upon return this param is set to the position after the last character successfully parsed. If the source is not parsed successfully, this param will remain unchanged. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003698">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

<p>Implements <a class="el" href="classicu_1_1Format.html#a292d797eb9d3bc8a42d8d8efba119a83">icu::Format</a>.</p>

</div>
</div>
<a class="anchor" id="ab14888c39ca635edf280752a710abdc1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void icu::PluralFormat::setLocale </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1Locale.html">Locale</a> &amp;&#160;</td>
          <td class="paramname"><em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the locale used by this <code>PluraFormat</code> object. </p>
<p>Note: Calling this method resets this <code>PluraFormat</code> object, i.e., a pattern that was applied previously will be removed, and the <a class="el" href="classicu_1_1NumberFormat.html" title="Abstract base class for all number formats. ">NumberFormat</a> is set to the default number format for the locale. The resulting format behaves the same as one constructed from <a class="el" href="classicu_1_1PluralFormat.html#a64b9cbab9ea35dcd390a2864f0ff91c3">PluralFormat(const Locale&amp; locale, UPluralType type, UErrorCode&amp; status)</a> with UPLURAL_TYPE_CARDINAL. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the <code>locale</code> to use to configure the formatter. </td></tr>
    <tr><td class="paramname">status</td><td>output param set to success/failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000243">Deprecated:</a></b></dt><dd>ICU 50 This method clears the pattern and might create a different kind of <a class="el" href="classicu_1_1PluralRules.html" title="Defines rules for mapping non-negative numeric values onto a small set of keywords. ">PluralRules</a> instance; use one of the constructors to create a new instance instead. </dd></dl>

</div>
</div>
<a class="anchor" id="a01dc06bd7b9ffadb8049a79069cea110"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void icu::PluralFormat::setNumberFormat </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classicu_1_1NumberFormat.html">NumberFormat</a> *&#160;</td>
          <td class="paramname"><em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&#160;</td>
          <td class="paramname"><em>status</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the number format used by this formatter. </p>
<p>You only need to call this if you want a different number format than the default formatter for the locale. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">format</td><td>the number format to use. </td></tr>
    <tr><td class="paramname">status</td><td>output param set to success/failure code on exit, which must not indicate a failure before the function call. </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003691">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a9b5078565321a1b178bebb72845940b1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a>&amp; icu::PluralFormat::toPattern </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classicu_1_1UnicodeString.html">UnicodeString</a> &amp;&#160;</td>
          <td class="paramname"><em>appendTo</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the pattern from <a class="el" href="classicu_1_1PluralFormat.html#a4e32005a7a3bda8417d363dccf98811a" title="Sets the pattern used by this plural format. ">applyPattern()</a> or constructor(). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">appendTo</td><td>output parameter to receive result. Result is appended to existing contents. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="classicu_1_1UnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a> with inserted pattern. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable003697">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="plurfmt_8h_source.html">plurfmt.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>