<!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.3.1"/> <title>ICU 49.1.1: upluralrules.h Source File</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="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 49.1.1  <span id="projectnumber">49.1.1</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.3.1 --> <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><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_73bc6a9bb617ea1bc89a10aa59ce84e4.html">i18n</a></li><li class="navelem"><a class="el" href="dir_0119ce638985e8a1561a00fdb5f76ff6.html">unicode</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">upluralrules.h</div> </div> </div><!--header--> <div class="contents"> <a href="upluralrules_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">*****************************************************************************************</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">* Copyright (C) 2010-2012, International Business Machines</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">* Corporation and others. All Rights Reserved.</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">*****************************************************************************************</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">*/</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#ifndef UPLURALRULES_H</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor"></span><span class="preprocessor">#define UPLURALRULES_H</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="utypes_8h.html" title="Basic definitions for ICU, for both C and C++ APIs.">unicode/utypes.h</a>"</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#if !UCONFIG_NO_FORMATTING</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "<a class="code" href="localpointer_8h.html" title="C++ API: "Smart pointers" for use with and in ICU4C C++ code.">unicode/localpointer.h</a>"</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div> <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">struct </span><a class="code" href="upluralrules_8h.html#a6fe07aecf6dfa5353e77be6c78e1ff36" title="C typedef for struct UPluralRules.">UPluralRules</a>;</div> <div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="upluralrules_8h.html#a6fe07aecf6dfa5353e77be6c78e1ff36"> 45</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="upluralrules_8h.html#a6fe07aecf6dfa5353e77be6c78e1ff36" title="C typedef for struct UPluralRules.">UPluralRules</a> <a class="code" href="upluralrules_8h.html#a6fe07aecf6dfa5353e77be6c78e1ff36" title="C typedef for struct UPluralRules.">UPluralRules</a>; </div> <div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <a class="code" href="umachine_8h.html#a41691e68155dca13bc1f020fa30dac82" title="This is used to declare a function as a draft public ICU C API.">U_DRAFT</a> <a class="code" href="upluralrules_8h.html#a6fe07aecf6dfa5353e77be6c78e1ff36" title="C typedef for struct UPluralRules.">UPluralRules</a>* U_EXPORT2</div> <div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <a class="code" href="upluralrules_8h.html#a2118fdf77493a611db487c736c8378d1" title="Open a new UPluralRules object using the predefined plural rules for a given locale.">uplrules_open</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *locale,</div> <div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div> <div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <a class="code" href="umachine_8h.html#a41691e68155dca13bc1f020fa30dac82" title="This is used to declare a function as a draft public ICU C API.">U_DRAFT</a> <span class="keywordtype">void</span> U_EXPORT2</div> <div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <a class="code" href="upluralrules_8h.html#a5f8f8ef893e446e154f5be80d4f410eb" title="Close a UPluralRules object.">uplrules_close</a>(<a class="code" href="upluralrules_8h.html#a6fe07aecf6dfa5353e77be6c78e1ff36" title="C typedef for struct UPluralRules.">UPluralRules</a> *uplrules);</div> <div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div> <div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div> <div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="preprocessor">#if U_SHOW_CPLUSPLUS_API</span></div> <div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <a class="code" href="uversion_8h.html#a7d9374e037299886d4192b763b4c5e8b" title="This is used to begin a declaration of a public ICU C++ API.">U_NAMESPACE_BEGIN</a></div> <div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div> <div class="line"><a name="l00081"></a><span class="lineno"> 81</span> U_DEFINE_LOCAL_OPEN_POINTER(LocalUPluralRulesPointer, <a class="code" href="upluralrules_8h.html#a6fe07aecf6dfa5353e77be6c78e1ff36" title="C typedef for struct UPluralRules.">UPluralRules</a>, <a class="code" href="upluralrules_8h.html#a5f8f8ef893e446e154f5be80d4f410eb" title="Close a UPluralRules object.">uplrules_close</a>);</div> <div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div> <div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <a class="code" href="uversion_8h.html#a3da1f00f3b02976ac53c014a3e4c0933" title="This is used to end a declaration of a public ICU C++ API.">U_NAMESPACE_END</a></div> <div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div> <div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="preprocessor">#endif</span></div> <div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div> <div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <a class="code" href="umachine_8h.html#a41691e68155dca13bc1f020fa30dac82" title="This is used to declare a function as a draft public ICU C API.">U_DRAFT</a> int32_t U_EXPORT2</div> <div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <a class="code" href="upluralrules_8h.html#ad2e1a8025cca2078e5a303802480540d" title="Given a number, returns the keyword of the first rule that applies to the number, according to the su...">uplrules_select</a>(<span class="keyword">const</span> <a class="code" href="upluralrules_8h.html#a6fe07aecf6dfa5353e77be6c78e1ff36" title="C typedef for struct UPluralRules.">UPluralRules</a> *uplrules,</div> <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordtype">double</span> number,</div> <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be char16_t, if available, or wchar_t if that is 16 bits wide; always assumed to be u...">UChar</a> *keyword, int32_t capacity,</div> <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all C++ compilers...">UErrorCode</a> *status);</div> <div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div> <div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="preprocessor">#endif </span><span class="comment">/* #if !UCONFIG_NO_FORMATTING */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="preprocessor">#endif</span></div> </div><!-- fragment --></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.3.1 </small></address> </body> </html>