Server IP : 103.119.228.120 / Your IP : 3.148.108.201 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/ssl/local/ssl/local/easy/share/doc/easy-libicu-doc-4.0.1/ |
Upload File : |
<!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.5"/> <title>ICU 4.0.1: 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 4.0.1 </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.5 --> <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 Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <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 Structures</span></a></li> <li><a href="classes.html"><span>Data Structure Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul> </div> <!-- 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"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </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><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> </div> <div class="headertitle"> <div class="title">PluralFormat Class Reference</div> </div> </div><!--header--> <div class="contents"> <p><code>#include <<a class="el" href="plurfmt_8h_source.html">plurfmt.h</a>></code></p> <div class="dynheader"> Inheritance diagram for PluralFormat:</div> <div class="dyncontent"> <div class="center"> <img src="classPluralFormat.png" usemap="#PluralFormat_map" alt=""/> <map id="PluralFormat_map" name="PluralFormat_map"> <area href="classFormat.html" title="Base class for all formats. " alt="Format" shape="rect" coords="0,112,84,136"/> <area href="classUObject.html" title="UObject is the common ICU "boilerplate" class. " alt="UObject" shape="rect" coords="0,56,84,80"/> <area href="classUMemory.html" title="UMemory is the common ICU base class. " alt="UMemory" shape="rect" coords="0,0,84,24"/> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a8c410b4369566683e6a33db2de78f30c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a8c410b4369566683e6a33db2de78f30c">PluralFormat</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a8c410b4369566683e6a33db2de78f30c"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> for the default locale. <a href="#a8c410b4369566683e6a33db2de78f30c">More...</a><br/></td></tr> <tr class="separator:a8c410b4369566683e6a33db2de78f30c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8756792ec1c169beb733656917a85341"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a8756792ec1c169beb733656917a85341">PluralFormat</a> (const <a class="el" href="classLocale.html">Locale</a> &locale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a8756792ec1c169beb733656917a85341"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> for a given locale. <a href="#a8756792ec1c169beb733656917a85341">More...</a><br/></td></tr> <tr class="separator:a8756792ec1c169beb733656917a85341"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1300f3fd9d160d545df23ccd7513c0cb"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a1300f3fd9d160d545df23ccd7513c0cb">PluralFormat</a> (const <a class="el" href="classPluralRules.html">PluralRules</a> &rules, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a1300f3fd9d160d545df23ccd7513c0cb"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> for a given set of rules. <a href="#a1300f3fd9d160d545df23ccd7513c0cb">More...</a><br/></td></tr> <tr class="separator:a1300f3fd9d160d545df23ccd7513c0cb"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a85a71a69714385f2e573c57f6cb4993f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a85a71a69714385f2e573c57f6cb4993f">PluralFormat</a> (const <a class="el" href="classLocale.html">Locale</a> &locale, const <a class="el" href="classPluralRules.html">PluralRules</a> &rules, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a85a71a69714385f2e573c57f6cb4993f"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> for a given set of rules. <a href="#a85a71a69714385f2e573c57f6cb4993f">More...</a><br/></td></tr> <tr class="separator:a85a71a69714385f2e573c57f6cb4993f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8b458e4762cb31e7ee15e72b7d15e934"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a8b458e4762cb31e7ee15e72b7d15e934">PluralFormat</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a8b458e4762cb31e7ee15e72b7d15e934"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> for a given pattern string. <a href="#a8b458e4762cb31e7ee15e72b7d15e934">More...</a><br/></td></tr> <tr class="separator:a8b458e4762cb31e7ee15e72b7d15e934"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aafbce030c1b7bf47c0828832692ba41a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#aafbce030c1b7bf47c0828832692ba41a">PluralFormat</a> (const <a class="el" href="classLocale.html">Locale</a> &locale, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:aafbce030c1b7bf47c0828832692ba41a"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> for a given pattern string and locale. <a href="#aafbce030c1b7bf47c0828832692ba41a">More...</a><br/></td></tr> <tr class="separator:aafbce030c1b7bf47c0828832692ba41a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a855e9ec92c89f5aa240f207e8aaa57ed"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a855e9ec92c89f5aa240f207e8aaa57ed">PluralFormat</a> (const <a class="el" href="classPluralRules.html">PluralRules</a> &rules, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a855e9ec92c89f5aa240f207e8aaa57ed"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> for a given set of rules, a pattern and a locale. <a href="#a855e9ec92c89f5aa240f207e8aaa57ed">More...</a><br/></td></tr> <tr class="separator:a855e9ec92c89f5aa240f207e8aaa57ed"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af12d02e746d81166620f5cd6d83ce0ab"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#af12d02e746d81166620f5cd6d83ce0ab">PluralFormat</a> (const <a class="el" href="classLocale.html">Locale</a> &locale, const <a class="el" href="classPluralRules.html">PluralRules</a> &rules, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:af12d02e746d81166620f5cd6d83ce0ab"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> for a given set of rules, a pattern and a locale. <a href="#af12d02e746d81166620f5cd6d83ce0ab">More...</a><br/></td></tr> <tr class="separator:af12d02e746d81166620f5cd6d83ce0ab"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1e6fbf3c1ca8c824dd19002d0ab9cfc8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a1e6fbf3c1ca8c824dd19002d0ab9cfc8">PluralFormat</a> (const <a class="el" href="classPluralFormat.html">PluralFormat</a> &other)</td></tr> <tr class="memdesc:a1e6fbf3c1ca8c824dd19002d0ab9cfc8"><td class="mdescLeft"> </td><td class="mdescRight">copy constructor. <a href="#a1e6fbf3c1ca8c824dd19002d0ab9cfc8">More...</a><br/></td></tr> <tr class="separator:a1e6fbf3c1ca8c824dd19002d0ab9cfc8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab4f9f4e1052a57a64aadf939566b520e"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#ab4f9f4e1052a57a64aadf939566b520e">~PluralFormat</a> ()</td></tr> <tr class="memdesc:ab4f9f4e1052a57a64aadf939566b520e"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ab4f9f4e1052a57a64aadf939566b520e">More...</a><br/></td></tr> <tr class="separator:ab4f9f4e1052a57a64aadf939566b520e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2e4529df12fd1c2a6f62365a370f5695"><td class="memItemLeft" align="right" valign="top"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a2e4529df12fd1c2a6f62365a370f5695">applyPattern</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &pattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a2e4529df12fd1c2a6f62365a370f5695"><td class="mdescLeft"> </td><td class="mdescRight">Sets the pattern used by this plural format. <a href="#a2e4529df12fd1c2a6f62365a370f5695">More...</a><br/></td></tr> <tr class="separator:a2e4529df12fd1c2a6f62365a370f5695"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a574169695e8a514c4ba0f2dd070d0e71"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a574169695e8a514c4ba0f2dd070d0e71">format</a> (int32_t number, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a574169695e8a514c4ba0f2dd070d0e71"><td class="mdescLeft"> </td><td class="mdescRight">Formats a plural message for a given number. <a href="#a574169695e8a514c4ba0f2dd070d0e71">More...</a><br/></td></tr> <tr class="separator:a574169695e8a514c4ba0f2dd070d0e71"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a68cdf4bb5201604fa93949adf5e396f7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a68cdf4bb5201604fa93949adf5e396f7">format</a> (double number, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a68cdf4bb5201604fa93949adf5e396f7"><td class="mdescLeft"> </td><td class="mdescRight">Formats a plural message for a given number. <a href="#a68cdf4bb5201604fa93949adf5e396f7">More...</a><br/></td></tr> <tr class="separator:a68cdf4bb5201604fa93949adf5e396f7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad6e8a6ee99827d0ffbc24d6ae0c841b2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#ad6e8a6ee99827d0ffbc24d6ae0c841b2">format</a> (int32_t number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &pos, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:ad6e8a6ee99827d0ffbc24d6ae0c841b2"><td class="mdescLeft"> </td><td class="mdescRight">Formats a plural message for a given number. <a href="#ad6e8a6ee99827d0ffbc24d6ae0c841b2">More...</a><br/></td></tr> <tr class="separator:ad6e8a6ee99827d0ffbc24d6ae0c841b2"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7b852373bf7abda5355dfc56cafb79f7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a7b852373bf7abda5355dfc56cafb79f7">format</a> (double number, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &pos, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a7b852373bf7abda5355dfc56cafb79f7"><td class="mdescLeft"> </td><td class="mdescRight">Formats a plural message for a given number. <a href="#a7b852373bf7abda5355dfc56cafb79f7">More...</a><br/></td></tr> <tr class="separator:a7b852373bf7abda5355dfc56cafb79f7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afe885b1b77e6e4581e61ec7e9ce3d860"><td class="memItemLeft" align="right" valign="top"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#afe885b1b77e6e4581e61ec7e9ce3d860">setLocale</a> (const <a class="el" href="classLocale.html">Locale</a> &locale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:afe885b1b77e6e4581e61ec7e9ce3d860"><td class="mdescLeft"> </td><td class="mdescRight">Sets the locale used by this <code>PluraFormat</code> object. <a href="#afe885b1b77e6e4581e61ec7e9ce3d860">More...</a><br/></td></tr> <tr class="separator:afe885b1b77e6e4581e61ec7e9ce3d860"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab5d863d4822e3f40366c3fb9946703dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#ab5d863d4822e3f40366c3fb9946703dc">setNumberFormat</a> (const <a class="el" href="classNumberFormat.html">NumberFormat</a> *<a class="el" href="classPluralFormat.html#a574169695e8a514c4ba0f2dd070d0e71">format</a>, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:ab5d863d4822e3f40366c3fb9946703dc"><td class="mdescLeft"> </td><td class="mdescRight">Sets the number format used by this formatter. <a href="#ab5d863d4822e3f40366c3fb9946703dc">More...</a><br/></td></tr> <tr class="separator:ab5d863d4822e3f40366c3fb9946703dc"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4145baa65aaccfbc3ff6a8c34be82213"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classPluralFormat.html">PluralFormat</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a4145baa65aaccfbc3ff6a8c34be82213">operator=</a> (const <a class="el" href="classPluralFormat.html">PluralFormat</a> &other)</td></tr> <tr class="memdesc:a4145baa65aaccfbc3ff6a8c34be82213"><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <a href="#a4145baa65aaccfbc3ff6a8c34be82213">More...</a><br/></td></tr> <tr class="separator:a4145baa65aaccfbc3ff6a8c34be82213"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae7e12f077b16fb02f069d9830096d96b"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#ae7e12f077b16fb02f069d9830096d96b">operator==</a> (const <a class="el" href="classFormat.html">Format</a> &other) const </td></tr> <tr class="memdesc:ae7e12f077b16fb02f069d9830096d96b"><td class="mdescLeft"> </td><td class="mdescRight">Return true if another object is semantically equal to this one. <a href="#ae7e12f077b16fb02f069d9830096d96b">More...</a><br/></td></tr> <tr class="separator:ae7e12f077b16fb02f069d9830096d96b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6c1ce757f5aa6475aafa63c066f9825b"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a6c1ce757f5aa6475aafa63c066f9825b">operator!=</a> (const <a class="el" href="classFormat.html">Format</a> &other) const </td></tr> <tr class="memdesc:a6c1ce757f5aa6475aafa63c066f9825b"><td class="mdescLeft"> </td><td class="mdescRight">Return true if another object is semantically unequal to this one. <a href="#a6c1ce757f5aa6475aafa63c066f9825b">More...</a><br/></td></tr> <tr class="separator:a6c1ce757f5aa6475aafa63c066f9825b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aeb3f76cdf69fb00fec050171662d3a09"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classFormat.html">Format</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#aeb3f76cdf69fb00fec050171662d3a09">clone</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>) const </td></tr> <tr class="memdesc:aeb3f76cdf69fb00fec050171662d3a09"><td class="mdescLeft"> </td><td class="mdescRight">Clones this <a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> object polymorphically. <a href="#aeb3f76cdf69fb00fec050171662d3a09">More...</a><br/></td></tr> <tr class="separator:aeb3f76cdf69fb00fec050171662d3a09"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a405026e9c17195c2421bb30b96e458f4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a405026e9c17195c2421bb30b96e458f4">format</a> (const <a class="el" href="classFormattable.html">Formattable</a> &obj, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="classFieldPosition.html">FieldPosition</a> &pos, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a405026e9c17195c2421bb30b96e458f4"><td class="mdescLeft"> </td><td class="mdescRight">Redeclared <a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> method. <a href="#a405026e9c17195c2421bb30b96e458f4">More...</a><br/></td></tr> <tr class="separator:a405026e9c17195c2421bb30b96e458f4"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a27d0ead83b43868194c44c3abfd423e9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a27d0ead83b43868194c44c3abfd423e9">toPattern</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo)</td></tr> <tr class="memdesc:a27d0ead83b43868194c44c3abfd423e9"><td class="mdescLeft"> </td><td class="mdescRight">Returns the pattern from <a class="el" href="classPluralFormat.html#a2e4529df12fd1c2a6f62365a370f5695" title="Sets the pattern used by this plural format. ">applyPattern()</a> or constructor(). <a href="#a27d0ead83b43868194c44c3abfd423e9">More...</a><br/></td></tr> <tr class="separator:a27d0ead83b43868194c44c3abfd423e9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a24e62f6a197c2b8e524dd40ce58a89c5"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a24e62f6a197c2b8e524dd40ce58a89c5">parseObject</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &source, <a class="el" href="classFormattable.html">Formattable</a> &result, <a class="el" href="classParsePosition.html">ParsePosition</a> &parse_pos) const </td></tr> <tr class="memdesc:a24e62f6a197c2b8e524dd40ce58a89c5"><td class="mdescLeft"> </td><td class="mdescRight">This method is not yet supported by <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code>. <a href="#a24e62f6a197c2b8e524dd40ce58a89c5">More...</a><br/></td></tr> <tr class="separator:a24e62f6a197c2b8e524dd40ce58a89c5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a12e3f92dd37991545c313fd149107e9c"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#a12e3f92dd37991545c313fd149107e9c">getDynamicClassID</a> () const </td></tr> <tr class="memdesc:a12e3f92dd37991545c313fd149107e9c"><td class="mdescLeft"> </td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for the actual class. <a href="#a12e3f92dd37991545c313fd149107e9c">More...</a><br/></td></tr> <tr class="separator:a12e3f92dd37991545c313fd149107e9c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_classFormat"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classFormat')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classFormat.html">Format</a></td></tr> <tr class="memitem:aafee703f14d0f5ddb264b708a75174a8 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#aafee703f14d0f5ddb264b708a75174a8">~Format</a> ()</td></tr> <tr class="memdesc:aafee703f14d0f5ddb264b708a75174a8 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#aafee703f14d0f5ddb264b708a75174a8">More...</a><br/></td></tr> <tr class="separator:aafee703f14d0f5ddb264b708a75174a8 inherit pub_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4f65d87226814931dde8b035f47b69f3 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a4f65d87226814931dde8b035f47b69f3">operator!=</a> (const <a class="el" href="classFormat.html">Format</a> &other) const </td></tr> <tr class="memdesc:a4f65d87226814931dde8b035f47b69f3 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Return true if the given <a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> objects are not semantically equal. <a href="#a4f65d87226814931dde8b035f47b69f3">More...</a><br/></td></tr> <tr class="separator:a4f65d87226814931dde8b035f47b69f3 inherit pub_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af3f0b157f07d6e9f908da69c99239600 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#af3f0b157f07d6e9f908da69c99239600">format</a> (const <a class="el" href="classFormattable.html">Formattable</a> &obj, <a class="el" href="classUnicodeString.html">UnicodeString</a> &appendTo, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:af3f0b157f07d6e9f908da69c99239600 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Formats an object to produce a string. <a href="#af3f0b157f07d6e9f908da69c99239600">More...</a><br/></td></tr> <tr class="separator:af3f0b157f07d6e9f908da69c99239600 inherit pub_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a90da11177ef906f464d63ca14300e1c9 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a90da11177ef906f464d63ca14300e1c9">parseObject</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &source, <a class="el" href="classFormattable.html">Formattable</a> &result, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a90da11177ef906f464d63ca14300e1c9 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Parses a string to produce an object. <a href="#a90da11177ef906f464d63ca14300e1c9">More...</a><br/></td></tr> <tr class="separator:a90da11177ef906f464d63ca14300e1c9 inherit pub_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4502b04fe77be54f9f0343a87156fbd5 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classLocale.html">Locale</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a4502b04fe77be54f9f0343a87156fbd5">getLocale</a> (<a class="el" href="uloc_8h.html#adf053345d343f8d82ae080f7a5871f34">ULocDataLocaleType</a> type, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a4502b04fe77be54f9f0343a87156fbd5 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Get the locale for this format object. <a href="#a4502b04fe77be54f9f0343a87156fbd5">More...</a><br/></td></tr> <tr class="separator:a4502b04fe77be54f9f0343a87156fbd5 inherit pub_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad8ca4e4cbd2a11b4de3c748c48c7c536 inherit pub_methods_classFormat"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#ad8ca4e4cbd2a11b4de3c748c48c7c536">getLocaleID</a> (<a class="el" href="uloc_8h.html#adf053345d343f8d82ae080f7a5871f34">ULocDataLocaleType</a> type, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:ad8ca4e4cbd2a11b4de3c748c48c7c536 inherit pub_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Get the locale for this format object. <a href="#ad8ca4e4cbd2a11b4de3c748c48c7c536">More...</a><br/></td></tr> <tr class="separator:ad8ca4e4cbd2a11b4de3c748c48c7c536 inherit pub_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_classUObject"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classUObject')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classUObject.html">UObject</a></td></tr> <tr class="memitem:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classUObject.html#ace22cf29a90641ef43350deae5bedb85">~UObject</a> ()</td></tr> <tr class="memdesc:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ace22cf29a90641ef43350deae5bedb85">More...</a><br/></td></tr> <tr class="separator:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="memSeparator" colspan="2"> </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:aa3db9061fda6d0a85b8143f8d7bedcd5"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPluralFormat.html#aa3db9061fda6d0a85b8143f8d7bedcd5">getStaticClassID</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:aa3db9061fda6d0a85b8143f8d7bedcd5"><td class="mdescLeft"> </td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for this class. <a href="#aa3db9061fda6d0a85b8143f8d7bedcd5">More...</a><br/></td></tr> <tr class="separator:aa3db9061fda6d0a85b8143f8d7bedcd5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_static_methods_classUMemory"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classUMemory')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="classUMemory.html">UMemory</a></td></tr> <tr class="memitem:a309b19b5777e2840b85b202aef5a54fb inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a309b19b5777e2840b85b202aef5a54fb">operator new</a> (size_t size)</td></tr> <tr class="memdesc:a309b19b5777e2840b85b202aef5a54fb inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management. <a href="#a309b19b5777e2840b85b202aef5a54fb">More...</a><br/></td></tr> <tr class="separator:a309b19b5777e2840b85b202aef5a54fb inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4d0df3571728e7b8a823dbbea6e9b5c5 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a4d0df3571728e7b8a823dbbea6e9b5c5">operator new[]</a> (size_t size)</td></tr> <tr class="memdesc:a4d0df3571728e7b8a823dbbea6e9b5c5 inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management. <a href="#a4d0df3571728e7b8a823dbbea6e9b5c5">More...</a><br/></td></tr> <tr class="separator:a4d0df3571728e7b8a823dbbea6e9b5c5 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:adcda65a58813749f8f45c5e6c1ed37e1 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#adcda65a58813749f8f45c5e6c1ed37e1">operator delete</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *p)</td></tr> <tr class="memdesc:adcda65a58813749f8f45c5e6c1ed37e1 inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management. <a href="#adcda65a58813749f8f45c5e6c1ed37e1">More...</a><br/></td></tr> <tr class="separator:adcda65a58813749f8f45c5e6c1ed37e1 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7602a7a8c6fdff21d9fbecea4d899333 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a7602a7a8c6fdff21d9fbecea4d899333">operator delete[]</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *p)</td></tr> <tr class="memdesc:a7602a7a8c6fdff21d9fbecea4d899333 inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management. <a href="#a7602a7a8c6fdff21d9fbecea4d899333">More...</a><br/></td></tr> <tr class="separator:a7602a7a8c6fdff21d9fbecea4d899333 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a43b5221fe429f77230b2040f8724c154 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a43b5221fe429f77230b2040f8724c154">operator new</a> (size_t, <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *ptr)</td></tr> <tr class="memdesc:a43b5221fe429f77230b2040f8724c154 inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management for STL. <a href="#a43b5221fe429f77230b2040f8724c154">More...</a><br/></td></tr> <tr class="separator:a43b5221fe429f77230b2040f8724c154 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9b746b0cdb49c8f8907773002ea5c4ea inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a9b746b0cdb49c8f8907773002ea5c4ea">operator delete</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *, <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *)</td></tr> <tr class="memdesc:a9b746b0cdb49c8f8907773002ea5c4ea inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management for STL. <a href="#a9b746b0cdb49c8f8907773002ea5c4ea">More...</a><br/></td></tr> <tr class="separator:a9b746b0cdb49c8f8907773002ea5c4ea inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </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_classFormat"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classFormat')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classFormat.html">Format</a></td></tr> <tr class="memitem:ae15f405ad3805e8d6691354047b500ca inherit pro_methods_classFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#ae15f405ad3805e8d6691354047b500ca">setLocaleIDs</a> (const char *valid, const char *actual)</td></tr> <tr class="separator:ae15f405ad3805e8d6691354047b500ca inherit pro_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9326a787208f39b9544fc6fcbcbfcad3 inherit pro_methods_classFormat"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a9326a787208f39b9544fc6fcbcbfcad3">Format</a> ()</td></tr> <tr class="memdesc:a9326a787208f39b9544fc6fcbcbfcad3 inherit pro_methods_classFormat"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor for subclass use only. <a href="#a9326a787208f39b9544fc6fcbcbfcad3">More...</a><br/></td></tr> <tr class="separator:a9326a787208f39b9544fc6fcbcbfcad3 inherit pro_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab69111c370cfe44f9508e78e5431cc65 inherit pro_methods_classFormat"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#ab69111c370cfe44f9508e78e5431cc65">Format</a> (const <a class="el" href="classFormat.html">Format</a> &)</td></tr> <tr class="separator:ab69111c370cfe44f9508e78e5431cc65 inherit pro_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7a5276a88c488462eea3a508b71f4d9c inherit pro_methods_classFormat"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classFormat.html">Format</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a7a5276a88c488462eea3a508b71f4d9c">operator=</a> (const <a class="el" href="classFormat.html">Format</a> &)</td></tr> <tr class="separator:a7a5276a88c488462eea3a508b71f4d9c inherit pro_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pro_static_methods_classFormat"><td colspan="2" onclick="javascript:toggleInherit('pro_static_methods_classFormat')"><img src="closed.png" alt="-"/> Static Protected Member Functions inherited from <a class="el" href="classFormat.html">Format</a></td></tr> <tr class="memitem:a98213ada53770537d242f4bf0ba43b73 inherit pro_static_methods_classFormat"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFormat.html#a98213ada53770537d242f4bf0ba43b73">syntaxError</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &pattern, int32_t pos, <a class="el" href="structUParseError.html">UParseError</a> &parseError)</td></tr> <tr class="memdesc:a98213ada53770537d242f4bf0ba43b73 inherit pro_static_methods_classFormat"><td class="mdescLeft"> </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="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>. <a href="#a98213ada53770537d242f4bf0ba43b73">More...</a><br/></td></tr> <tr class="separator:a98213ada53770537d242f4bf0ba43b73 inherit pro_static_methods_classFormat"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p><code><a class="el" href="classPluralFormat.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 users language and the <code><a class="el" href="classPluralFormat.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="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and string names 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., paucal applies to numbers ending with 2, 3, or 4 except those ending with 12, 13, or 14). Thus <code><a class="el" href="classChoiceFormat.html" title="ChoiceFormat converts between ranges of numeric values and string names for those ranges...">ChoiceFormat</a></code> is not adequate. </p> <p><code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> deals with this by breaking the problem into two parts: </p> <ul> <li> It uses <code><a class="el" href="classPluralRules.html" title="Defines rules for mapping positive long 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 locales. Thus, the programmer need not worry about the plural cases of a language. On the flip side, the localizer does not have to specify the plural cases; he can simply use the predefined keywords. The whole plural formatting of messages can be done using localized patterns from resource bundles. </li> </ul> <h4>Usage of <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code></h4> <p>This discussion assumes that you use <code><a class="el" href="classPluralFormat.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="classPluralFormat.html#a2e4529df12fd1c2a6f62365a370f5695" title="Sets the pattern used by this plural format. ">applyPattern()</a></code> method. The <code><a class="el" href="classPluralFormat.html#a574169695e8a514c4ba0f2dd070d0e71" 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 used locale. The pattern is a sequence of <code><em>caseKeyword</em>{<em>message</em>}</code> clauses, separated by white space characters. Each clause assigns the message <code><em>message</em></code> to the plural case identified by <code><em>caseKeyword</em></code>. </p> <p>You always have to define a message text for the default plural case "<code>other</code>" which is contained in every rule set. If the plural rules of the <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> object do not contain a plural case identified by <code><em>caseKeyword</em></code>, U_DEFAULT_KEYWORD_MISSING will be set to status. 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. If you specify more than one message for the same plural case, U_DUPLICATE_KEYWORD will be set to status. <br/> Spaces between <code><em>caseKeyword</em></code> and <code><em>message</em></code> will be ignored; spaces within <code><em>message</em></code> will be preserved. </p> <p>The message text for a particular plural case may contain other message format patterns. <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> preserves these so that you can use the strings produced by <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> with other formatters. If you are using <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> inside a <code><a class="el" href="classMessageFormat.html" title="A MessageFormat produces concatenated messages in a language-neutral way. ">MessageFormat</a></code> pattern, <code><a class="el" href="classMessageFormat.html" title="A MessageFormat produces concatenated messages in a language-neutral way. ">MessageFormat</a></code> will automatically evaluate the resulting format pattern.<br/> Thus, curly braces (<code>{</code>, <code>}</code>) are <em>only</em> allowed in message texts to define a nested format pattern.<br/> The pound sign (<code>#</code>) will be interpreted as the number placeholder in the message text, if it is not contained in curly braces (to preserve <code><a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats. ">NumberFormat</a></code> patterns). <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> will replace each of those pound signs by the number passed to the <code><a class="el" href="classPluralFormat.html#a574169695e8a514c4ba0f2dd070d0e71" title="Formats a plural message for a given number. ">format()</a></code> method. It will be formatted using a <code><a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats. ">NumberFormat</a></code> for the <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code>'s locale. If you need special number formatting, you have to explicitly specify a <code><a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats. ">NumberFormat</a></code> for the <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> to use. </p> <p>Example </p> <pre> UErrorCode status = U_ZERO_ERROR; MessageFormat* msgFmt = new <a class="el" href="classMessageFormat.html" title="A MessageFormat produces concatenated messages in a language-neutral way. ">MessageFormat</a>(<a class="el" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>("{0, plural, one{{0, number, C''est #,##0.0# fichier}} other {Ce sont # fichiers}} dans la liste."), <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a>("fr"), status); if (<a class="el" href="utypes_8h.html#a4d202200b6aa6f3c965ea370e0c8155f" title="Does the error code indicate a failure? ">U_FAILURE(status)</a>) { return; } <a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting. ">Formattable</a> args1[] = {(int32_t)0}; <a class="el" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting. ">Formattable</a> args2[] = {(int32_t)3}; <a class="el" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...">FieldPosition</a> ignore(FieldPosition::DONT_CARE); <a class="el" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a> result; msgFmt->format(args1, 1, result, ignore, status); cout << result << endl; result.remove(); msgFmt->format(args2, 1, result, ignore, status); cout << result << endl; </pre><p> Produces the output:<br/> <code>C'est 0,0 fichier dans la liste.</code><br/> <code>Ce sont 3 fichiers dans la liste."</code> </p> <p><b>Note:</b><br/> Currently <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> does not make use of quotes like <code><a class="el" href="classMessageFormat.html" title="A MessageFormat produces concatenated messages in a language-neutral way. ">MessageFormat</a></code>. If you use plural format strings with <code><a class="el" href="classMessageFormat.html" title="A MessageFormat produces concatenated messages in a language-neutral way. ">MessageFormat</a></code> and want to use a quote sign "<code>'</code>", you have to write "<code>''</code>". <code><a class="el" href="classMessageFormat.html" title="A MessageFormat produces concatenated messages in a language-neutral way. ">MessageFormat</a></code> unquotes this pattern and passes the unquoted pattern to <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code>. It's a bit trickier if you use nested formats that do quoting. In the example above, we wanted to insert "<code>'</code>" in the number format pattern. Since <code><a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats. ">NumberFormat</a></code> supports quotes, we had to insert "<code>''</code>". But since <code><a class="el" href="classMessageFormat.html" title="A MessageFormat produces concatenated messages in a language-neutral way. ">MessageFormat</a></code> unquotes the pattern before it gets passed to <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code>, we have to double these quotes, i.e. write "<code>''''</code>". </p> <h4>Defining Custom Plural Rules</h4> <p>If you need to use <code><a class="el" href="classPluralFormat.html">PluralFormat</a></code> with custom rules, you can create a <code><a class="el" href="classPluralRules.html" title="Defines rules for mapping positive long values onto a small set of keywords. ">PluralRules</a></code> object and pass it to <code><a class="el" href="classPluralFormat.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="classPluralRules.html" title="Defines rules for mapping positive long values onto a small set of keywords. ">PluralRules</a></code>, see <a class="el" href="classPluralRules.html">PluralRules</a>. </p> <p>ported from Java </p> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000076">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> <p>Definition at line <a class="el" href="plurfmt_8h_source.html#l00174">174</a> of file <a class="el" href="plurfmt_8h_source.html">plurfmt.h</a>.</p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="a8c410b4369566683e6a33db2de78f30c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PluralFormat::PluralFormat </td> <td>(</td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Creates a new <code><a class="el" href="classPluralFormat.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="draft"><dt><b><a class="el" href="draft.html#_draft000077">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="a8756792ec1c169beb733656917a85341"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PluralFormat::PluralFormat </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </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> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Creates a new <code><a class="el" href="classPluralFormat.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="classPluralFormat.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="draft"><dt><b><a class="el" href="draft.html#_draft000078">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="a1300f3fd9d160d545df23ccd7513c0cb"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PluralFormat::PluralFormat </td> <td>(</td> <td class="paramtype">const <a class="el" href="classPluralRules.html">PluralRules</a> & </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> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Creates a new <code><a class="el" href="classPluralFormat.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="classPluralFormat.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="draft"><dt><b><a class="el" href="draft.html#_draft000079">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="a85a71a69714385f2e573c57f6cb4993f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PluralFormat::PluralFormat </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </td> <td class="paramname"><em>locale</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classPluralRules.html">PluralRules</a> & </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> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Creates a new <code><a class="el" href="classPluralFormat.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="classPluralFormat.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="draft"><dt><b><a class="el" href="draft.html#_draft000080">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="a8b458e4762cb31e7ee15e72b7d15e934"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PluralFormat::PluralFormat </td> <td>(</td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </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> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Creates a new <code><a class="el" href="classPluralFormat.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="classPluralFormat.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="draft"><dt><b><a class="el" href="draft.html#_draft000081">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="aafbce030c1b7bf47c0828832692ba41a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PluralFormat::PluralFormat </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </td> <td class="paramname"><em>locale</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>pattern</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Creates a new <code><a class="el" href="classPluralFormat.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="classPluralFormat.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="classPluralFormat.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="draft"><dt><b><a class="el" href="draft.html#_draft000082">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="a855e9ec92c89f5aa240f207e8aaa57ed"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PluralFormat::PluralFormat </td> <td>(</td> <td class="paramtype">const <a class="el" href="classPluralRules.html">PluralRules</a> & </td> <td class="paramname"><em>rules</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>pattern</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Creates a new <code><a class="el" href="classPluralFormat.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="classPluralFormat.html">PluralFormat</a></code> object. </td></tr> <tr><td class="paramname">pattern</td><td>the pattern for this <code><a class="el" href="classPluralFormat.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="draft"><dt><b><a class="el" href="draft.html#_draft000083">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="af12d02e746d81166620f5cd6d83ce0ab"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PluralFormat::PluralFormat </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </td> <td class="paramname"><em>locale</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classPluralRules.html">PluralRules</a> & </td> <td class="paramname"><em>rules</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>pattern</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Creates a new <code><a class="el" href="classPluralFormat.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="classPluralFormat.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="classPluralFormat.html">PluralFormat</a></code> object. </td></tr> <tr><td class="paramname">pattern</td><td>the pattern for this <code><a class="el" href="classPluralFormat.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="draft"><dt><b><a class="el" href="draft.html#_draft000084">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="a1e6fbf3c1ca8c824dd19002d0ab9cfc8"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PluralFormat::PluralFormat </td> <td>(</td> <td class="paramtype">const <a class="el" href="classPluralFormat.html">PluralFormat</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>copy constructor. </p> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000085">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="ab4f9f4e1052a57a64aadf939566b520e"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual 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="draft"><dt><b><a class="el" href="draft.html#_draft000086">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a2e4529df12fd1c2a6f62365a370f5695"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> PluralFormat::applyPattern </td> <td>(</td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </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> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>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="draft"><dt><b><a class="el" href="draft.html#_draft000087">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="aeb3f76cdf69fb00fec050171662d3a09"></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="classFormat.html">Format</a>* PluralFormat::clone </td> <td>(</td> <td class="paramtype"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </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="classFormat.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="draft"><dt><b><a class="el" href="draft.html#_draft000097">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> <p>Implements <a class="el" href="classFormat.html#a4e7ebd5cfd390c35e2bda88257f8b51a">Format</a>.</p> </div> </div> <a class="anchor" id="a574169695e8a514c4ba0f2dd070d0e71"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> PluralFormat::format </td> <td>(</td> <td class="paramtype">int32_t </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> & </td> <td class="paramname"><em>status</em> </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="classPluralFormat.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="draft"><dt><b><a class="el" href="draft.html#_draft000088">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="a68cdf4bb5201604fa93949adf5e396f7"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> PluralFormat::format </td> <td>(</td> <td class="paramtype">double </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> & </td> <td class="paramname"><em>status</em> </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="classPluralFormat.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="draft"><dt><b><a class="el" href="draft.html#_draft000089">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="ad6e8a6ee99827d0ffbc24d6ae0c841b2"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>& PluralFormat::format </td> <td>(</td> <td class="paramtype">int32_t </td> <td class="paramname"><em>number</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>appendTo</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classFieldPosition.html">FieldPosition</a> & </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> & </td> <td class="paramname"><em>status</em> </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="classPluralFormat.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="draft"><dt><b><a class="el" href="draft.html#_draft000090">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="a7b852373bf7abda5355dfc56cafb79f7"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>& PluralFormat::format </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>number</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>appendTo</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classFieldPosition.html">FieldPosition</a> & </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> & </td> <td class="paramname"><em>status</em> </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="classPluralFormat.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="draft"><dt><b><a class="el" href="draft.html#_draft000091">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="a405026e9c17195c2421bb30b96e458f4"></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="classUnicodeString.html">UnicodeString</a>& PluralFormat::format </td> <td>(</td> <td class="paramtype">const <a class="el" href="classFormattable.html">Formattable</a> & </td> <td class="paramname"><em>obj</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>appendTo</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classFieldPosition.html">FieldPosition</a> & </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> & </td> <td class="paramname"><em>status</em> </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>Redeclared <a class="el" href="classFormat.html" title="Base class for all formats. ">Format</a> method. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">obj</td><td>The object to be formatted into a string. </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="draft"><dt><b><a class="el" href="draft.html#_draft000098">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> <p>Implements <a class="el" href="classFormat.html#a12ffb857c5c9a553270dfe9a71fbd8e9">Format</a>.</p> </div> </div> <a class="anchor" id="a12e3f92dd37991545c313fd149107e9c"></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="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> 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="draft"><dt><b><a class="el" href="draft.html#_draft000102">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> <p>Implements <a class="el" href="classFormat.html#ac961d410d174518e5a3ebb8bbef45cd7">Format</a>.</p> </div> </div> <a class="anchor" id="aa3db9061fda6d0a85b8143f8d7bedcd5"></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="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> PluralFormat::getStaticClassID </td> <td>(</td> <td class="paramtype"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </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="draft"><dt><b><a class="el" href="draft.html#_draft000101">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0</dd></dl> </div> </div> <a class="anchor" id="a6c1ce757f5aa6475aafa63c066f9825b"></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> PluralFormat::operator!= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classFormat.html">Format</a> & </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="classPluralFormat.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="draft"><dt><b><a class="el" href="draft.html#_draft000096">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="a4145baa65aaccfbc3ff6a8c34be82213"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classPluralFormat.html">PluralFormat</a>& PluralFormat::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classPluralFormat.html">PluralFormat</a> & </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="classPluralFormat.html">PluralFormat</a> object to copy from. </td></tr> </table> </dd> </dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000094">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="ae7e12f077b16fb02f069d9830096d96b"></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> PluralFormat::operator== </td> <td>(</td> <td class="paramtype">const <a class="el" href="classFormat.html">Format</a> & </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="classPluralFormat.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="draft"><dt><b><a class="el" href="draft.html#_draft000095">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> <p>Implements <a class="el" href="classFormat.html#ad9be7e8b7bef97013ff74ef1be3903a5">Format</a>.</p> </div> </div> <a class="anchor" id="a24e62f6a197c2b8e524dd40ce58a89c5"></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="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> PluralFormat::parseObject </td> <td>(</td> <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>source</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classFormattable.html">Formattable</a> & </td> <td class="paramname"><em>result</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classParsePosition.html">ParsePosition</a> & </td> <td class="paramname"><em>parse_pos</em> </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="classPluralFormat.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="classFormat.html#aa53bea97b986c2f21e5638aa30aa08b7" 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="classFormattable.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="draft"><dt><b><a class="el" href="draft.html#_draft000100">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> <p>Implements <a class="el" href="classFormat.html#aa53bea97b986c2f21e5638aa30aa08b7">Format</a>.</p> </div> </div> <a class="anchor" id="afe885b1b77e6e4581e61ec7e9ce3d860"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> PluralFormat::setLocale </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </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> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>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="classNumberFormat.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="">PluralFormat(locale)</a>. </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="draft"><dt><b><a class="el" href="draft.html#_draft000092">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="ab5d863d4822e3f40366c3fb9946703dc"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> PluralFormat::setNumberFormat </td> <td>(</td> <td class="paramtype">const <a class="el" href="classNumberFormat.html">NumberFormat</a> * </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> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>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="draft"><dt><b><a class="el" href="draft.html#_draft000093">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.0 </dd></dl> </div> </div> <a class="anchor" id="a27d0ead83b43868194c44c3abfd423e9"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>& PluralFormat::toPattern </td> <td>(</td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </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="classPluralFormat.html#a2e4529df12fd1c2a6f62365a370f5695" 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="classUnicodeString.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="draft"><dt><b><a class="el" href="draft.html#_draft000099">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in 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  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.5 </small></address> </body> </html>