<!-- This comment will put IE 6, 7 and 8 in quirks mode --> <!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"/> <title>ICU 4.4.1: LocaleDisplayNames Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javaScript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body onload='searchBox.OnSelectItem(0);'> <!-- Generated by Doxygen 1.6.2-20100208 --> <script type="text/javascript"><!-- var searchBox = new SearchBox("searchBox", "search",false,'Search'); --></script> <div class="navigation" id="top"> <div class="tabs"> <ul> <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"> <img id="MSearchSelect" src="search/search.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)"/> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </div> </li> </ul> </div> <div class="tabs"> <ul> <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> </div> <div class="contents"> <h1>LocaleDisplayNames Class Reference</h1><!-- doxytag: class="LocaleDisplayNames" --><!-- doxytag: inherits="UObject" --> <p>Returns display names of Locales and components of Locales. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="locdspnm_8h_source.html">locdspnm.h</a>></code></p> <div class="dynheader"> Inheritance diagram for LocaleDisplayNames:</div> <div class="dynsection"> <div class="center"> <img src="classLocaleDisplayNames.png" usemap="#LocaleDisplayNames_map" alt=""/> <map id="LocaleDisplayNames_map" name="LocaleDisplayNames_map"> <area href="classUObject.html" alt="UObject" shape="rect" coords="0,56,130,80"/> <area href="classUMemory.html" alt="UMemory" shape="rect" coords="0,0,130,24"/> </map> </div> </div> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocaleDisplayNames.html#a907375bb3d2909ab26f9e418be5b4135">~LocaleDisplayNames</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a907375bb3d2909ab26f9e418be5b4135"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocaleDisplayNames.html#a2b5c09d721dc20b899e88da5530656ba">getLocale</a> () const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the locale used to determine the display names. <a href="#a2b5c09d721dc20b899e88da5530656ba"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="uldnames_8h.html#a58e81da2dab7974bee76ced91d606d14">UDialectHandling</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocaleDisplayNames.html#aa7be4db71ff7339dc2c00756a0a5c652">getDialectHandling</a> () const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the dialect handling used in the display names. <a href="#aa7be4db71ff7339dc2c00756a0a5c652"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocaleDisplayNames.html#a3732764e0b5d2ac968aa841c68b51718">localeDisplayName</a> (const <a class="el" href="classLocale.html">Locale</a> &locale, <a class="el" href="classUnicodeString.html">UnicodeString</a> &result) const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the display name of the provided locale. <a href="#a3732764e0b5d2ac968aa841c68b51718"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocaleDisplayNames.html#a4366f3c781cc5ab240aae411775d14f2">localeDisplayName</a> (const char *localeId, <a class="el" href="classUnicodeString.html">UnicodeString</a> &result) const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the display name of the provided locale id. <a href="#a4366f3c781cc5ab240aae411775d14f2"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocaleDisplayNames.html#a0cc2ee2abd57d82277604625b479ddd1">languageDisplayName</a> (const char *lang, <a class="el" href="classUnicodeString.html">UnicodeString</a> &result) const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the display name of the provided language code. <a href="#a0cc2ee2abd57d82277604625b479ddd1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocaleDisplayNames.html#af420c25e78d149d71bf664f47845b03a">scriptDisplayName</a> (const char *script, <a class="el" href="classUnicodeString.html">UnicodeString</a> &result) const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the display name of the provided script code. <a href="#af420c25e78d149d71bf664f47845b03a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocaleDisplayNames.html#a9e7ce1289c22d763cf508c958015a74c">scriptDisplayName</a> (<a class="el" href="uscript_8h.html#a5036ff9ca2a7f1d2bde07875bb235df0">UScriptCode</a> scriptCode, <a class="el" href="classUnicodeString.html">UnicodeString</a> &result) const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the display name of the provided script code. <a href="#a9e7ce1289c22d763cf508c958015a74c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocaleDisplayNames.html#a90e1aa34717eb62e75f19aee647ee0c0">regionDisplayName</a> (const char *region, <a class="el" href="classUnicodeString.html">UnicodeString</a> &result) const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the display name of the provided region code. <a href="#a90e1aa34717eb62e75f19aee647ee0c0"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocaleDisplayNames.html#a8dd94423666e80aca64e570891bc9023">variantDisplayName</a> (const char *variant, <a class="el" href="classUnicodeString.html">UnicodeString</a> &result) const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the display name of the provided variant. <a href="#a8dd94423666e80aca64e570891bc9023"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocaleDisplayNames.html#a35ddd7e8c23cc73149ded396787935e6">keyDisplayName</a> (const char *key, <a class="el" href="classUnicodeString.html">UnicodeString</a> &result) const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the display name of the provided locale key. <a href="#a35ddd7e8c23cc73149ded396787935e6"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocaleDisplayNames.html#af0f14ddb91fbdac6aa3dec3ed9060618">keyValueDisplayName</a> (const char *key, const char *value, <a class="el" href="classUnicodeString.html">UnicodeString</a> &result) const =0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the display name of the provided value (used with the provided key). <a href="#af0f14ddb91fbdac6aa3dec3ed9060618"></a><br/></td></tr> <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classLocaleDisplayNames.html">LocaleDisplayNames</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocaleDisplayNames.html#ae19434e3d5619c51ff6fdc8ce65e739c">createInstance</a> (const <a class="el" href="classLocale.html">Locale</a> &locale)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convenience overload of <a class="el" href="classLocaleDisplayNames.html#af3ed996c7e638898ae91fa062d224802">createInstance(const Locale& locale, UDialectHandling dialectHandling)</a> that specifies STANDARD dialect handling. <a href="#ae19434e3d5619c51ff6fdc8ce65e739c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classLocaleDisplayNames.html">LocaleDisplayNames</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocaleDisplayNames.html#af3ed996c7e638898ae91fa062d224802">createInstance</a> (const <a class="el" href="classLocale.html">Locale</a> &locale, <a class="el" href="uldnames_8h.html#a58e81da2dab7974bee76ced91d606d14">UDialectHandling</a> dialectHandling)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns an instance of <a class="el" href="classLocaleDisplayNames.html" title="Returns display names of Locales and components of Locales.">LocaleDisplayNames</a> that returns names formatted for the provided locale, using the provided dialectHandling. <a href="#af3ed996c7e638898ae91fa062d224802"></a><br/></td></tr> <tr><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="classLocaleDisplayNames.html#a58a76b23a8354380dc8d7603ca5eaba3">getStaticClassID</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for this class. <a href="#a58a76b23a8354380dc8d7603ca5eaba3"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Returns display names of Locales and components of Locales. </p> <p>For more information on language, script, region, variant, key, and values, see <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>. </p> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000159">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl> <p>Definition at line <a class="el" href="locdspnm_8h_source.html#l00032">32</a> of file <a class="el" href="locdspnm_8h_source.html">locdspnm.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a907375bb3d2909ab26f9e418be5b4135"></a><!-- doxytag: member="LocaleDisplayNames::~LocaleDisplayNames" ref="a907375bb3d2909ab26f9e418be5b4135" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">LocaleDisplayNames::~LocaleDisplayNames </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Destructor. </p> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000160">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl> <p>Definition at line <a class="el" href="locdspnm_8h_source.html#l00180">180</a> of file <a class="el" href="locdspnm_8h_source.html">locdspnm.h</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="af3ed996c7e638898ae91fa062d224802"></a><!-- doxytag: member="LocaleDisplayNames::createInstance" ref="af3ed996c7e638898ae91fa062d224802" args="(const Locale &locale, UDialectHandling dialectHandling)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classLocaleDisplayNames.html">LocaleDisplayNames</a>* LocaleDisplayNames::createInstance </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="uldnames_8h.html#a58e81da2dab7974bee76ced91d606d14">UDialectHandling</a> </td> <td class="paramname"> <em>dialectHandling</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns an instance of <a class="el" href="classLocaleDisplayNames.html" title="Returns display names of Locales and components of Locales.">LocaleDisplayNames</a> that returns names formatted for the provided locale, using the provided dialectHandling. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>locale</em> </td><td>the display locale </td></tr> <tr><td valign="top"></td><td valign="top"><em>dialectHandling</em> </td><td>how to select names for locales </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>a <a class="el" href="classLocaleDisplayNames.html" title="Returns display names of Locales and components of Locales.">LocaleDisplayNames</a> instance </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000162">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl> </div> </div> <a class="anchor" id="ae19434e3d5619c51ff6fdc8ce65e739c"></a><!-- doxytag: member="LocaleDisplayNames::createInstance" ref="ae19434e3d5619c51ff6fdc8ce65e739c" args="(const Locale &locale)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classLocaleDisplayNames.html">LocaleDisplayNames</a> * LocaleDisplayNames::createInstance </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </td> <td class="paramname"> <em>locale</em></td> <td> ) </td> <td><code> [inline, static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Convenience overload of <a class="el" href="classLocaleDisplayNames.html#af3ed996c7e638898ae91fa062d224802">createInstance(const Locale& locale, UDialectHandling dialectHandling)</a> that specifies STANDARD dialect handling. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>locale</em> </td><td>the display locale </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>a <a class="el" href="classLocaleDisplayNames.html" title="Returns display names of Locales and components of Locales.">LocaleDisplayNames</a> instance </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000161">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl> <p>Definition at line <a class="el" href="locdspnm_8h_source.html#l00183">183</a> of file <a class="el" href="locdspnm_8h_source.html">locdspnm.h</a>.</p> <p>References <a class="el" href="uldnames_8h_source.html#l00030">ULDN_STANDARD_NAMES</a>.</p> </div> </div> <a class="anchor" id="aa7be4db71ff7339dc2c00756a0a5c652"></a><!-- doxytag: member="LocaleDisplayNames::getDialectHandling" ref="aa7be4db71ff7339dc2c00756a0a5c652" args="() const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="uldnames_8h.html#a58e81da2dab7974bee76ced91d606d14">UDialectHandling</a> LocaleDisplayNames::getDialectHandling </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the dialect handling used in the display names. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>the dialect handling enum </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000164">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl> </div> </div> <a class="anchor" id="a2b5c09d721dc20b899e88da5530656ba"></a><!-- doxytag: member="LocaleDisplayNames::getLocale" ref="a2b5c09d721dc20b899e88da5530656ba" args="() const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const <a class="el" href="classLocale.html">Locale</a>& LocaleDisplayNames::getLocale </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the locale used to determine the display names. </p> <p>This is not necessarily the same locale passed to <a class="el" href="">getInstance</a>. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>the display locale </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000163">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl> </div> </div> <a class="anchor" id="a58a76b23a8354380dc8d7603ca5eaba3"></a><!-- doxytag: member="LocaleDisplayNames::getStaticClassID" ref="a58a76b23a8354380dc8d7603ca5eaba3" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> LocaleDisplayNames::getStaticClassID </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>ICU "poor man's RTTI", returns a UClassID for this class. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>a UClassID for this class. </dd></dl> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000319">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 4.4 // TODO </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000174">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.6 </dd></dl> </div> </div> <a class="anchor" id="a35ddd7e8c23cc73149ded396787935e6"></a><!-- doxytag: member="LocaleDisplayNames::keyDisplayName" ref="a35ddd7e8c23cc73149ded396787935e6" args="(const char *key, UnicodeString &result) const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>& LocaleDisplayNames::keyDisplayName </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>key</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>result</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the display name of the provided locale key. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>the locale key name </td></tr> <tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>receives the locale key's display name </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the display name of the provided locale key </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000172">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl> </div> </div> <a class="anchor" id="af0f14ddb91fbdac6aa3dec3ed9060618"></a><!-- doxytag: member="LocaleDisplayNames::keyValueDisplayName" ref="af0f14ddb91fbdac6aa3dec3ed9060618" args="(const char *key, const char *value, UnicodeString &result) const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>& LocaleDisplayNames::keyValueDisplayName </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>key</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>value</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>result</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the display name of the provided value (used with the provided key). </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>the locale key name </td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>the locale key's value </td></tr> <tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>receives the value's display name </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the display name of the provided value </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000173">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl> </div> </div> <a class="anchor" id="a0cc2ee2abd57d82277604625b479ddd1"></a><!-- doxytag: member="LocaleDisplayNames::languageDisplayName" ref="a0cc2ee2abd57d82277604625b479ddd1" args="(const char *lang, UnicodeString &result) const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>& LocaleDisplayNames::languageDisplayName </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>lang</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>result</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the display name of the provided language code. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>lang</em> </td><td>the language code </td></tr> <tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>receives the language code's display name </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the display name of the provided language code </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000167">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl> </div> </div> <a class="anchor" id="a4366f3c781cc5ab240aae411775d14f2"></a><!-- doxytag: member="LocaleDisplayNames::localeDisplayName" ref="a4366f3c781cc5ab240aae411775d14f2" args="(const char *localeId, UnicodeString &result) const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>& LocaleDisplayNames::localeDisplayName </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>localeId</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>result</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the display name of the provided locale id. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>localeId</em> </td><td>the id of the locale whose display name to return </td></tr> <tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>receives the locale's display name </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the display name of the provided locale </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000166">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl> </div> </div> <a class="anchor" id="a3732764e0b5d2ac968aa841c68b51718"></a><!-- doxytag: member="LocaleDisplayNames::localeDisplayName" ref="a3732764e0b5d2ac968aa841c68b51718" args="(const Locale &locale, UnicodeString &result) const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>& LocaleDisplayNames::localeDisplayName </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="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"> <em>result</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the display name of the provided locale. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>locale</em> </td><td>the locale whose display name to return </td></tr> <tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>receives the locale's display name </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the display name of the provided locale </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000165">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl> </div> </div> <a class="anchor" id="a90e1aa34717eb62e75f19aee647ee0c0"></a><!-- doxytag: member="LocaleDisplayNames::regionDisplayName" ref="a90e1aa34717eb62e75f19aee647ee0c0" args="(const char *region, UnicodeString &result) const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>& LocaleDisplayNames::regionDisplayName </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>region</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>result</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the display name of the provided region code. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>region</em> </td><td>the region code </td></tr> <tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>receives the region code's display name </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the display name of the provided region code </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000170">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl> </div> </div> <a class="anchor" id="a9e7ce1289c22d763cf508c958015a74c"></a><!-- doxytag: member="LocaleDisplayNames::scriptDisplayName" ref="a9e7ce1289c22d763cf508c958015a74c" args="(UScriptCode scriptCode, UnicodeString &result) const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>& LocaleDisplayNames::scriptDisplayName </td> <td>(</td> <td class="paramtype"><a class="el" href="uscript_8h.html#a5036ff9ca2a7f1d2bde07875bb235df0">UScriptCode</a> </td> <td class="paramname"> <em>scriptCode</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>result</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the display name of the provided script code. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>scriptCode</em> </td><td>the script code number </td></tr> <tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>receives the script code's display name </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the display name of the provided script code </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000169">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl> </div> </div> <a class="anchor" id="af420c25e78d149d71bf664f47845b03a"></a><!-- doxytag: member="LocaleDisplayNames::scriptDisplayName" ref="af420c25e78d149d71bf664f47845b03a" args="(const char *script, UnicodeString &result) const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>& LocaleDisplayNames::scriptDisplayName </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>script</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>result</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the display name of the provided script code. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>script</em> </td><td>the script code </td></tr> <tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>receives the script code's display name </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the display name of the provided script code </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000168">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl> </div> </div> <a class="anchor" id="a8dd94423666e80aca64e570891bc9023"></a><!-- doxytag: member="LocaleDisplayNames::variantDisplayName" ref="a8dd94423666e80aca64e570891bc9023" args="(const char *variant, UnicodeString &result) const =0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classUnicodeString.html">UnicodeString</a>& LocaleDisplayNames::variantDisplayName </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>variant</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>result</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the display name of the provided variant. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>variant</em> </td><td>the variant string </td></tr> <tr><td valign="top"></td><td valign="top"><em>result</em> </td><td>receives the variant's display name </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the display name of the provided variant </dd></dl> <dl class="draft"><dt><b><a class="el" href="draft.html#_draft000171">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 4.4 </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="locdspnm_8h_source.html">locdspnm.h</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>Defines</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address> </body> </html>