Server IP : 103.119.228.120 / Your IP : 3.23.101.60 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: Locale 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> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#friends">Friends</a> </div> <div class="headertitle"> <div class="title">Locale Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>A <code><a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a></code> object represents a specific geographical, political, or cultural region. <a href="classLocale.html#details">More...</a></p> <p><code>#include <<a class="el" href="locid_8h_source.html">locid.h</a>></code></p> <div class="dynheader"> Inheritance diagram for Locale:</div> <div class="dyncontent"> <div class="center"> <img src="classLocale.png" usemap="#Locale_map" alt=""/> <map id="Locale_map" name="Locale_map"> <area href="classUObject.html" title="UObject is the common ICU "boilerplate" class. " alt="UObject" shape="rect" coords="0,56,66,80"/> <area href="classUMemory.html" title="UMemory is the common ICU base class. " alt="UMemory" shape="rect" coords="0,0,66,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:a599d7bb7a08b138cb069e39987846b3f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a599d7bb7a08b138cb069e39987846b3f">Locale</a> ()</td></tr> <tr class="memdesc:a599d7bb7a08b138cb069e39987846b3f"><td class="mdescLeft"> </td><td class="mdescRight">Construct a default locale object, a <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> for the default locale ID. <a href="#a599d7bb7a08b138cb069e39987846b3f">More...</a><br/></td></tr> <tr class="separator:a599d7bb7a08b138cb069e39987846b3f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2e847ff3c5df01b077293a30347bac11"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a2e847ff3c5df01b077293a30347bac11">Locale</a> (const char *language, const char *country=0, const char *variant=0, const char *keywordsAndValues=0)</td></tr> <tr class="memdesc:a2e847ff3c5df01b077293a30347bac11"><td class="mdescLeft"> </td><td class="mdescRight">Construct a locale from language, country, variant. <a href="#a2e847ff3c5df01b077293a30347bac11">More...</a><br/></td></tr> <tr class="separator:a2e847ff3c5df01b077293a30347bac11"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab7a2e36b993dfec56609f03348309172"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#ab7a2e36b993dfec56609f03348309172">Locale</a> (const <a class="el" href="classLocale.html">Locale</a> &other)</td></tr> <tr class="memdesc:ab7a2e36b993dfec56609f03348309172"><td class="mdescLeft"> </td><td class="mdescRight">Initializes a <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> object from another <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> object. <a href="#ab7a2e36b993dfec56609f03348309172">More...</a><br/></td></tr> <tr class="separator:ab7a2e36b993dfec56609f03348309172"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a69855afaa3627ce0003ca5e5946af10e"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a69855afaa3627ce0003ca5e5946af10e">~Locale</a> ()</td></tr> <tr class="memdesc:a69855afaa3627ce0003ca5e5946af10e"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a69855afaa3627ce0003ca5e5946af10e">More...</a><br/></td></tr> <tr class="separator:a69855afaa3627ce0003ca5e5946af10e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1ba398b2e0c47460cbe953ce82510139"><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="classLocale.html#a1ba398b2e0c47460cbe953ce82510139">operator=</a> (const <a class="el" href="classLocale.html">Locale</a> &other)</td></tr> <tr class="memdesc:a1ba398b2e0c47460cbe953ce82510139"><td class="mdescLeft"> </td><td class="mdescRight">Replaces the entire contents of *this with the specified value. <a href="#a1ba398b2e0c47460cbe953ce82510139">More...</a><br/></td></tr> <tr class="separator:a1ba398b2e0c47460cbe953ce82510139"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:abba7de6311743eb2e42757dca2f89a27"><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="classLocale.html#abba7de6311743eb2e42757dca2f89a27">operator==</a> (const <a class="el" href="classLocale.html">Locale</a> &other) const </td></tr> <tr class="memdesc:abba7de6311743eb2e42757dca2f89a27"><td class="mdescLeft"> </td><td class="mdescRight">Checks if two locale keys are the same. <a href="#abba7de6311743eb2e42757dca2f89a27">More...</a><br/></td></tr> <tr class="separator:abba7de6311743eb2e42757dca2f89a27"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a15114dcd2b70f2c98cc066e5ac83e62c"><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="classLocale.html#a15114dcd2b70f2c98cc066e5ac83e62c">operator!=</a> (const <a class="el" href="classLocale.html">Locale</a> &other) const </td></tr> <tr class="memdesc:a15114dcd2b70f2c98cc066e5ac83e62c"><td class="mdescLeft"> </td><td class="mdescRight">Checks if two locale keys are not the same. <a href="#a15114dcd2b70f2c98cc066e5ac83e62c">More...</a><br/></td></tr> <tr class="separator:a15114dcd2b70f2c98cc066e5ac83e62c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3e4841a11d0f945669123a48af44a477"><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="classLocale.html#a3e4841a11d0f945669123a48af44a477">clone</a> () const </td></tr> <tr class="memdesc:a3e4841a11d0f945669123a48af44a477"><td class="mdescLeft"> </td><td class="mdescRight">Clone this object. <a href="#a3e4841a11d0f945669123a48af44a477">More...</a><br/></td></tr> <tr class="separator:a3e4841a11d0f945669123a48af44a477"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7c0e53c666ea52387d0edae91f75c94f"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a7c0e53c666ea52387d0edae91f75c94f">getLanguage</a> () const </td></tr> <tr class="memdesc:a7c0e53c666ea52387d0edae91f75c94f"><td class="mdescLeft"> </td><td class="mdescRight">Returns the locale's ISO-639 language code. <a href="#a7c0e53c666ea52387d0edae91f75c94f">More...</a><br/></td></tr> <tr class="separator:a7c0e53c666ea52387d0edae91f75c94f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a73e3fa1ce9df00989f59568cfb1fabed"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a73e3fa1ce9df00989f59568cfb1fabed">getScript</a> () const </td></tr> <tr class="memdesc:a73e3fa1ce9df00989f59568cfb1fabed"><td class="mdescLeft"> </td><td class="mdescRight">Returns the locale's ISO-15924 abbreviation script code. <a href="#a73e3fa1ce9df00989f59568cfb1fabed">More...</a><br/></td></tr> <tr class="separator:a73e3fa1ce9df00989f59568cfb1fabed"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a07f8f74b134a356feaa9c5df102f29fe"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a07f8f74b134a356feaa9c5df102f29fe">getCountry</a> () const </td></tr> <tr class="memdesc:a07f8f74b134a356feaa9c5df102f29fe"><td class="mdescLeft"> </td><td class="mdescRight">Returns the locale's ISO-3166 country code. <a href="#a07f8f74b134a356feaa9c5df102f29fe">More...</a><br/></td></tr> <tr class="separator:a07f8f74b134a356feaa9c5df102f29fe"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:affc1e557e947797dbe414e58618e5e36"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#affc1e557e947797dbe414e58618e5e36">getVariant</a> () const </td></tr> <tr class="memdesc:affc1e557e947797dbe414e58618e5e36"><td class="mdescLeft"> </td><td class="mdescRight">Returns the locale's variant code. <a href="#affc1e557e947797dbe414e58618e5e36">More...</a><br/></td></tr> <tr class="separator:affc1e557e947797dbe414e58618e5e36"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a726741607239836d69022bf08e56f0ac"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a726741607239836d69022bf08e56f0ac">getName</a> () const </td></tr> <tr class="memdesc:a726741607239836d69022bf08e56f0ac"><td class="mdescLeft"> </td><td class="mdescRight">Returns the programmatic name of the entire locale, with the language, country and variant separated by underbars. <a href="#a726741607239836d69022bf08e56f0ac">More...</a><br/></td></tr> <tr class="separator:a726741607239836d69022bf08e56f0ac"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4687fb0906f86cdb82862df48fef035d"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a4687fb0906f86cdb82862df48fef035d">getBaseName</a> () const </td></tr> <tr class="memdesc:a4687fb0906f86cdb82862df48fef035d"><td class="mdescLeft"> </td><td class="mdescRight">Returns the programmatic name of the entire locale as getName would return, but without keywords. <a href="#a4687fb0906f86cdb82862df48fef035d">More...</a><br/></td></tr> <tr class="separator:a4687fb0906f86cdb82862df48fef035d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4556eca1c4de3f08247d191aa15c51b9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classStringEnumeration.html">StringEnumeration</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a4556eca1c4de3f08247d191aa15c51b9">createKeywords</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:a4556eca1c4de3f08247d191aa15c51b9"><td class="mdescLeft"> </td><td class="mdescRight">Gets the list of keywords for the specified locale. <a href="#a4556eca1c4de3f08247d191aa15c51b9">More...</a><br/></td></tr> <tr class="separator:a4556eca1c4de3f08247d191aa15c51b9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afd5dc6a5db78d87dad58e5423bbff0d9"><td class="memItemLeft" align="right" valign="top">int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#afd5dc6a5db78d87dad58e5423bbff0d9">getKeywordValue</a> (const char *keywordName, char *buffer, int32_t bufferCapacity, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const </td></tr> <tr class="memdesc:afd5dc6a5db78d87dad58e5423bbff0d9"><td class="mdescLeft"> </td><td class="mdescRight">Get the value for a keyword. <a href="#afd5dc6a5db78d87dad58e5423bbff0d9">More...</a><br/></td></tr> <tr class="separator:afd5dc6a5db78d87dad58e5423bbff0d9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a25b8aa4568ab78a0509c8dd50d468947"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a25b8aa4568ab78a0509c8dd50d468947">getISO3Language</a> () const </td></tr> <tr class="memdesc:a25b8aa4568ab78a0509c8dd50d468947"><td class="mdescLeft"> </td><td class="mdescRight">returns the locale's three-letter language code, as specified in ISO draft standard ISO-639-2. <a href="#a25b8aa4568ab78a0509c8dd50d468947">More...</a><br/></td></tr> <tr class="separator:a25b8aa4568ab78a0509c8dd50d468947"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a789b65b00263ba8c0b44ec7d4477f8fc"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a789b65b00263ba8c0b44ec7d4477f8fc">getISO3Country</a> () const </td></tr> <tr class="memdesc:a789b65b00263ba8c0b44ec7d4477f8fc"><td class="mdescLeft"> </td><td class="mdescRight">Fills in "name" with the locale's three-letter ISO-3166 country code. <a href="#a789b65b00263ba8c0b44ec7d4477f8fc">More...</a><br/></td></tr> <tr class="separator:a789b65b00263ba8c0b44ec7d4477f8fc"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8f91b5cc02e8ed0f4cf0fc68bc492ae1"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a8f91b5cc02e8ed0f4cf0fc68bc492ae1">getLCID</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>) const </td></tr> <tr class="memdesc:a8f91b5cc02e8ed0f4cf0fc68bc492ae1"><td class="mdescLeft"> </td><td class="mdescRight">Returns the Windows LCID value corresponding to this locale. <a href="#a8f91b5cc02e8ed0f4cf0fc68bc492ae1">More...</a><br/></td></tr> <tr class="separator:a8f91b5cc02e8ed0f4cf0fc68bc492ae1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a22ce8294a54735899bbcce3f8ad93eaf"><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="classLocale.html#a22ce8294a54735899bbcce3f8ad93eaf">getDisplayLanguage</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &dispLang) const </td></tr> <tr class="memdesc:a22ce8294a54735899bbcce3f8ad93eaf"><td class="mdescLeft"> </td><td class="mdescRight">Fills in "dispLang" with the name of this locale's language in a format suitable for user display in the default locale. <a href="#a22ce8294a54735899bbcce3f8ad93eaf">More...</a><br/></td></tr> <tr class="separator:a22ce8294a54735899bbcce3f8ad93eaf"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a91528f7de691ea382f7f8136bf99d8bd"><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="classLocale.html#a91528f7de691ea382f7f8136bf99d8bd">getDisplayLanguage</a> (const <a class="el" href="classLocale.html">Locale</a> &displayLocale, <a class="el" href="classUnicodeString.html">UnicodeString</a> &dispLang) const </td></tr> <tr class="memdesc:a91528f7de691ea382f7f8136bf99d8bd"><td class="mdescLeft"> </td><td class="mdescRight">Fills in "dispLang" with the name of this locale's language in a format suitable for user display in the locale specified by "displayLocale". <a href="#a91528f7de691ea382f7f8136bf99d8bd">More...</a><br/></td></tr> <tr class="separator:a91528f7de691ea382f7f8136bf99d8bd"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab5440507507d2ab902255bccf43fec5f"><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="classLocale.html#ab5440507507d2ab902255bccf43fec5f">getDisplayScript</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &dispScript) const </td></tr> <tr class="memdesc:ab5440507507d2ab902255bccf43fec5f"><td class="mdescLeft"> </td><td class="mdescRight">Fills in "dispScript" with the name of this locale's script in a format suitable for user display in the default locale. <a href="#ab5440507507d2ab902255bccf43fec5f">More...</a><br/></td></tr> <tr class="separator:ab5440507507d2ab902255bccf43fec5f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a567c4ea4a034c51b5c7bc2d5e6d1540f"><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="classLocale.html#a567c4ea4a034c51b5c7bc2d5e6d1540f">getDisplayScript</a> (const <a class="el" href="classLocale.html">Locale</a> &displayLocale, <a class="el" href="classUnicodeString.html">UnicodeString</a> &dispScript) const </td></tr> <tr class="memdesc:a567c4ea4a034c51b5c7bc2d5e6d1540f"><td class="mdescLeft"> </td><td class="mdescRight">Fills in "dispScript" with the name of this locale's country in a format suitable for user display in the locale specified by "displayLocale". <a href="#a567c4ea4a034c51b5c7bc2d5e6d1540f">More...</a><br/></td></tr> <tr class="separator:a567c4ea4a034c51b5c7bc2d5e6d1540f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab7ea1acf0c4f58907598a9f87d44fb80"><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="classLocale.html#ab7ea1acf0c4f58907598a9f87d44fb80">getDisplayCountry</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &dispCountry) const </td></tr> <tr class="memdesc:ab7ea1acf0c4f58907598a9f87d44fb80"><td class="mdescLeft"> </td><td class="mdescRight">Fills in "dispCountry" with the name of this locale's country in a format suitable for user display in the default locale. <a href="#ab7ea1acf0c4f58907598a9f87d44fb80">More...</a><br/></td></tr> <tr class="separator:ab7ea1acf0c4f58907598a9f87d44fb80"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a132301e5f4cdf819f5d4b8c3fd291183"><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="classLocale.html#a132301e5f4cdf819f5d4b8c3fd291183">getDisplayCountry</a> (const <a class="el" href="classLocale.html">Locale</a> &displayLocale, <a class="el" href="classUnicodeString.html">UnicodeString</a> &dispCountry) const </td></tr> <tr class="memdesc:a132301e5f4cdf819f5d4b8c3fd291183"><td class="mdescLeft"> </td><td class="mdescRight">Fills in "dispCountry" with the name of this locale's country in a format suitable for user display in the locale specified by "displayLocale". <a href="#a132301e5f4cdf819f5d4b8c3fd291183">More...</a><br/></td></tr> <tr class="separator:a132301e5f4cdf819f5d4b8c3fd291183"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afc45c6c509062b7f59b064835b55f6ec"><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="classLocale.html#afc45c6c509062b7f59b064835b55f6ec">getDisplayVariant</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &dispVar) const </td></tr> <tr class="memdesc:afc45c6c509062b7f59b064835b55f6ec"><td class="mdescLeft"> </td><td class="mdescRight">Fills in "dispVar" with the name of this locale's variant code in a format suitable for user display in the default locale. <a href="#afc45c6c509062b7f59b064835b55f6ec">More...</a><br/></td></tr> <tr class="separator:afc45c6c509062b7f59b064835b55f6ec"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a01bab29e4cbdc284b5ea8f166aabc457"><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="classLocale.html#a01bab29e4cbdc284b5ea8f166aabc457">getDisplayVariant</a> (const <a class="el" href="classLocale.html">Locale</a> &displayLocale, <a class="el" href="classUnicodeString.html">UnicodeString</a> &dispVar) const </td></tr> <tr class="memdesc:a01bab29e4cbdc284b5ea8f166aabc457"><td class="mdescLeft"> </td><td class="mdescRight">Fills in "dispVar" with the name of this locale's variant code in a format suitable for user display in the locale specified by "displayLocale". <a href="#a01bab29e4cbdc284b5ea8f166aabc457">More...</a><br/></td></tr> <tr class="separator:a01bab29e4cbdc284b5ea8f166aabc457"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:abf9e7097a9cc828b346e61c47e5e23c5"><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="classLocale.html#abf9e7097a9cc828b346e61c47e5e23c5">getDisplayName</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &name) const </td></tr> <tr class="memdesc:abf9e7097a9cc828b346e61c47e5e23c5"><td class="mdescLeft"> </td><td class="mdescRight">Fills in "name" with the name of this locale in a format suitable for user display in the default locale. <a href="#abf9e7097a9cc828b346e61c47e5e23c5">More...</a><br/></td></tr> <tr class="separator:abf9e7097a9cc828b346e61c47e5e23c5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1935ea040dab51999196c0bf89e87d99"><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="classLocale.html#a1935ea040dab51999196c0bf89e87d99">getDisplayName</a> (const <a class="el" href="classLocale.html">Locale</a> &displayLocale, <a class="el" href="classUnicodeString.html">UnicodeString</a> &name) const </td></tr> <tr class="memdesc:a1935ea040dab51999196c0bf89e87d99"><td class="mdescLeft"> </td><td class="mdescRight">Fills in "name" with the name of this locale in a format suitable for user display in the locale specfied by "displayLocale". <a href="#a1935ea040dab51999196c0bf89e87d99">More...</a><br/></td></tr> <tr class="separator:a1935ea040dab51999196c0bf89e87d99"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a664433180261f7b97a7a1a83ca3dfe78"><td class="memItemLeft" align="right" valign="top">int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a664433180261f7b97a7a1a83ca3dfe78">hashCode</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>) const </td></tr> <tr class="memdesc:a664433180261f7b97a7a1a83ca3dfe78"><td class="mdescLeft"> </td><td class="mdescRight">Generates a hash code for the locale. <a href="#a664433180261f7b97a7a1a83ca3dfe78">More...</a><br/></td></tr> <tr class="separator:a664433180261f7b97a7a1a83ca3dfe78"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4cb8b5e11ac02fedc83e9b23bfc5da70"><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="classLocale.html#a4cb8b5e11ac02fedc83e9b23bfc5da70">setToBogus</a> ()</td></tr> <tr class="memdesc:a4cb8b5e11ac02fedc83e9b23bfc5da70"><td class="mdescLeft"> </td><td class="mdescRight">Sets the locale to bogus A bogus locale represents a non-existing locale associated with services that can be instantiated from non-locale data in addition to locale (for example, collation can be instantiated from a locale and from a rule set). <a href="#a4cb8b5e11ac02fedc83e9b23bfc5da70">More...</a><br/></td></tr> <tr class="separator:a4cb8b5e11ac02fedc83e9b23bfc5da70"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac671e591506f640ac36b5943230aeb18"><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="classLocale.html#ac671e591506f640ac36b5943230aeb18">isBogus</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>) const </td></tr> <tr class="memdesc:ac671e591506f640ac36b5943230aeb18"><td class="mdescLeft"> </td><td class="mdescRight">Gets the bogus state. <a href="#ac671e591506f640ac36b5943230aeb18">More...</a><br/></td></tr> <tr class="separator:ac671e591506f640ac36b5943230aeb18"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a51d7b4c7c203e7155c30b77b83d57b92"><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="classLocale.html#a51d7b4c7c203e7155c30b77b83d57b92">getDynamicClassID</a> () const </td></tr> <tr class="memdesc:a51d7b4c7c203e7155c30b77b83d57b92"><td class="mdescLeft"> </td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for the actual class. <a href="#a51d7b4c7c203e7155c30b77b83d57b92">More...</a><br/></td></tr> <tr class="separator:a51d7b4c7c203e7155c30b77b83d57b92"><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:a669ca7c4ef168a75879bc2e847f151dd"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a669ca7c4ef168a75879bc2e847f151dd">getEnglish</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:a669ca7c4ef168a75879bc2e847f151dd"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this language. <a href="#a669ca7c4ef168a75879bc2e847f151dd">More...</a><br/></td></tr> <tr class="separator:a669ca7c4ef168a75879bc2e847f151dd"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac4577a88016e7111bd37906c136951c7"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#ac4577a88016e7111bd37906c136951c7">getFrench</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:ac4577a88016e7111bd37906c136951c7"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this language. <a href="#ac4577a88016e7111bd37906c136951c7">More...</a><br/></td></tr> <tr class="separator:ac4577a88016e7111bd37906c136951c7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a018ee898b7223c3b4cb3385d0f10464d"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a018ee898b7223c3b4cb3385d0f10464d">getGerman</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:a018ee898b7223c3b4cb3385d0f10464d"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this language. <a href="#a018ee898b7223c3b4cb3385d0f10464d">More...</a><br/></td></tr> <tr class="separator:a018ee898b7223c3b4cb3385d0f10464d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1154bcf5b170d721ac8e27f8fb046b8a"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a1154bcf5b170d721ac8e27f8fb046b8a">getItalian</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:a1154bcf5b170d721ac8e27f8fb046b8a"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this language. <a href="#a1154bcf5b170d721ac8e27f8fb046b8a">More...</a><br/></td></tr> <tr class="separator:a1154bcf5b170d721ac8e27f8fb046b8a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2131962c82b059c01da36c83de5a18aa"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a2131962c82b059c01da36c83de5a18aa">getJapanese</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:a2131962c82b059c01da36c83de5a18aa"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this language. <a href="#a2131962c82b059c01da36c83de5a18aa">More...</a><br/></td></tr> <tr class="separator:a2131962c82b059c01da36c83de5a18aa"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad3dc36f22bc5ef5b0fdaff1f49778b50"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#ad3dc36f22bc5ef5b0fdaff1f49778b50">getKorean</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:ad3dc36f22bc5ef5b0fdaff1f49778b50"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this language. <a href="#ad3dc36f22bc5ef5b0fdaff1f49778b50">More...</a><br/></td></tr> <tr class="separator:ad3dc36f22bc5ef5b0fdaff1f49778b50"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aeebb4e210cc2b9ea2c25a6607638ed82"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#aeebb4e210cc2b9ea2c25a6607638ed82">getChinese</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:aeebb4e210cc2b9ea2c25a6607638ed82"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this language. <a href="#aeebb4e210cc2b9ea2c25a6607638ed82">More...</a><br/></td></tr> <tr class="separator:aeebb4e210cc2b9ea2c25a6607638ed82"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1467301723a35cf6f42b0b8b47ed2dc5"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a1467301723a35cf6f42b0b8b47ed2dc5">getSimplifiedChinese</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:a1467301723a35cf6f42b0b8b47ed2dc5"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this language. <a href="#a1467301723a35cf6f42b0b8b47ed2dc5">More...</a><br/></td></tr> <tr class="separator:a1467301723a35cf6f42b0b8b47ed2dc5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afdeffb5b588d1d904e0c334b60251526"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#afdeffb5b588d1d904e0c334b60251526">getTraditionalChinese</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:afdeffb5b588d1d904e0c334b60251526"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this language. <a href="#afdeffb5b588d1d904e0c334b60251526">More...</a><br/></td></tr> <tr class="separator:afdeffb5b588d1d904e0c334b60251526"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa19e5f0ac81c6c7fd9c13d7515608ebd"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#aa19e5f0ac81c6c7fd9c13d7515608ebd">getFrance</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:aa19e5f0ac81c6c7fd9c13d7515608ebd"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this country/region. <a href="#aa19e5f0ac81c6c7fd9c13d7515608ebd">More...</a><br/></td></tr> <tr class="separator:aa19e5f0ac81c6c7fd9c13d7515608ebd"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1941bac04cee2957c063faabf6229218"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a1941bac04cee2957c063faabf6229218">getGermany</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:a1941bac04cee2957c063faabf6229218"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this country/region. <a href="#a1941bac04cee2957c063faabf6229218">More...</a><br/></td></tr> <tr class="separator:a1941bac04cee2957c063faabf6229218"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a83bc889adad165fb39305cf8364bb8e5"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a83bc889adad165fb39305cf8364bb8e5">getItaly</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:a83bc889adad165fb39305cf8364bb8e5"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this country/region. <a href="#a83bc889adad165fb39305cf8364bb8e5">More...</a><br/></td></tr> <tr class="separator:a83bc889adad165fb39305cf8364bb8e5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae8adc716e1c2a97d7dae249f1c37d8ff"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#ae8adc716e1c2a97d7dae249f1c37d8ff">getJapan</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:ae8adc716e1c2a97d7dae249f1c37d8ff"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this country/region. <a href="#ae8adc716e1c2a97d7dae249f1c37d8ff">More...</a><br/></td></tr> <tr class="separator:ae8adc716e1c2a97d7dae249f1c37d8ff"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad8ae6bb28603e762ed92055c1eaf220c"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#ad8ae6bb28603e762ed92055c1eaf220c">getKorea</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:ad8ae6bb28603e762ed92055c1eaf220c"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this country/region. <a href="#ad8ae6bb28603e762ed92055c1eaf220c">More...</a><br/></td></tr> <tr class="separator:ad8ae6bb28603e762ed92055c1eaf220c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a090facf0b2391acb387bfc2688d11686"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a090facf0b2391acb387bfc2688d11686">getChina</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:a090facf0b2391acb387bfc2688d11686"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this country/region. <a href="#a090facf0b2391acb387bfc2688d11686">More...</a><br/></td></tr> <tr class="separator:a090facf0b2391acb387bfc2688d11686"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0bdc02e24d87f235050844cd60b5eeb7"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a0bdc02e24d87f235050844cd60b5eeb7">getPRC</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:a0bdc02e24d87f235050844cd60b5eeb7"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this country/region. <a href="#a0bdc02e24d87f235050844cd60b5eeb7">More...</a><br/></td></tr> <tr class="separator:a0bdc02e24d87f235050844cd60b5eeb7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a63fbbe90140d5629c499eae70e4ee895"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a63fbbe90140d5629c499eae70e4ee895">getTaiwan</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:a63fbbe90140d5629c499eae70e4ee895"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this country/region. <a href="#a63fbbe90140d5629c499eae70e4ee895">More...</a><br/></td></tr> <tr class="separator:a63fbbe90140d5629c499eae70e4ee895"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac0738001843d2866f11031b4585c7a9c"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#ac0738001843d2866f11031b4585c7a9c">getUK</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:ac0738001843d2866f11031b4585c7a9c"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this country/region. <a href="#ac0738001843d2866f11031b4585c7a9c">More...</a><br/></td></tr> <tr class="separator:ac0738001843d2866f11031b4585c7a9c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aee507186038b3331bc060fbd85f52af3"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#aee507186038b3331bc060fbd85f52af3">getUS</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:aee507186038b3331bc060fbd85f52af3"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this country/region. <a href="#aee507186038b3331bc060fbd85f52af3">More...</a><br/></td></tr> <tr class="separator:aee507186038b3331bc060fbd85f52af3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2b10656562a9c819246eb3d6fc1be8b2"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a2b10656562a9c819246eb3d6fc1be8b2">getCanada</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:a2b10656562a9c819246eb3d6fc1be8b2"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this country/region. <a href="#a2b10656562a9c819246eb3d6fc1be8b2">More...</a><br/></td></tr> <tr class="separator:a2b10656562a9c819246eb3d6fc1be8b2"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1625cc4f478e9e764d3e3f232029e18b"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a1625cc4f478e9e764d3e3f232029e18b">getCanadaFrench</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:a1625cc4f478e9e764d3e3f232029e18b"><td class="mdescLeft"> </td><td class="mdescRight">Useful constant for this country/region. <a href="#a1625cc4f478e9e764d3e3f232029e18b">More...</a><br/></td></tr> <tr class="separator:a1625cc4f478e9e764d3e3f232029e18b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac12d6326f2d283f5643f6b6caacfe88c"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#ac12d6326f2d283f5643f6b6caacfe88c">getDefault</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a>)</td></tr> <tr class="memdesc:ac12d6326f2d283f5643f6b6caacfe88c"><td class="mdescLeft"> </td><td class="mdescRight">Common methods of getting the current default <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a>. <a href="#ac12d6326f2d283f5643f6b6caacfe88c">More...</a><br/></td></tr> <tr class="separator:ac12d6326f2d283f5643f6b6caacfe88c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8577dcfe0faaf6eecff618c28146456c"><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="classLocale.html#a8577dcfe0faaf6eecff618c28146456c">setDefault</a> (const <a class="el" href="classLocale.html">Locale</a> &newLocale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &success)</td></tr> <tr class="memdesc:a8577dcfe0faaf6eecff618c28146456c"><td class="mdescLeft"> </td><td class="mdescRight">Sets the default. <a href="#a8577dcfe0faaf6eecff618c28146456c">More...</a><br/></td></tr> <tr class="separator:a8577dcfe0faaf6eecff618c28146456c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8cea92e79f965ef653cd85059581f9ac"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classLocale.html">Locale</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a8cea92e79f965ef653cd85059581f9ac">createFromName</a> (const char *name)</td></tr> <tr class="memdesc:a8cea92e79f965ef653cd85059581f9ac"><td class="mdescLeft"> </td><td class="mdescRight">Creates a locale which has had minimal canonicalization as per <a class="el" href="uloc_8h.html#a1b817e9efa7ca5711d3b5abd19227296" title="Gets the full name for the specified locale. ">uloc_getName()</a>. <a href="#a8cea92e79f965ef653cd85059581f9ac">More...</a><br/></td></tr> <tr class="separator:a8cea92e79f965ef653cd85059581f9ac"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7b6db0c7bc1a07607ded0e8fd3adf8f6"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classLocale.html">Locale</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a7b6db0c7bc1a07607ded0e8fd3adf8f6">createCanonical</a> (const char *name)</td></tr> <tr class="memdesc:a7b6db0c7bc1a07607ded0e8fd3adf8f6"><td class="mdescLeft"> </td><td class="mdescRight">Creates a locale from the given string after canonicalizing the string by calling <a class="el" href="uloc_8h.html#afe5adae51e287be339c57142947eb290" title="Gets the full name for the specified locale. ">uloc_canonicalize()</a>. <a href="#a7b6db0c7bc1a07607ded0e8fd3adf8f6">More...</a><br/></td></tr> <tr class="separator:a7b6db0c7bc1a07607ded0e8fd3adf8f6"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:abfddb5ad335e43c8a3c24a37014b1429"><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="classLocale.html">Locale</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#abfddb5ad335e43c8a3c24a37014b1429">getAvailableLocales</a> (int32_t &count)</td></tr> <tr class="memdesc:abfddb5ad335e43c8a3c24a37014b1429"><td class="mdescLeft"> </td><td class="mdescRight">Returns a list of all installed locales. <a href="#abfddb5ad335e43c8a3c24a37014b1429">More...</a><br/></td></tr> <tr class="separator:abfddb5ad335e43c8a3c24a37014b1429"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a345746448f2df515629586db8fb7dd46"><td class="memItemLeft" align="right" valign="top">static const char *const * </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a345746448f2df515629586db8fb7dd46">getISOCountries</a> ()</td></tr> <tr class="memdesc:a345746448f2df515629586db8fb7dd46"><td class="mdescLeft"> </td><td class="mdescRight">Gets a list of all available 2-letter country codes defined in ISO 639. <a href="#a345746448f2df515629586db8fb7dd46">More...</a><br/></td></tr> <tr class="separator:a345746448f2df515629586db8fb7dd46"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a56822f6e1ba6371254ec55554d2f6546"><td class="memItemLeft" align="right" valign="top">static const char *const * </td><td class="memItemRight" valign="bottom"><a class="el" href="classLocale.html#a56822f6e1ba6371254ec55554d2f6546">getISOLanguages</a> ()</td></tr> <tr class="memdesc:a56822f6e1ba6371254ec55554d2f6546"><td class="mdescLeft"> </td><td class="mdescRight">Gets a list of all available language codes defined in ISO 639. <a href="#a56822f6e1ba6371254ec55554d2f6546">More...</a><br/></td></tr> <tr class="separator:a56822f6e1ba6371254ec55554d2f6546"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad2ab98c38e3f6795a627631fec207061"><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="classLocale.html#ad2ab98c38e3f6795a627631fec207061">getStaticClassID</a> ()</td></tr> <tr class="memdesc:ad2ab98c38e3f6795a627631fec207061"><td class="mdescLeft"> </td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for this class. <a href="#ad2ab98c38e3f6795a627631fec207061">More...</a><br/></td></tr> <tr class="separator:ad2ab98c38e3f6795a627631fec207061"><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="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr class="memitem:a132087eb22e087955c977a6c39bd79bb"><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="classLocale.html#a132087eb22e087955c977a6c39bd79bb">setFromPOSIXID</a> (const char *posixID)</td></tr> <tr class="memdesc:a132087eb22e087955c977a6c39bd79bb"><td class="mdescLeft"> </td><td class="mdescRight">Set this from a single POSIX style locale string. <a href="#a132087eb22e087955c977a6c39bd79bb">More...</a><br/></td></tr> <tr class="separator:a132087eb22e087955c977a6c39bd79bb"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a> Friends</h2></td></tr> <tr class="memitem:a0982d59a0bbc49100ca15e64674e3d44"><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="classLocale.html#a0982d59a0bbc49100ca15e64674e3d44">locale_set_default_internal</a> (const char *)</td></tr> <tr class="memdesc:a0982d59a0bbc49100ca15e64674e3d44"><td class="mdescLeft"> </td><td class="mdescRight">A friend to allow the default locale to be set by either the C or C++ API. <a href="#a0982d59a0bbc49100ca15e64674e3d44">More...</a><br/></td></tr> <tr class="separator:a0982d59a0bbc49100ca15e64674e3d44"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>A <code><a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a></code> object represents a specific geographical, political, or cultural region. </p> <p>An operation that requires a <code><a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a></code> to perform its task is called <em>locale-sensitive</em> and uses the <code><a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a></code> to tailor information for the user. For example, displaying a number is a locale-sensitive operation–the number should be formatted according to the customs/conventions of the user's native country, region, or culture.</p> <p>The <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> class is not suitable for subclassing.</p> <p>You can create a <code><a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a></code> object using the constructor in this class: <blockquote> <pre> <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a>( const char* language, const char* country, const char* variant); </pre> </blockquote> The first argument to the constructors is a valid <b>ISO Language Code.</b> These codes are the lower-case two-letter codes as defined by ISO-639. You can find a full list of these codes at: <br/> <a href="http://www.loc.gov/standards/iso639-2/">http://www.loc.gov/standards/iso639-2/</a></p> <p>The second argument to the constructors is a valid <b>ISO Country Code.</b> These codes are the upper-case two-letter codes as defined by ISO-3166. You can find a full list of these codes at a number of sites, such as: <br/> <a href="http://www.iso.org/iso/en/prods-services/iso3166ma/index.html">http://www.iso.org/iso/en/prods-services/iso3166ma/index.html</a></p> <p>The third constructor requires a third argument–the <b>Variant.</b> The Variant codes are vendor and browser-specific. For example, use REVISED for a langauge's revised script orthography, and POSIX for POSIX. Where there are two variants, separate them with an underscore, and put the most important one first. For example, a Traditional Spanish collation might be referenced, with "ES", "ES", "Traditional_POSIX".</p> <p>Because a <code><a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a></code> object is just an identifier for a region, no validity check is performed when you construct a <code><a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a></code>. If you want to see whether particular resources are available for the <code><a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a></code> you construct, you must query those resources. For example, ask the <code><a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats. ">NumberFormat</a></code> for the locales it supports using its <code>getAvailableLocales</code> method. <br/> <b>Note:</b> When you ask for a resource for a particular locale, you get back the best available match, not necessarily precisely what you asked for. For more information, look at <code><a class="el" href="classResourceBundle.html" title="A class representing a collection of resource information pertaining to a given locale. ">ResourceBundle</a></code>.</p> <p>The <code><a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a></code> class provides a number of convenient constants that you can use to create <code><a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a></code> objects for commonly used locales. For example, the following refers to a <code><a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a></code> object for the United States: <blockquote> <pre> <a class="el" href="classLocale.html#aee507186038b3331bc060fbd85f52af3" title="Useful constant for this country/region. ">Locale::getUS()</a> </pre> </blockquote><p>Once you've created a <code><a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a></code> you can query it for information about itself. Use <code>getCountry</code> to get the ISO Country Code and <code>getLanguage</code> to get the ISO Language Code. You can use <code>getDisplayCountry</code> to get the name of the country suitable for displaying to the user. Similarly, you can use <code>getDisplayLanguage</code> to get the name of the language suitable for displaying to the user. Interestingly, the <code>getDisplayXXX</code> methods are themselves locale-sensitive and have two versions: one that uses the default locale and one that takes a locale as an argument and displays the name or country in a language appropriate to that locale.</p> <p>ICU provides a number of classes that perform locale-sensitive operations. For example, the <code><a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats. ">NumberFormat</a></code> class formats numbers, currency, or percentages in a locale-sensitive manner. Classes such as <code><a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats. ">NumberFormat</a></code> have a number of convenience methods for creating a default object of that type. For example, the <code><a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats. ">NumberFormat</a></code> class provides these three convenience methods for creating a default <code><a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats. ">NumberFormat</a></code> object: <blockquote> <pre> UErrorCode success = U_ZERO_ERROR; <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> myLocale; <a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats. ">NumberFormat</a> *nf;</pre><pre> nf = NumberFormat::createInstance( success ); delete nf; nf = NumberFormat::createCurrencyInstance( success ); delete nf; nf = NumberFormat::createPercentInstance( success ); delete nf; </pre> </blockquote> Each of these methods has two variants; one with an explicit locale and one without; the latter using the default locale. <blockquote> <pre> nf = NumberFormat::createInstance( myLocale, success ); delete nf; nf = NumberFormat::createCurrencyInstance( myLocale, success ); delete nf; nf = NumberFormat::createPercentInstance( myLocale, success ); delete nf; </pre> </blockquote> A <code><a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a></code> is the mechanism for identifying the kind of object (<code><a class="el" href="classNumberFormat.html" title="Abstract base class for all number formats. ">NumberFormat</a></code>) that you would like to get. The locale is <b>just</b> a mechanism for identifying objects, <b>not</b> a container for the objects themselves.</p> <p>Each class that performs locale-sensitive operations allows you to get all the available objects of that type. You can sift through these objects by language, country, or variant, and use the display names to present a menu to the user. For example, you can create a menu of all the collation objects suitable for a given language. Such classes implement these three class methods: <blockquote> <pre> static Locale* <a class="el" href="classLocale.html#abfddb5ad335e43c8a3c24a37014b1429" title="Returns a list of all installed locales. ">getAvailableLocales(int32_t& numLocales)</a> static <a class="el" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>& getDisplayName(const <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a>& objectLocale, const <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a>& displayLocale, <a class="el" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>& displayName) static <a class="el" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>& getDisplayName(const <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a>& objectLocale, <a class="el" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a>& displayName) </pre> </blockquote><dl class="stable"><dt><b><a class="el" href="stable.html#_stable000095">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classResourceBundle.html" title="A class representing a collection of resource information pertaining to a given locale. ">ResourceBundle</a> </dd></dl> <p>Definition at line <a class="el" href="locid_8h_source.html#l00181">181</a> of file <a class="el" href="locid_8h_source.html">locid.h</a>.</p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="a599d7bb7a08b138cb069e39987846b3f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Locale::Locale </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Construct a default locale object, a <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> for the default locale ID. </p> <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classLocale.html#ac12d6326f2d283f5643f6b6caacfe88c" title="Common methods of getting the current default Locale. ">getDefault</a> </dd> <dd> <a class="el" href="uloc_8h.html#adbc1e91581ae0e0ec421dafcc35c06c1" title="Gets ICU's default locale. ">uloc_getDefault</a> </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000117">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a2e847ff3c5df01b077293a30347bac11"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Locale::Locale </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>language</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"><em>country</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"><em>variant</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"><em>keywordsAndValues</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Construct a locale from language, country, variant. </p> <p>If an error occurs, then the constructed object will be "bogus" (<a class="el" href="classLocale.html#ac671e591506f640ac36b5943230aeb18" title="Gets the bogus state. ">isBogus()</a> will return TRUE).</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">language</td><td>Lowercase two-letter or three-letter ISO-639 code. This parameter can instead be an ICU style C locale (e.g. "en_US"), but the other parameters must not be used. This parameter can be NULL; if so, the locale is initialized to match the current default locale. (This is the same as using the default constructor.) Please note: The Java <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> class does NOT accept the form 'new <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a>("en_US")' but only 'new <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a>("en","US")'</td></tr> <tr><td class="paramname">country</td><td>Uppercase two-letter ISO-3166 code. (optional) </td></tr> <tr><td class="paramname">variant</td><td>Uppercase vendor and browser specific code. See class description. (optional) </td></tr> <tr><td class="paramname">keywordsAndValues</td><td>A string consisting of keyword/values pairs, such as "collation=phonebook;currency=euro"</td></tr> </table> </dd> </dl> <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classLocale.html#ac12d6326f2d283f5643f6b6caacfe88c" title="Common methods of getting the current default Locale. ">getDefault</a> </dd> <dd> <a class="el" href="uloc_8h.html#adbc1e91581ae0e0ec421dafcc35c06c1" title="Gets ICU's default locale. ">uloc_getDefault</a> </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000118">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="ab7a2e36b993dfec56609f03348309172"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Locale::Locale </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Initializes a <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> object from another <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> object. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">other</td><td>The <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> object being copied in. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000119">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a69855afaa3627ce0003ca5e5946af10e"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual Locale::~Locale </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Destructor. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000120">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a3e4841a11d0f945669123a48af44a477"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classLocale.html">Locale</a>* Locale::clone </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Clone this object. </p> <p>Clones can be used concurrently in multiple threads. If an error occurs, then NULL is returned. The caller must delete the clone.</p> <dl class="section return"><dt>Returns</dt><dd>a clone of this object</dd></dl> <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classLocale.html#a51d7b4c7c203e7155c30b77b83d57b92" title="ICU "poor man's RTTI", returns a UClassID for the actual class. ">getDynamicClassID</a> </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000124">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> </div> </div> <a class="anchor" id="a7b6db0c7bc1a07607ded0e8fd3adf8f6"></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="classLocale.html">Locale</a> Locale::createCanonical </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>name</em></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>Creates a locale from the given string after canonicalizing the string by calling <a class="el" href="uloc_8h.html#afe5adae51e287be339c57142947eb290" title="Gets the full name for the specified locale. ">uloc_canonicalize()</a>. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">name</td><td>the locale ID to create from. Must not be NULL. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a new locale object corresponding to the given name </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000128">Stable:</a></b></dt><dd>ICU 3.0 </dd></dl> <dl class="section see"><dt>See Also</dt><dd><a class="el" href="uloc_8h.html#afe5adae51e287be339c57142947eb290" title="Gets the full name for the specified locale. ">uloc_canonicalize</a> </dd></dl> </div> </div> <a class="anchor" id="a8cea92e79f965ef653cd85059581f9ac"></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="classLocale.html">Locale</a> Locale::createFromName </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>name</em></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>Creates a locale which has had minimal canonicalization as per <a class="el" href="uloc_8h.html#a1b817e9efa7ca5711d3b5abd19227296" title="Gets the full name for the specified locale. ">uloc_getName()</a>. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">name</td><td>The name to create from. If name is null, the default <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> is used. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>new locale object </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000127">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <dl class="section see"><dt>See Also</dt><dd><a class="el" href="uloc_8h.html#a1b817e9efa7ca5711d3b5abd19227296" title="Gets the full name for the specified locale. ">uloc_getName</a> </dd></dl> </div> </div> <a class="anchor" id="a4556eca1c4de3f08247d191aa15c51b9"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classStringEnumeration.html">StringEnumeration</a>* Locale::createKeywords </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> const</td> </tr> </table> </div><div class="memdoc"> <p>Gets the list of keywords for the specified locale. </p> <dl class="section return"><dt>Returns</dt><dd>pointer to <a class="el" href="classStringEnumeration.html" title="Base class for 'pure' C++ implementations of uenum api. ">StringEnumeration</a> class. Client must dispose of it by calling delete. </dd></dl> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">status</td><td>Returns any error information while performing this operation. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000135">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> </div> </div> <a class="anchor" id="abfddb5ad335e43c8a3c24a37014b1429"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>* Locale::getAvailableLocales </td> <td>(</td> <td class="paramtype">int32_t & </td> <td class="paramname"><em>count</em></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>Returns a list of all installed locales. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">count</td><td>Receives the number of locales in the list. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A pointer to an array of <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> objects. This array is the list of all locales with installed resource files. The called does NOT get ownership of this list, and must NOT delete it. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000153">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a4687fb0906f86cdb82862df48fef035d"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const char* Locale::getBaseName </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Returns the programmatic name of the entire locale as getName would return, but without keywords. </p> <dl class="section return"><dt>Returns</dt><dd>A pointer to "name". </dd></dl> <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classLocale.html#a726741607239836d69022bf08e56f0ac" title="Returns the programmatic name of the entire locale, with the language, country and variant separated ...">getName</a> </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000134">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> </div> </div> <a class="anchor" id="a2b10656562a9c819246eb3d6fc1be8b2"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getCanada </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>Useful constant for this country/region. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000115">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a1625cc4f478e9e764d3e3f232029e18b"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getCanadaFrench </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>Useful constant for this country/region. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000116">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a090facf0b2391acb387bfc2688d11686"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getChina </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>Useful constant for this country/region. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000110">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="aeebb4e210cc2b9ea2c25a6607638ed82"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getChinese </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>Useful constant for this language. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000102">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a07f8f74b134a356feaa9c5df102f29fe"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const char * Locale::getCountry </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">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the locale's ISO-3166 country code. </p> <dl class="section return"><dt>Returns</dt><dd>An alias to the code </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000131">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="locid_8h_source.html#l00728">728</a> of file <a class="el" href="locid_8h_source.html">locid.h</a>.</p> </div> </div> <a class="anchor" id="ac12d6326f2d283f5643f6b6caacfe88c"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getDefault </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>Common methods of getting the current default <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a>. </p> <p>Used for the presentation: menus, dialogs, etc. Generally set once when your applet or application is initialized, then never reset. (If you do reset the default locale, you probably want to reload your GUI, so that the change is reflected in your interface.)</p> <p>More advanced programs will allow users to use different locales for different fields, e.g. in a spreadsheet.</p> <p>Note that the initial setting will match the host system. </p> <dl class="section return"><dt>Returns</dt><dd>a reference to the <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> object for the default locale ID </dd></dl> <dl class="system"><dt><b><a class="el" href="system.html#_system000001">System:</a></b></dt><dd>Do not use unless you know what you are doing. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000125">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Referenced by <a class="el" href="calendar_8h_source.html#l02124">Calendar::createInstance()</a>.</p> </div> </div> <a class="anchor" id="ab7ea1acf0c4f58907598a9f87d44fb80"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>& Locale::getDisplayCountry </td> <td>(</td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>dispCountry</em></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Fills in "dispCountry" with the name of this locale's country in a format suitable for user display in the default locale. </p> <p>For example, if the locale's country code is "FR" and the default locale's language code is "en", this function would set dispCountry to "France". </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">dispCountry</td><td>Receives the country's display name. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A reference to "dispCountry". </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000144">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a132301e5f4cdf819f5d4b8c3fd291183"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>& Locale::getDisplayCountry </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </td> <td class="paramname"><em>displayLocale</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>dispCountry</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p>Fills in "dispCountry" with the name of this locale's country in a format suitable for user display in the locale specified by "displayLocale". </p> <p>For example, if the locale's country code is "US" and displayLocale's language code is "fr", this function would set dispCountry to "&Eacute;tats-Unis". </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">displayLocale</td><td>Specifies the locale to be used to display the name. In other words, if the locale's country code is "US", passing <a class="el" href="classLocale.html#ac4577a88016e7111bd37906c136951c7" title="Useful constant for this language. ">Locale::getFrench()</a> for displayLocale would result in "&Eacute;tats-Unis", while passing <a class="el" href="classLocale.html#a018ee898b7223c3b4cb3385d0f10464d" title="Useful constant for this language. ">Locale::getGerman()</a> for displayLocale would result in "Vereinigte Staaten". </td></tr> <tr><td class="paramname">dispCountry</td><td>Receives the country's display name. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A reference to "dispCountry". </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000145">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a22ce8294a54735899bbcce3f8ad93eaf"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>& Locale::getDisplayLanguage </td> <td>(</td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>dispLang</em></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Fills in "dispLang" with the name of this locale's language in a format suitable for user display in the default locale. </p> <p>For example, if the locale's language code is "fr" and the default locale's language code is "en", this function would set dispLang to "French". </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">dispLang</td><td>Receives the language's display name. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A reference to "dispLang". </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000140">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a91528f7de691ea382f7f8136bf99d8bd"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>& Locale::getDisplayLanguage </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </td> <td class="paramname"><em>displayLocale</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>dispLang</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p>Fills in "dispLang" with the name of this locale's language in a format suitable for user display in the locale specified by "displayLocale". </p> <p>For example, if the locale's language code is "en" and displayLocale's language code is "fr", this function would set dispLang to "Anglais". </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">displayLocale</td><td>Specifies the locale to be used to display the name. In other words, if the locale's language code is "en", passing <a class="el" href="classLocale.html#ac4577a88016e7111bd37906c136951c7" title="Useful constant for this language. ">Locale::getFrench()</a> for displayLocale would result in "Anglais", while passing <a class="el" href="classLocale.html#a018ee898b7223c3b4cb3385d0f10464d" title="Useful constant for this language. ">Locale::getGerman()</a> for displayLocale would result in "Englisch". </td></tr> <tr><td class="paramname">dispLang</td><td>Receives the language's display name. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A reference to "dispLang". </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000141">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="abf9e7097a9cc828b346e61c47e5e23c5"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>& Locale::getDisplayName </td> <td>(</td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>name</em></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Fills in "name" with the name of this locale in a format suitable for user display in the default locale. </p> <p>This function uses <a class="el" href="classLocale.html#a22ce8294a54735899bbcce3f8ad93eaf" title="Fills in "dispLang" with the name of this locale's language in a format suitable for user display i...">getDisplayLanguage()</a>, <a class="el" href="classLocale.html#ab7ea1acf0c4f58907598a9f87d44fb80" title="Fills in "dispCountry" with the name of this locale's country in a format suitable for user display...">getDisplayCountry()</a>, and <a class="el" href="classLocale.html#afc45c6c509062b7f59b064835b55f6ec" title="Fills in "dispVar" with the name of this locale's variant code in a format suitable for user displa...">getDisplayVariant()</a> to do its work, and outputs the display name in the format "language (country[,variant])". For example, if the default locale is en_US, then fr_FR's display name would be "French (France)", and es_MX_Traditional's display name would be "Spanish (Mexico,Traditional)". </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">name</td><td>Receives the locale's display name. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A reference to "name". </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000148">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a1935ea040dab51999196c0bf89e87d99"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>& Locale::getDisplayName </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </td> <td class="paramname"><em>displayLocale</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>name</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p>Fills in "name" with the name of this locale in a format suitable for user display in the locale specfied by "displayLocale". </p> <p>This function uses <a class="el" href="classLocale.html#a22ce8294a54735899bbcce3f8ad93eaf" title="Fills in "dispLang" with the name of this locale's language in a format suitable for user display i...">getDisplayLanguage()</a>, <a class="el" href="classLocale.html#ab7ea1acf0c4f58907598a9f87d44fb80" title="Fills in "dispCountry" with the name of this locale's country in a format suitable for user display...">getDisplayCountry()</a>, and <a class="el" href="classLocale.html#afc45c6c509062b7f59b064835b55f6ec" title="Fills in "dispVar" with the name of this locale's variant code in a format suitable for user displa...">getDisplayVariant()</a> to do its work, and outputs the display name in the format "language (country[,variant])". For example, if displayLocale is fr_FR, then en_US's display name would be "Anglais (&Eacute;tats-Unis)", and no_NO_NY's display name would be "norv&eacute;gien (Norv&egrave;ge,NY)". </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">displayLocale</td><td>Specifies the locale to be used to display the name. </td></tr> <tr><td class="paramname">name</td><td>Receives the locale's display name. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A reference to "name". </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000149">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="ab5440507507d2ab902255bccf43fec5f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>& Locale::getDisplayScript </td> <td>(</td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>dispScript</em></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Fills in "dispScript" with the name of this locale's script in a format suitable for user display in the default locale. </p> <p>For example, if the locale's script code is "LATN" and the default locale's language code is "en", this function would set dispScript to "Latin". </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">dispScript</td><td>Receives the scripts's display name. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A reference to "dispScript". </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000142">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> </div> </div> <a class="anchor" id="a567c4ea4a034c51b5c7bc2d5e6d1540f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>& Locale::getDisplayScript </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </td> <td class="paramname"><em>displayLocale</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>dispScript</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p>Fills in "dispScript" with the name of this locale's country in a format suitable for user display in the locale specified by "displayLocale". </p> <p>For example, if the locale's script code is "LATN" and displayLocale's language code is "en", this function would set dispScript to "Latin". </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">displayLocale</td><td>Specifies the locale to be used to display the name. In other words, if the locale's script code is "LATN", passing <a class="el" href="classLocale.html#ac4577a88016e7111bd37906c136951c7" title="Useful constant for this language. ">Locale::getFrench()</a> for displayLocale would result in "", while passing <a class="el" href="classLocale.html#a018ee898b7223c3b4cb3385d0f10464d" title="Useful constant for this language. ">Locale::getGerman()</a> for displayLocale would result in "". </td></tr> <tr><td class="paramname">dispScript</td><td>Receives the scripts's display name. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A reference to "dispScript". </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000143">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> </div> </div> <a class="anchor" id="afc45c6c509062b7f59b064835b55f6ec"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>& Locale::getDisplayVariant </td> <td>(</td> <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> & </td> <td class="paramname"><em>dispVar</em></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Fills in "dispVar" with the name of this locale's variant code in a format suitable for user display in the default locale. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">dispVar</td><td>Receives the variant's name. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A reference to "dispVar". </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000146">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a01bab29e4cbdc284b5ea8f166aabc457"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>& Locale::getDisplayVariant </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </td> <td class="paramname"><em>displayLocale</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>dispVar</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div><div class="memdoc"> <p>Fills in "dispVar" with the name of this locale's variant code in a format suitable for user display in the locale specified by "displayLocale". </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">displayLocale</td><td>Specifies the locale to be used to display the name. </td></tr> <tr><td class="paramname">dispVar</td><td>Receives the variant's display name. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A reference to "dispVar". </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000147">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a51d7b4c7c203e7155c30b77b83d57b92"></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> Locale::getDynamicClassID </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>ICU "poor man's RTTI", returns a UClassID for the actual class. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000157">Stable:</a></b></dt><dd>ICU 2.2 </dd></dl> <p>Implements <a class="el" href="classUObject.html#a9b1acc95efd89cb86ec31f2dc947a262">UObject</a>.</p> </div> </div> <a class="anchor" id="a669ca7c4ef168a75879bc2e847f151dd"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getEnglish </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>Useful constant for this language. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000096">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="aa19e5f0ac81c6c7fd9c13d7515608ebd"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getFrance </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>Useful constant for this country/region. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000105">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="ac4577a88016e7111bd37906c136951c7"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getFrench </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>Useful constant for this language. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000097">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a018ee898b7223c3b4cb3385d0f10464d"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getGerman </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>Useful constant for this language. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000098">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a1941bac04cee2957c063faabf6229218"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getGermany </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>Useful constant for this country/region. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000106">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a789b65b00263ba8c0b44ec7d4477f8fc"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const char* Locale::getISO3Country </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Fills in "name" with the locale's three-letter ISO-3166 country code. </p> <dl class="section return"><dt>Returns</dt><dd>An alias to the code, or NULL </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000138">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a25b8aa4568ab78a0509c8dd50d468947"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const char* Locale::getISO3Language </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>returns the locale's three-letter language code, as specified in ISO draft standard ISO-639-2. </p> <dl class="section return"><dt>Returns</dt><dd>An alias to the code, or NULL </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000137">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a345746448f2df515629586db8fb7dd46"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const char* const* Locale::getISOCountries </td> <td>(</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>Gets a list of all available 2-letter country codes defined in ISO 639. </p> <p>This is a pointer to an array of pointers to arrays of char. All of these pointers are owned by ICU– do not delete them, and do not write through them. The array is terminated with a null pointer. </p> <dl class="section return"><dt>Returns</dt><dd>a list of all available country codes </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000154">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a56822f6e1ba6371254ec55554d2f6546"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const char* const* Locale::getISOLanguages </td> <td>(</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>Gets a list of all available language codes defined in ISO 639. </p> <p>This is a pointer to an array of pointers to arrays of char. All of these pointers are owned by ICU– do not delete them, and do not write through them. The array is terminated with a null pointer. </p> <dl class="section return"><dt>Returns</dt><dd>a list of all available language codes </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000155">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a1154bcf5b170d721ac8e27f8fb046b8a"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getItalian </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>Useful constant for this language. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000099">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a83bc889adad165fb39305cf8364bb8e5"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getItaly </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>Useful constant for this country/region. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000107">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="ae8adc716e1c2a97d7dae249f1c37d8ff"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getJapan </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>Useful constant for this country/region. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000108">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a2131962c82b059c01da36c83de5a18aa"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getJapanese </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>Useful constant for this language. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000100">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="afd5dc6a5db78d87dad58e5423bbff0d9"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int32_t Locale::getKeywordValue </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>keywordName</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char * </td> <td class="paramname"><em>buffer</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t </td> <td class="paramname"><em>bufferCapacity</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>Get the value for a keyword. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">keywordName</td><td>name of the keyword for which we want the value. Case insensitive. </td></tr> <tr><td class="paramname">status</td><td>Returns any error information while performing this operation. </td></tr> <tr><td class="paramname">buffer</td><td>The buffer to receive the keyword value. </td></tr> <tr><td class="paramname">bufferCapacity</td><td>The capacity of receiving buffer </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>the length of keyword value</dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000136">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> </div> </div> <a class="anchor" id="ad8ae6bb28603e762ed92055c1eaf220c"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getKorea </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>Useful constant for this country/region. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000109">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="ad3dc36f22bc5ef5b0fdaff1f49778b50"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getKorean </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>Useful constant for this language. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000101">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a7c0e53c666ea52387d0edae91f75c94f"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const char * Locale::getLanguage </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">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the locale's ISO-639 language code. </p> <dl class="section return"><dt>Returns</dt><dd>An alias to the code </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000129">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="locid_8h_source.html#l00734">734</a> of file <a class="el" href="locid_8h_source.html">locid.h</a>.</p> </div> </div> <a class="anchor" id="a8f91b5cc02e8ed0f4cf0fc68bc492ae1"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t Locale::getLCID </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> </div><div class="memdoc"> <p>Returns the Windows LCID value corresponding to this locale. </p> <p>This value is stored in the resource data for the locale as a one-to-four-digit hexadecimal number. If the resource is missing, in the wrong format, or there is no Windows LCID value that corresponds to this locale, returns 0. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000139">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a726741607239836d69022bf08e56f0ac"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const char * Locale::getName </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">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the programmatic name of the entire locale, with the language, country and variant separated by underbars. </p> <p>If a field is missing, up to two leading underbars will occur. Example: "en", "de_DE", "en_US_WIN", "de__POSIX", "fr__MAC", "__MAC", "_MT", "_FR_EURO" </p> <dl class="section return"><dt>Returns</dt><dd>A pointer to "name". </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000133">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="locid_8h_source.html#l00752">752</a> of file <a class="el" href="locid_8h_source.html">locid.h</a>.</p> </div> </div> <a class="anchor" id="a0bdc02e24d87f235050844cd60b5eeb7"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getPRC </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>Useful constant for this country/region. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000111">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a73e3fa1ce9df00989f59568cfb1fabed"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const char * Locale::getScript </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">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the locale's ISO-15924 abbreviation script code. </p> <dl class="section return"><dt>Returns</dt><dd>An alias to the code </dd></dl> <dl class="section see"><dt>See Also</dt><dd><a class="el" href="uscript_8h.html#a34236e1bcb71635837fc9f0e045499fa" title="Gets a script name associated with the given script code. ">uscript_getShortName</a> </dd> <dd> <a class="el" href="uscript_8h.html#ad7c87340add879032324be150438f671" title="Gets script codes associated with the given locale or ISO 15924 abbreviation or name. ">uscript_getCode</a> </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000130">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> <p>Definition at line <a class="el" href="locid_8h_source.html#l00740">740</a> of file <a class="el" href="locid_8h_source.html">locid.h</a>.</p> </div> </div> <a class="anchor" id="a1467301723a35cf6f42b0b8b47ed2dc5"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getSimplifiedChinese </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>Useful constant for this language. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000103">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="ad2ab98c38e3f6795a627631fec207061"></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> Locale::getStaticClassID </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>ICU "poor man's RTTI", returns a UClassID for this class. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000156">Stable:</a></b></dt><dd>ICU 2.2 </dd></dl> </div> </div> <a class="anchor" id="a63fbbe90140d5629c499eae70e4ee895"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getTaiwan </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>Useful constant for this country/region. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000112">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="afdeffb5b588d1d904e0c334b60251526"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getTraditionalChinese </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>Useful constant for this language. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000104">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="ac0738001843d2866f11031b4585c7a9c"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getUK </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>Useful constant for this country/region. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000113">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="aee507186038b3331bc060fbd85f52af3"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">static const <a class="el" href="classLocale.html">Locale</a>& Locale::getUS </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>Useful constant for this country/region. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000114">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="affc1e557e947797dbe414e58618e5e36"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">const char * Locale::getVariant </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">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the locale's variant code. </p> <dl class="section return"><dt>Returns</dt><dd>An alias to the code </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000132">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="locid_8h_source.html#l00746">746</a> of file <a class="el" href="locid_8h_source.html">locid.h</a>.</p> </div> </div> <a class="anchor" id="a664433180261f7b97a7a1a83ca3dfe78"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int32_t Locale::hashCode </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> </div><div class="memdoc"> <p>Generates a hash code for the locale. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000150">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="ac671e591506f640ac36b5943230aeb18"></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="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> Locale::isBogus </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">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Gets the bogus state. </p> <p><a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> object can be bogus if it doesn't exist </p> <dl class="section return"><dt>Returns</dt><dd>FALSE if it is a real locale, TRUE if it is a bogus locale </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000152">Stable:</a></b></dt><dd>ICU 2.1 </dd></dl> <p>Definition at line <a class="el" href="locid_8h_source.html#l00758">758</a> of file <a class="el" href="locid_8h_source.html">locid.h</a>.</p> </div> </div> <a class="anchor" id="a15114dcd2b70f2c98cc066e5ac83e62c"></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="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> Locale::operator!= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</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">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Checks if two locale keys are not the same. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">other</td><td>The locale key object to be compared with this. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>True if the two locale keys are not the same, false otherwise. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000123">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="locid_8h_source.html#l00722">722</a> of file <a class="el" href="locid_8h_source.html">locid.h</a>.</p> <p>References <a class="el" href="classLocale.html#abba7de6311743eb2e42757dca2f89a27">operator==()</a>.</p> </div> </div> <a class="anchor" id="a1ba398b2e0c47460cbe953ce82510139"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classLocale.html">Locale</a>& Locale::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Replaces the entire contents of *this with the specified value. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">other</td><td>The <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> object being copied in. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>*this </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000121">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="abba7de6311743eb2e42757dca2f89a27"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> Locale::operator== </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </td> <td class="paramname"><em>other</em></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Checks if two locale keys are the same. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">other</td><td>The locale key object to be compared with this. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>True if the two locale keys are the same, false otherwise. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000122">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Referenced by <a class="el" href="locid_8h_source.html#l00722">operator!=()</a>.</p> </div> </div> <a class="anchor" id="a8577dcfe0faaf6eecff618c28146456c"></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="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> Locale::setDefault </td> <td>(</td> <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> & </td> <td class="paramname"><em>newLocale</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>success</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Sets the default. </p> <p>Normally set once at the beginning of a process, then never reset. <a class="el" href="classLocale.html#a8577dcfe0faaf6eecff618c28146456c" title="Sets the default. ">setDefault()</a> only changes ICU's default locale ID, <b>not</b> the default locale ID of the runtime environment.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">newLocale</td><td><a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region. ">Locale</a> to set to. If NULL, set to the value obtained from the runtime environement. </td></tr> <tr><td class="paramname">success</td><td>The error code. </td></tr> </table> </dd> </dl> <dl class="system"><dt><b><a class="el" href="system.html#_system000002">System:</a></b></dt><dd>Do not use unless you know what you are doing. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000126">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a132087eb22e087955c977a6c39bd79bb"></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="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> Locale::setFromPOSIXID </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>posixID</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Set this from a single POSIX style locale string. </p> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000010">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl> </div> </div> <a class="anchor" id="a4cb8b5e11ac02fedc83e9b23bfc5da70"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> Locale::setToBogus </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Sets the locale to bogus A bogus locale represents a non-existing locale associated with services that can be instantiated from non-locale data in addition to locale (for example, collation can be instantiated from a locale and from a rule set). </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000151">Stable:</a></b></dt><dd>ICU 2.1 </dd></dl> </div> </div> <h2 class="groupheader">Friends And Related Function Documentation</h2> <a class="anchor" id="a0982d59a0bbc49100ca15e64674e3d44"></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="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> locale_set_default_internal </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">friend</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>A friend to allow the default locale to be set by either the C or C++ API. </p> <dl class="internal"><dt><b><a class="el" href="internal.html#_internal000011">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="locid_8h_source.html">locid.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>