Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 34ae14235711d1471f043ac894a061f9 > files > 415

libicu-doc-3.6-5.16.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ICU 3.6: uloc.h File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>Globals</span></a></li>
  </ul></div>
<h1>uloc.h File Reference</h1>C API: <a class="el" href="classLocale.html">Locale</a>. <a href="#_details">More...</a>
<p>
<code>#include &quot;<a class="el" href="utypes_8h-source.html">unicode/utypes.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="uenum_8h-source.html">unicode/uenum.h</a>&quot;</code><br>

<p>
<a href="uloc_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#cdc2b6482414f764cdd31b0f9d9b93a8">ULOC_CHINESE</a>&nbsp;&nbsp;&nbsp;&quot;zh&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this language.  <a href="#cdc2b6482414f764cdd31b0f9d9b93a8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#66ec7e13b29d0f5147d09780a14a1b78">ULOC_ENGLISH</a>&nbsp;&nbsp;&nbsp;&quot;en&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this language.  <a href="#66ec7e13b29d0f5147d09780a14a1b78"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#82ba976fafe7aa5178c3301ba1af6ca5">ULOC_FRENCH</a>&nbsp;&nbsp;&nbsp;&quot;fr&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this language.  <a href="#82ba976fafe7aa5178c3301ba1af6ca5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#f8d545c632422261782f1d0b1205aa25">ULOC_GERMAN</a>&nbsp;&nbsp;&nbsp;&quot;de&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this language.  <a href="#f8d545c632422261782f1d0b1205aa25"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#929190b43aeaa7f543fedd9efbb75558">ULOC_ITALIAN</a>&nbsp;&nbsp;&nbsp;&quot;it&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this language.  <a href="#929190b43aeaa7f543fedd9efbb75558"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#a241ab76480d52525ced9efbbfb09617">ULOC_JAPANESE</a>&nbsp;&nbsp;&nbsp;&quot;ja&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this language.  <a href="#a241ab76480d52525ced9efbbfb09617"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#f4ac5b5caac7985c4500944594942e44">ULOC_KOREAN</a>&nbsp;&nbsp;&nbsp;&quot;ko&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this language.  <a href="#f4ac5b5caac7985c4500944594942e44"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#3a3c236b70e81fc01fe6176d266b0f05">ULOC_SIMPLIFIED_CHINESE</a>&nbsp;&nbsp;&nbsp;&quot;zh_CN&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this language.  <a href="#3a3c236b70e81fc01fe6176d266b0f05"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#31fe69594794c4b06517a56c9e1b2baa">ULOC_TRADITIONAL_CHINESE</a>&nbsp;&nbsp;&nbsp;&quot;zh_TW&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this language.  <a href="#31fe69594794c4b06517a56c9e1b2baa"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#56d26a2325296270d6617252b2032acc">ULOC_CANADA</a>&nbsp;&nbsp;&nbsp;&quot;en_CA&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this country/region.  <a href="#56d26a2325296270d6617252b2032acc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#9e58497af0cc691466c1aac1c868228e">ULOC_CANADA_FRENCH</a>&nbsp;&nbsp;&nbsp;&quot;fr_CA&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this country/region.  <a href="#9e58497af0cc691466c1aac1c868228e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#18d71debeb49bcfd37bd0db3197e8a83">ULOC_CHINA</a>&nbsp;&nbsp;&nbsp;&quot;zh_CN&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this country/region.  <a href="#18d71debeb49bcfd37bd0db3197e8a83"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#54a67cccf48ab65a795ea7250fd6261d">ULOC_PRC</a>&nbsp;&nbsp;&nbsp;&quot;zh_CN&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this country/region.  <a href="#54a67cccf48ab65a795ea7250fd6261d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#bdde469bcb55fe9c117902a8404e8e23">ULOC_FRANCE</a>&nbsp;&nbsp;&nbsp;&quot;fr_FR&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this country/region.  <a href="#bdde469bcb55fe9c117902a8404e8e23"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#98c6ded9215200bc27670ba746f5c632">ULOC_GERMANY</a>&nbsp;&nbsp;&nbsp;&quot;de_DE&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this country/region.  <a href="#98c6ded9215200bc27670ba746f5c632"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#9348bcf19b817442ab6da0fcab4cf885">ULOC_ITALY</a>&nbsp;&nbsp;&nbsp;&quot;it_IT&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this country/region.  <a href="#9348bcf19b817442ab6da0fcab4cf885"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#3d6e1333fe3cb6a4d6a3e450f699809a">ULOC_JAPAN</a>&nbsp;&nbsp;&nbsp;&quot;ja_JP&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this country/region.  <a href="#3d6e1333fe3cb6a4d6a3e450f699809a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#1fe49e8e2ce112dd4b6c37a7df8d6bef">ULOC_KOREA</a>&nbsp;&nbsp;&nbsp;&quot;ko_KR&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this country/region.  <a href="#1fe49e8e2ce112dd4b6c37a7df8d6bef"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#d267cd3ece7e2897af223440ed45b8b7">ULOC_TAIWAN</a>&nbsp;&nbsp;&nbsp;&quot;zh_TW&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this country/region.  <a href="#d267cd3ece7e2897af223440ed45b8b7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#e0e05ba29b498f566d5648a9f6adc830">ULOC_UK</a>&nbsp;&nbsp;&nbsp;&quot;en_GB&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this country/region.  <a href="#e0e05ba29b498f566d5648a9f6adc830"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#1b5c4fe869bea6d7516c298d92e4fa28">ULOC_US</a>&nbsp;&nbsp;&nbsp;&quot;en_US&quot;</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for this country/region.  <a href="#1b5c4fe869bea6d7516c298d92e4fa28"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#d3031a496d4ea9d9e3d2ca700912e7f0">ULOC_LANG_CAPACITY</a>&nbsp;&nbsp;&nbsp;12</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for the maximum size of the language part of a locale ID.  <a href="#d3031a496d4ea9d9e3d2ca700912e7f0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#45cdc2dfb841d8f7d794d824fd6458a0">ULOC_COUNTRY_CAPACITY</a>&nbsp;&nbsp;&nbsp;4</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for the maximum size of the country part of a locale ID (including the terminating NULL).  <a href="#45cdc2dfb841d8f7d794d824fd6458a0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#3ac7614902b13ec042d04469aa75cce1">ULOC_FULLNAME_CAPACITY</a>&nbsp;&nbsp;&nbsp;56</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for the maximum size of the whole locale ID (including the terminating NULL).  <a href="#3ac7614902b13ec042d04469aa75cce1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#9c03b1fb3b1884baf9589d6460301ef0">ULOC_SCRIPT_CAPACITY</a>&nbsp;&nbsp;&nbsp;6</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for the maximum size of the script part of a locale ID (including the terminating NULL).  <a href="#9c03b1fb3b1884baf9589d6460301ef0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#546067e8d51e092ac97766db040e4263">ULOC_KEYWORDS_CAPACITY</a>&nbsp;&nbsp;&nbsp;50</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for the maximum size of keywords in a locale.  <a href="#546067e8d51e092ac97766db040e4263"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#a92eacb3d494d9b5e470e99a2a39643b">ULOC_KEYWORD_AND_VALUES_CAPACITY</a>&nbsp;&nbsp;&nbsp;100</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Useful constant for the maximum SIZE of keywords in a locale.  <a href="#a92eacb3d494d9b5e470e99a2a39643b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#bfe97e4006cb58d9ccc05dcc83d35721">ULOC_KEYWORD_SEPARATOR</a>&nbsp;&nbsp;&nbsp;'@'</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Character separating keywords from the locale string different for EBCDIC - TODO.  <a href="#bfe97e4006cb58d9ccc05dcc83d35721"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#3a6c92b873d8e6ec79335326c18af55b">ULOC_KEYWORD_ASSIGN</a>&nbsp;&nbsp;&nbsp;'='</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Character for assigning value to a keyword.  <a href="#3a6c92b873d8e6ec79335326c18af55b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#1e116614d9ec2e43e92416f25d79c2b3">ULOC_KEYWORD_ITEM_SEPARATOR</a>&nbsp;&nbsp;&nbsp;';'</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Character separating keywords.  <a href="#1e116614d9ec2e43e92416f25d79c2b3"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#6de2f28093c32f13fb2527413bfcbef9">ULocDataLocaleType</a> { <a class="el" href="uloc_8h.html#6de2f28093c32f13fb2527413bfcbef9bb6c9ba3ad8953fbf2a7c5bde78e437c">ULOC_ACTUAL_LOCALE</a> =  0, 
<a class="el" href="uloc_8h.html#6de2f28093c32f13fb2527413bfcbef9caffc654d332b2bb5379dd65c52d63fd">ULOC_VALID_LOCALE</a> =  1, 
<a class="el" href="uloc_8h.html#6de2f28093c32f13fb2527413bfcbef9a3cf164b30da68e6e972459208fdeac9">ULOC_REQUESTED_LOCALE</a> =  2, 
<b>ULOC_DATA_LOCALE_TYPE_LIMIT</b> =  3
 }</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constants for *_getLocale() Allow user to select whether she wants information on requested, valid or actual locale.  <a href="uloc_8h.html#6de2f28093c32f13fb2527413bfcbef9">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#9b3e0a2028e4a6f988dc7224370c369c">UAcceptResult</a> { <b>ULOC_ACCEPT_FAILED</b> =  0, 
<b>ULOC_ACCEPT_VALID</b> =  1, 
<b>ULOC_ACCEPT_FALLBACK</b> =  2
 }</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">enums for the 'outResult' parameter return value  <a href="uloc_8h.html#9b3e0a2028e4a6f988dc7224370c369c">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#05fab60f12b103e270350f8b862a8b98">uloc_getDefault</a> (void)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets ICU's default locale.  <a href="#05fab60f12b103e270350f8b862a8b98"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#2a23b7f3537224e92c43ff560691d25b">uloc_setDefault</a> (const char *localeID, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets ICU's default locale.  <a href="#2a23b7f3537224e92c43ff560691d25b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#3142feef8d463c51f7a9592db1bdccca">uloc_getLanguage</a> (const char *localeID, char *language, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> languageCapacity, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the language code for the specified locale.  <a href="#3142feef8d463c51f7a9592db1bdccca"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#847f0de912730838f662b209ab5de92c">uloc_getScript</a> (const char *localeID, char *script, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> scriptCapacity, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the script code for the specified locale.  <a href="#847f0de912730838f662b209ab5de92c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#4c45899af95ed32684e7046ab66086a2">uloc_getCountry</a> (const char *localeID, char *country, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> countryCapacity, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the country code for the specified locale.  <a href="#4c45899af95ed32684e7046ab66086a2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#a7ea05e9ec421396fcd06bff45face38">uloc_getVariant</a> (const char *localeID, char *variant, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> variantCapacity, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the variant code for the specified locale.  <a href="#a7ea05e9ec421396fcd06bff45face38"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#dbfb4dd1a9c1212d94b310b037bf5a55">uloc_getName</a> (const char *localeID, char *name, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> nameCapacity, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the full name for the specified locale.  <a href="#dbfb4dd1a9c1212d94b310b037bf5a55"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#8bf924578e4a63da94cf3494cef04098">uloc_canonicalize</a> (const char *localeID, char *name, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> nameCapacity, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the full name for the specified locale.  <a href="#8bf924578e4a63da94cf3494cef04098"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#d67d246dcaea81c3b2fbbb783fed749b">uloc_getISO3Language</a> (const char *localeID)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the ISO language code for the specified locale.  <a href="#d67d246dcaea81c3b2fbbb783fed749b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#d7c0ee637ab566ed6ff6139bd8cf722e">uloc_getISO3Country</a> (const char *localeID)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the ISO country code for the specified locale.  <a href="#d7c0ee637ab566ed6ff6139bd8cf722e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#6dffdaa3be697bee6b7286a8120d3638">uint32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#9ff6ee23ab74f1a62f9134d26f26cc8c">uloc_getLCID</a> (const char *localeID)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the Win32 LCID value for the specified locale.  <a href="#9ff6ee23ab74f1a62f9134d26f26cc8c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#cdc7686ca315ab02ababe1f6d985579c">uloc_getDisplayLanguage</a> (const char *locale, const char *displayLocale, UChar *language, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> languageCapacity, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the language name suitable for display for the specified locale.  <a href="#cdc7686ca315ab02ababe1f6d985579c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#e7293df10b53733aba652afefbe8017c">uloc_getDisplayScript</a> (const char *locale, const char *displayLocale, UChar *script, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> scriptCapacity, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the script name suitable for display for the specified locale.  <a href="#e7293df10b53733aba652afefbe8017c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#109d862bc4b7593aa147132c20a80972">uloc_getDisplayCountry</a> (const char *locale, const char *displayLocale, UChar *country, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> countryCapacity, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the country name suitable for display for the specified locale.  <a href="#109d862bc4b7593aa147132c20a80972"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#dee4af7b3082bc13d014b081d56f4ad2">uloc_getDisplayVariant</a> (const char *locale, const char *displayLocale, UChar *variant, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> variantCapacity, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the variant name suitable for display for the specified locale.  <a href="#dee4af7b3082bc13d014b081d56f4ad2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#b87c98faa1d74980f1758af47d1132c9">uloc_getDisplayKeyword</a> (const char *keyword, const char *displayLocale, UChar *dest, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> destCapacity, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the keyword name suitable for display for the specified locale.  <a href="#b87c98faa1d74980f1758af47d1132c9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#2bf4ab92a4960f284cad8572cf0c1e28">uloc_getDisplayKeywordValue</a> (const char *locale, const char *keyword, const char *displayLocale, UChar *dest, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> destCapacity, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the value of the keyword suitable for display for the specified locale.  <a href="#2bf4ab92a4960f284cad8572cf0c1e28"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#8771e28efbda70646dd35bf2f85f1f13">uloc_getDisplayName</a> (const char *localeID, const char *inLocaleID, UChar *result, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> maxResultSize, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the full name suitable for display for the specified locale.  <a href="#8771e28efbda70646dd35bf2f85f1f13"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#9186ff7d450057e2f9eab65ed78c83a2">uloc_getAvailable</a> (<a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> n)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the specified locale from a list of all available locales.  <a href="#9186ff7d450057e2f9eab65ed78c83a2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#789e9e51a6d0fd141efdfa2d70478be5">uloc_countAvailable</a> (void)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the size of the all available locale list.  <a href="#789e9e51a6d0fd141efdfa2d70478be5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *const *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#b08cf01c61dd520863d2f2030438133d">uloc_getISOLanguages</a> (void)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets a list of all available language codes defined in ISO 639.  <a href="#b08cf01c61dd520863d2f2030438133d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *const *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#94b84cbe751bf31646859ae48e6f2486">uloc_getISOCountries</a> (void)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets a list of all available 2-letter country codes defined in ISO 639.  <a href="#94b84cbe751bf31646859ae48e6f2486"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#4d2d82aad09b136a11a81860aa86e620">uloc_getParent</a> (const char *localeID, char *parent, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> parentCapacity, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Truncate the locale ID string to get the parent locale ID.  <a href="#4d2d82aad09b136a11a81860aa86e620"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#b683c5c4fa34eae0e4c7ff79c3c0203b">uloc_getBaseName</a> (const char *localeID, char *name, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> nameCapacity, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *err)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the full name for the specified locale.  <a href="#b683c5c4fa34eae0e4c7ff79c3c0203b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="uenum_8h.html#94e2cf04090303ede650080c6d091985">UEnumeration</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#c10315918cdcb1784d23d067f9300a44">uloc_openKeywords</a> (const char *localeID, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets an enumeration of keywords for the specified locale.  <a href="#c10315918cdcb1784d23d067f9300a44"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#fedf24f6554a1c08c9e7c5b347d921d6">uloc_getKeywordValue</a> (const char *localeID, const char *keywordName, char *buffer, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> bufferCapacity, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the value for a keyword.  <a href="#fedf24f6554a1c08c9e7c5b347d921d6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#61871f545e8481946af7346550311a66">uloc_setKeywordValue</a> (const char *keywordName, const char *keywordValue, char *buffer, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> bufferCapacity, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the value of the specified keyword.  <a href="#61871f545e8481946af7346550311a66"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#a21568c7888093c881c115ba621d96d7">uloc_acceptLanguageFromHTTP</a> (char *result, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> resultAvailable, <a class="el" href="uloc_8h.html#9b3e0a2028e4a6f988dc7224370c369c">UAcceptResult</a> *outResult, const char *httpAcceptLanguage, <a class="el" href="uenum_8h.html#94e2cf04090303ede650080c6d091985">UEnumeration</a> *availableLocales, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Based on a HTTP header from a web browser and a list of available locales, determine an acceptable locale for the user.  <a href="#a21568c7888093c881c115ba621d96d7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="uloc_8h.html#06c13ccda80b6b6633f2551b96657b55">uloc_acceptLanguage</a> (char *result, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> resultAvailable, <a class="el" href="uloc_8h.html#9b3e0a2028e4a6f988dc7224370c369c">UAcceptResult</a> *outResult, const char **acceptList, <a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> acceptListCount, <a class="el" href="uenum_8h.html#94e2cf04090303ede650080c6d091985">UEnumeration</a> *availableLocales, <a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *status)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Based on a list of available locales, determine an acceptable locale for the user.  <a href="#06c13ccda80b6b6633f2551b96657b55"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
C API: <a class="el" href="classLocale.html">Locale</a>. 
<p>
<h2>ULoc C API for <a class="el" href="classLocale.html">Locale</a> </h2>
<p>
A <code><a class="el" href="classLocale.html">Locale</a></code> represents a specific geographical, political, or cultural region. An operation that requires a <code><a class="el" href="classLocale.html">Locale</a></code> to perform its task is called <em>locale-sensitive</em> and uses the <code><a class="el" href="classLocale.html">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. In the C APIs, a locales is simply a const char string.<p>
You create a <code><a class="el" href="classLocale.html">Locale</a></code> with one of the three options listed below. Each of the component is separated by '_' in the locale string.  <blockquote> <pre>
<div class="fragment"><pre class="fragment">       newLanguage
 
       newLanguage + newCountry
 
       newLanguage + newCountry + newVariant
</pre></div>
 </pre>  </blockquote> The first option 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 a number of sites, such as: <br>
<a href="http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt">http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt</a><p>
The second option includes an additonal <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.chemie.fu-berlin.de/diverse/doc/ISO_3166.html">http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html</a><p>
The third option requires another additonal information--the <b>Variant.</b> The Variant codes are vendor and browser-specific. For example, use WIN for Windows, MAC for Macintosh, 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_WIN".<p>
Because a <code><a class="el" href="classLocale.html">Locale</a></code> is just an identifier for a region, no validity check is performed when you specify a <code><a class="el" href="classLocale.html">Locale</a></code>. If you want to see whether particular resources are available for the <code><a class="el" href="classLocale.html">Locale</a></code> you asked for, you must query those resources. For example, ask the <code>UNumberFormat</code> for the locales it supports using its <code>getAvailable</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>UResourceBundle</code>.<p>
The <code><a class="el" href="classLocale.html">Locale</a></code> provides a number of convenient constants that you can use to specify the commonly used locales. For example, the following refers to a locale for the United States:  <blockquote> <pre>
<div class="fragment"><pre class="fragment">       <a class="code" href="uloc_8h.html#1b5c4fe869bea6d7516c298d92e4fa28">ULOC_US</a>
</pre></div>
 </pre>  </blockquote><p>
Once you've specified a locale you can query it for information about itself. Use <code>uloc_getCountry</code> to get the ISO Country Code and <code>uloc_getLanguage</code> to get the ISO Language Code. You can use <code>uloc_getDisplayCountry</code> to get the name of the country suitable for displaying to the user. Similarly, you can use <code>uloc_getDisplayLanguage</code> to get the name of the language suitable for displaying to the user. Interestingly, the <code>uloc_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>
The ICU provides a number of services that perform locale-sensitive operations. For example, the <code>unum_xxx</code> functions format numbers, currency, or percentages in a locale-sensitive manner.   <blockquote> <pre>
<div class="fragment"><pre class="fragment">     <a class="code" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> success = <a class="code" href="utypes_8h.html#863c11989634c998849cc946d04dfabe3734e0f4726e8f9f03ad0372fe1d7c4d">U_ZERO_ERROR</a>;
     <a class="code" href="unum_8h.html#09910e83c8dde3e2e7f7dfabd5a0712b">UNumberFormat</a> *nf;
     <span class="keyword">const</span> <span class="keywordtype">char</span>* myLocale = <span class="stringliteral">"fr_FR"</span>;
 
     nf = <a class="code" href="unum_8h.html#6817826f52896d1148a69efb41c6ca93">unum_open</a>( <a class="code" href="unum_8h.html#a74bd462d25f9076fedf46a04074c0db7f0156768f0b7dae92f9ba9b7a304319">UNUM_DEFAULT</a>, <a class="code" href="utypes_8h.html#73db6a27182fb6f49fadbdad318845ce">NULL</a>, success );          
     <a class="code" href="unum_8h.html#ce53259c2a3bf0ff257d2fa9b07aaa21">unum_close</a>(nf);
     nf = <a class="code" href="unum_8h.html#6817826f52896d1148a69efb41c6ca93">unum_open</a>( <a class="code" href="unum_8h.html#a74bd462d25f9076fedf46a04074c0db7bd611c103953d567437410231e7bad9">UNUM_CURRENCY</a>, <a class="code" href="utypes_8h.html#73db6a27182fb6f49fadbdad318845ce">NULL</a>, success );
     <a class="code" href="unum_8h.html#ce53259c2a3bf0ff257d2fa9b07aaa21">unum_close</a>(nf);
     nf = <a class="code" href="unum_8h.html#6817826f52896d1148a69efb41c6ca93">unum_open</a>( <a class="code" href="unum_8h.html#a74bd462d25f9076fedf46a04074c0db5e8c8c6835f29659be40b50a17bbf48e">UNUM_PERCENT</a>, <a class="code" href="utypes_8h.html#73db6a27182fb6f49fadbdad318845ce">NULL</a>, success );   
     <a class="code" href="unum_8h.html#ce53259c2a3bf0ff257d2fa9b07aaa21">unum_close</a>(nf);
</pre></div>
 </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>
<div class="fragment"><pre class="fragment">     nf = <a class="code" href="unum_8h.html#6817826f52896d1148a69efb41c6ca93">unum_open</a>( <a class="code" href="unum_8h.html#a74bd462d25f9076fedf46a04074c0db7f0156768f0b7dae92f9ba9b7a304319">UNUM_DEFAULT</a>, myLocale, success );          
     <a class="code" href="unum_8h.html#ce53259c2a3bf0ff257d2fa9b07aaa21">unum_close</a>(nf);
     nf = <a class="code" href="unum_8h.html#6817826f52896d1148a69efb41c6ca93">unum_open</a>( <a class="code" href="unum_8h.html#a74bd462d25f9076fedf46a04074c0db7bd611c103953d567437410231e7bad9">UNUM_CURRENCY</a>, myLocale, success );
     <a class="code" href="unum_8h.html#ce53259c2a3bf0ff257d2fa9b07aaa21">unum_close</a>(nf);
     nf = <a class="code" href="unum_8h.html#6817826f52896d1148a69efb41c6ca93">unum_open</a>( <a class="code" href="unum_8h.html#a74bd462d25f9076fedf46a04074c0db5e8c8c6835f29659be40b50a17bbf48e">UNUM_PERCENT</a>, myLocale, success );   
     <a class="code" href="unum_8h.html#ce53259c2a3bf0ff257d2fa9b07aaa21">unum_close</a>(nf);
</pre></div>
 </pre>  </blockquote> A <code><a class="el" href="classLocale.html">Locale</a></code> is the mechanism for identifying the kind of services (<code>UNumberFormat</code>) that you would like to get. The locale is <b>just</b> a mechanism for identifying these services.<p>
Each international serivce 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>
<div class="fragment"><pre class="fragment">       <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="uloc_8h.html#9186ff7d450057e2f9eab65ed78c83a2">uloc_getAvailable</a>(<a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> index);
       <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> <a class="code" href="uloc_8h.html#789e9e51a6d0fd141efdfa2d70478be5">uloc_countAvailable</a>();
       <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>
       <a class="code" href="uloc_8h.html#8771e28efbda70646dd35bf2f85f1f13">uloc_getDisplayName</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* localeID,
                 <span class="keyword">const</span> <span class="keywordtype">char</span>* inLocaleID, 
                 UChar* result,
                 <a class="code" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> maxResultSize,
                  <a class="code" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a>* err);
</pre></div>
 </pre>  </blockquote> <p>
Concerning POSIX/RFC1766 <a class="el" href="classLocale.html">Locale</a> IDs, the getLanguage/getCountry/getVariant/getName functions do understand the POSIX type form of language_COUNTRY.ENCODING@VARIANT and if there is not an ICU-stype variant, <a class="el" href="uloc_8h.html#a7ea05e9ec421396fcd06bff45face38">uloc_getVariant()</a> for example will return the one listed after the @at sign. As well, the hyphen "-" is recognized as a country/variant separator similarly to RFC1766. So for example, "en-us" will be interpreted as en_US. As a result, <a class="el" href="uloc_8h.html#dbfb4dd1a9c1212d94b310b037bf5a55">uloc_getName()</a> is far from a no-op, and will have the effect of converting POSIX/RFC1766 IDs into ICU form, although it does NOT map any of the actual codes (i.e. russian-&gt;ru) in any way. Applications should call <a class="el" href="uloc_8h.html#dbfb4dd1a9c1212d94b310b037bf5a55">uloc_getName()</a> at the point where a locale ID is coming from an external source (user entry, OS, web browser) and pass the resulting string to other ICU functions. For example, don't use de-de@EURO as an argument to resourcebundle.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="ures_8h.html#ac7af7d6f03daddbce1edcdd47256496">UResourceBundle</a> </dd></dl>

<p>
Definition in file <a class="el" href="uloc_8h-source.html">uloc.h</a>.<hr><h2>Define Documentation</h2>
<a class="anchor" name="56d26a2325296270d6617252b2032acc"></a><!-- doxytag: member="uloc.h::ULOC_CANADA" ref="56d26a2325296270d6617252b2032acc" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_CANADA&nbsp;&nbsp;&nbsp;&quot;en_CA&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this country/region. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001055">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00220">220</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="9e58497af0cc691466c1aac1c868228e"></a><!-- doxytag: member="uloc.h::ULOC_CANADA_FRENCH" ref="9e58497af0cc691466c1aac1c868228e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_CANADA_FRENCH&nbsp;&nbsp;&nbsp;&quot;fr_CA&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this country/region. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001056">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00222">222</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="18d71debeb49bcfd37bd0db3197e8a83"></a><!-- doxytag: member="uloc.h::ULOC_CHINA" ref="18d71debeb49bcfd37bd0db3197e8a83" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_CHINA&nbsp;&nbsp;&nbsp;&quot;zh_CN&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this country/region. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001057">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00224">224</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="cdc2b6482414f764cdd31b0f9d9b93a8"></a><!-- doxytag: member="uloc.h::ULOC_CHINESE" ref="cdc2b6482414f764cdd31b0f9d9b93a8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_CHINESE&nbsp;&nbsp;&nbsp;&quot;zh&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this language. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001046">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00201">201</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="45cdc2dfb841d8f7d794d824fd6458a0"></a><!-- doxytag: member="uloc.h::ULOC_COUNTRY_CAPACITY" ref="45cdc2dfb841d8f7d794d824fd6458a0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_COUNTRY_CAPACITY&nbsp;&nbsp;&nbsp;4          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for the maximum size of the country part of a locale ID (including the terminating NULL). 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001068">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00256">256</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="66ec7e13b29d0f5147d09780a14a1b78"></a><!-- doxytag: member="uloc.h::ULOC_ENGLISH" ref="66ec7e13b29d0f5147d09780a14a1b78" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_ENGLISH&nbsp;&nbsp;&nbsp;&quot;en&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this language. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001047">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00203">203</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="bdde469bcb55fe9c117902a8404e8e23"></a><!-- doxytag: member="uloc.h::ULOC_FRANCE" ref="bdde469bcb55fe9c117902a8404e8e23" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_FRANCE&nbsp;&nbsp;&nbsp;&quot;fr_FR&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this country/region. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001059">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00228">228</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="82ba976fafe7aa5178c3301ba1af6ca5"></a><!-- doxytag: member="uloc.h::ULOC_FRENCH" ref="82ba976fafe7aa5178c3301ba1af6ca5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_FRENCH&nbsp;&nbsp;&nbsp;&quot;fr&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this language. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001048">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00205">205</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="3ac7614902b13ec042d04469aa75cce1"></a><!-- doxytag: member="uloc.h::ULOC_FULLNAME_CAPACITY" ref="3ac7614902b13ec042d04469aa75cce1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_FULLNAME_CAPACITY&nbsp;&nbsp;&nbsp;56          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for the maximum size of the whole locale ID (including the terminating NULL). 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001069">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00262">262</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="f8d545c632422261782f1d0b1205aa25"></a><!-- doxytag: member="uloc.h::ULOC_GERMAN" ref="f8d545c632422261782f1d0b1205aa25" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_GERMAN&nbsp;&nbsp;&nbsp;&quot;de&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this language. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001049">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00207">207</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="98c6ded9215200bc27670ba746f5c632"></a><!-- doxytag: member="uloc.h::ULOC_GERMANY" ref="98c6ded9215200bc27670ba746f5c632" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_GERMANY&nbsp;&nbsp;&nbsp;&quot;de_DE&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this country/region. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001060">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00230">230</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="929190b43aeaa7f543fedd9efbb75558"></a><!-- doxytag: member="uloc.h::ULOC_ITALIAN" ref="929190b43aeaa7f543fedd9efbb75558" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_ITALIAN&nbsp;&nbsp;&nbsp;&quot;it&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this language. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001050">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00209">209</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="9348bcf19b817442ab6da0fcab4cf885"></a><!-- doxytag: member="uloc.h::ULOC_ITALY" ref="9348bcf19b817442ab6da0fcab4cf885" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_ITALY&nbsp;&nbsp;&nbsp;&quot;it_IT&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this country/region. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001061">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00232">232</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="3d6e1333fe3cb6a4d6a3e450f699809a"></a><!-- doxytag: member="uloc.h::ULOC_JAPAN" ref="3d6e1333fe3cb6a4d6a3e450f699809a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_JAPAN&nbsp;&nbsp;&nbsp;&quot;ja_JP&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this country/region. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001062">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00234">234</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="a241ab76480d52525ced9efbbfb09617"></a><!-- doxytag: member="uloc.h::ULOC_JAPANESE" ref="a241ab76480d52525ced9efbbfb09617" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_JAPANESE&nbsp;&nbsp;&nbsp;&quot;ja&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this language. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001051">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00211">211</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="a92eacb3d494d9b5e470e99a2a39643b"></a><!-- doxytag: member="uloc.h::ULOC_KEYWORD_AND_VALUES_CAPACITY" ref="a92eacb3d494d9b5e470e99a2a39643b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_KEYWORD_AND_VALUES_CAPACITY&nbsp;&nbsp;&nbsp;100          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for the maximum SIZE of keywords in a locale. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001072">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00281">281</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="3a6c92b873d8e6ec79335326c18af55b"></a><!-- doxytag: member="uloc.h::ULOC_KEYWORD_ASSIGN" ref="3a6c92b873d8e6ec79335326c18af55b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_KEYWORD_ASSIGN&nbsp;&nbsp;&nbsp;'='          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Character for assigning value to a keyword. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001074">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00293">293</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="1e116614d9ec2e43e92416f25d79c2b3"></a><!-- doxytag: member="uloc.h::ULOC_KEYWORD_ITEM_SEPARATOR" ref="1e116614d9ec2e43e92416f25d79c2b3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_KEYWORD_ITEM_SEPARATOR&nbsp;&nbsp;&nbsp;';'          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Character separating keywords. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001075">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00298">298</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="bfe97e4006cb58d9ccc05dcc83d35721"></a><!-- doxytag: member="uloc.h::ULOC_KEYWORD_SEPARATOR" ref="bfe97e4006cb58d9ccc05dcc83d35721" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_KEYWORD_SEPARATOR&nbsp;&nbsp;&nbsp;'@'          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Character separating keywords from the locale string different for EBCDIC - TODO. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001073">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00288">288</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="546067e8d51e092ac97766db040e4263"></a><!-- doxytag: member="uloc.h::ULOC_KEYWORDS_CAPACITY" ref="546067e8d51e092ac97766db040e4263" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_KEYWORDS_CAPACITY&nbsp;&nbsp;&nbsp;50          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for the maximum size of keywords in a locale. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001071">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00275">275</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="1fe49e8e2ce112dd4b6c37a7df8d6bef"></a><!-- doxytag: member="uloc.h::ULOC_KOREA" ref="1fe49e8e2ce112dd4b6c37a7df8d6bef" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_KOREA&nbsp;&nbsp;&nbsp;&quot;ko_KR&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this country/region. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001063">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00236">236</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="f4ac5b5caac7985c4500944594942e44"></a><!-- doxytag: member="uloc.h::ULOC_KOREAN" ref="f4ac5b5caac7985c4500944594942e44" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_KOREAN&nbsp;&nbsp;&nbsp;&quot;ko&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this language. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001052">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00213">213</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="d3031a496d4ea9d9e3d2ca700912e7f0"></a><!-- doxytag: member="uloc.h::ULOC_LANG_CAPACITY" ref="d3031a496d4ea9d9e3d2ca700912e7f0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_LANG_CAPACITY&nbsp;&nbsp;&nbsp;12          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for the maximum size of the language part of a locale ID. 
<p>
(including the terminating NULL). <dl compact><dt><b><a class="el" href="stable.html#_stable001067">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00249">249</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="54a67cccf48ab65a795ea7250fd6261d"></a><!-- doxytag: member="uloc.h::ULOC_PRC" ref="54a67cccf48ab65a795ea7250fd6261d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_PRC&nbsp;&nbsp;&nbsp;&quot;zh_CN&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this country/region. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001058">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00226">226</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="9c03b1fb3b1884baf9589d6460301ef0"></a><!-- doxytag: member="uloc.h::ULOC_SCRIPT_CAPACITY" ref="9c03b1fb3b1884baf9589d6460301ef0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_SCRIPT_CAPACITY&nbsp;&nbsp;&nbsp;6          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for the maximum size of the script part of a locale ID (including the terminating NULL). 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001070">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00269">269</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="3a3c236b70e81fc01fe6176d266b0f05"></a><!-- doxytag: member="uloc.h::ULOC_SIMPLIFIED_CHINESE" ref="3a3c236b70e81fc01fe6176d266b0f05" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_SIMPLIFIED_CHINESE&nbsp;&nbsp;&nbsp;&quot;zh_CN&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this language. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001053">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00215">215</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="d267cd3ece7e2897af223440ed45b8b7"></a><!-- doxytag: member="uloc.h::ULOC_TAIWAN" ref="d267cd3ece7e2897af223440ed45b8b7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_TAIWAN&nbsp;&nbsp;&nbsp;&quot;zh_TW&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this country/region. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001064">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00238">238</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="31fe69594794c4b06517a56c9e1b2baa"></a><!-- doxytag: member="uloc.h::ULOC_TRADITIONAL_CHINESE" ref="31fe69594794c4b06517a56c9e1b2baa" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_TRADITIONAL_CHINESE&nbsp;&nbsp;&nbsp;&quot;zh_TW&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this language. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001054">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00217">217</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="e0e05ba29b498f566d5648a9f6adc830"></a><!-- doxytag: member="uloc.h::ULOC_UK" ref="e0e05ba29b498f566d5648a9f6adc830" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_UK&nbsp;&nbsp;&nbsp;&quot;en_GB&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this country/region. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001065">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00240">240</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="1b5c4fe869bea6d7516c298d92e4fa28"></a><!-- doxytag: member="uloc.h::ULOC_US" ref="1b5c4fe869bea6d7516c298d92e4fa28" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ULOC_US&nbsp;&nbsp;&nbsp;&quot;en_US&quot;          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Useful constant for this country/region. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001066">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00242">242</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<hr><h2>Enumeration Type Documentation</h2>
<a class="anchor" name="9b3e0a2028e4a6f988dc7224370c369c"></a><!-- doxytag: member="uloc.h::UAcceptResult" ref="9b3e0a2028e4a6f988dc7224370c369c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="uloc_8h.html#9b3e0a2028e4a6f988dc7224370c369c">UAcceptResult</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
enums for the 'outResult' parameter return value 
<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="uloc_8h.html#a21568c7888093c881c115ba621d96d7">uloc_acceptLanguageFromHTTP</a> <p>
<a class="el" href="uloc_8h.html#06c13ccda80b6b6633f2551b96657b55">uloc_acceptLanguage</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001104">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00864">864</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<a class="anchor" name="6de2f28093c32f13fb2527413bfcbef9"></a><!-- doxytag: member="uloc.h::ULocDataLocaleType" ref="6de2f28093c32f13fb2527413bfcbef9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="uloc_8h.html#6de2f28093c32f13fb2527413bfcbef9">ULocDataLocaleType</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constants for *_getLocale() Allow user to select whether she wants information on requested, valid or actual locale. 
<p>
For example, a collator for "en_US_CALIFORNIA" was requested. In the current state of ICU (2.0), the requested locale is "en_US_CALIFORNIA", the valid locale is "en_US" (most specific locale supported by ICU) and the actual locale is "root" (the collation data comes unmodified from the UCA) The locale is considered supported by ICU if there is a core ICU bundle for that locale (although it may be empty). <dl compact><dt><b><a class="el" href="stable.html#_stable001076">Stable:</a></b></dt><dd>ICU 2.1 </dd></dl>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="6de2f28093c32f13fb2527413bfcbef9bb6c9ba3ad8953fbf2a7c5bde78e437c"></a><!-- doxytag: member="ULOC_ACTUAL_LOCALE" ref="6de2f28093c32f13fb2527413bfcbef9bb6c9ba3ad8953fbf2a7c5bde78e437c" args="" -->ULOC_ACTUAL_LOCALE</em>&nbsp;</td><td>
This is locale the data actually comes from. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001107">Stable:</a></b></dt><dd>ICU 2.1 </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="6de2f28093c32f13fb2527413bfcbef9caffc654d332b2bb5379dd65c52d63fd"></a><!-- doxytag: member="ULOC_VALID_LOCALE" ref="6de2f28093c32f13fb2527413bfcbef9caffc654d332b2bb5379dd65c52d63fd" args="" -->ULOC_VALID_LOCALE</em>&nbsp;</td><td>
This is the most specific locale supported by ICU. 
<p>
<dl compact><dt><b><a class="el" href="stable.html#_stable001108">Stable:</a></b></dt><dd>ICU 2.1 </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="6de2f28093c32f13fb2527413bfcbef9a3cf164b30da68e6e972459208fdeac9"></a><!-- doxytag: member="ULOC_REQUESTED_LOCALE" ref="6de2f28093c32f13fb2527413bfcbef9a3cf164b30da68e6e972459208fdeac9" args="" -->ULOC_REQUESTED_LOCALE</em>&nbsp;</td><td>
This is the requested locale. 
<p>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000004">Deprecated:</a></b></dt><dd>ICU 2.8 </dd></dl>
</td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="uloc_8h-source.html#l00314">314</a> of file <a class="el" href="uloc_8h-source.html">uloc.h</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="06c13ccda80b6b6633f2551b96657b55"></a><!-- doxytag: member="uloc.h::uloc_acceptLanguage" ref="06c13ccda80b6b6633f2551b96657b55" args="(char *result, int32_t resultAvailable, UAcceptResult *outResult, const char **acceptList, int32_t acceptListCount, UEnumeration *availableLocales, UErrorCode *status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_acceptLanguage           </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>resultAvailable</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="uloc_8h.html#9b3e0a2028e4a6f988dc7224370c369c">UAcceptResult</a> *&nbsp;</td>
          <td class="paramname"> <em>outResult</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char **&nbsp;</td>
          <td class="paramname"> <em>acceptList</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>acceptListCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="uenum_8h.html#94e2cf04090303ede650080c6d091985">UEnumeration</a> *&nbsp;</td>
          <td class="paramname"> <em>availableLocales</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Based on a list of available locales, determine an acceptable locale for the user. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>- buffer to accept the result locale </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>resultAvailable</em>&nbsp;</td><td>the size of the result buffer. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>outResult</em>&nbsp;</td><td>- An out parameter that contains the fallback status </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>acceptList</em>&nbsp;</td><td>- list of acceptable languages </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>acceptListCount</em>&nbsp;</td><td>- count of acceptList items </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>availableLocales</em>&nbsp;</td><td>- list of available locales to match </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Error status, may be BUFFER_OVERFLOW_ERROR </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>length needed for the locale. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001106">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

</div>
</div><p>
<a class="anchor" name="a21568c7888093c881c115ba621d96d7"></a><!-- doxytag: member="uloc.h::uloc_acceptLanguageFromHTTP" ref="a21568c7888093c881c115ba621d96d7" args="(char *result, int32_t resultAvailable, UAcceptResult *outResult, const char *httpAcceptLanguage, UEnumeration *availableLocales, UErrorCode *status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_acceptLanguageFromHTTP           </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>resultAvailable</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="uloc_8h.html#9b3e0a2028e4a6f988dc7224370c369c">UAcceptResult</a> *&nbsp;</td>
          <td class="paramname"> <em>outResult</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>httpAcceptLanguage</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="uenum_8h.html#94e2cf04090303ede650080c6d091985">UEnumeration</a> *&nbsp;</td>
          <td class="paramname"> <em>availableLocales</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Based on a HTTP header from a web browser and a list of available locales, determine an acceptable locale for the user. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>- buffer to accept the result locale </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>resultAvailable</em>&nbsp;</td><td>the size of the result buffer. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>outResult</em>&nbsp;</td><td>- An out parameter that contains the fallback status </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>httpAcceptLanguage</em>&nbsp;</td><td>- "Accept-Language:" header as per HTTP. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>availableLocales</em>&nbsp;</td><td>- list of available locales to match </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>Error status, may be BUFFER_OVERFLOW_ERROR </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>length needed for the locale. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001105">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

</div>
</div><p>
<a class="anchor" name="8bf924578e4a63da94cf3494cef04098"></a><!-- doxytag: member="uloc.h::uloc_canonicalize" ref="8bf924578e4a63da94cf3494cef04098" args="(const char *localeID, char *name, int32_t nameCapacity, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_canonicalize           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>localeID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>nameCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the full name for the specified locale. 
<p>
Note: This has the effect of 'canonicalizing' the string to a certain extent. Upper and lower case are set as needed, and if the components were in 'POSIX' format they are changed to ICU format. It does NOT map aliased names in any way. See the top of this header file.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>localeID</em>&nbsp;</td><td>the locale to get the full name with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>the full name for localeID </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>nameCapacity</em>&nbsp;</td><td>the size of the name buffer to store the full name with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>error information if retrieving the full name failed </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the actual buffer size needed for the full name. If it's greater than nameCapacity, the returned full name will be truncated. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001084">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

</div>
</div><p>
<a class="anchor" name="789e9e51a6d0fd141efdfa2d70478be5"></a><!-- doxytag: member="uloc.h::uloc_countAvailable" ref="789e9e51a6d0fd141efdfa2d70478be5" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_countAvailable           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the size of the all available locale list. 
<p>
<dl compact><dt><b>Returns:</b></dt><dd>the size of the locale list </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001096">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="9186ff7d450057e2f9eab65ed78c83a2"></a><!-- doxytag: member="uloc.h::uloc_getAvailable" ref="9186ff7d450057e2f9eab65ed78c83a2" args="(int32_t n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* uloc_getAvailable           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>n</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the specified locale from a list of all available locales. 
<p>
The return value is a pointer to an item of a locale name array. Both this array and the pointers it contains are owned by ICU and should not be deleted or written through by the caller. The locale name is terminated by a null pointer. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>n</em>&nbsp;</td><td>the specific locale name index of the available locale list </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>a specified locale name of all available locales </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001095">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="b683c5c4fa34eae0e4c7ff79c3c0203b"></a><!-- doxytag: member="uloc.h::uloc_getBaseName" ref="b683c5c4fa34eae0e4c7ff79c3c0203b" args="(const char *localeID, char *name, int32_t nameCapacity, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_getBaseName           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>localeID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>nameCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the full name for the specified locale. 
<p>
Note: This has the effect of 'canonicalizing' the string to a certain extent. Upper and lower case are set as needed, and if the components were in 'POSIX' format they are changed to ICU format. It does NOT map aliased names in any way. See the top of this header file. This API strips off the keyword part, so "de_DE\@collation=phonebook" will become "de_DE". This API supports preflighting.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>localeID</em>&nbsp;</td><td>the locale to get the full name with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>fill in buffer for the name without keywords. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>nameCapacity</em>&nbsp;</td><td>capacity of the fill in buffer. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>error information if retrieving the full name failed </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the actual buffer size needed for the full name. If it's greater than nameCapacity, the returned full name will be truncated. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001100">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

</div>
</div><p>
<a class="anchor" name="4c45899af95ed32684e7046ab66086a2"></a><!-- doxytag: member="uloc.h::uloc_getCountry" ref="4c45899af95ed32684e7046ab66086a2" args="(const char *localeID, char *country, int32_t countryCapacity, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_getCountry           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>localeID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>country</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>countryCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the country code for the specified locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>localeID</em>&nbsp;</td><td>the locale to get the country code with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>country</em>&nbsp;</td><td>the country code for localeID </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>countryCapacity</em>&nbsp;</td><td>the size of the country buffer to store the country code with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>error information if retrieving the country code failed </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the actual buffer size needed for the country code. If it's greater than countryCapacity, the returned country code will be truncated. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001081">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="05fab60f12b103e270350f8b862a8b98"></a><!-- doxytag: member="uloc.h::uloc_getDefault" ref="05fab60f12b103e270350f8b862a8b98" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* uloc_getDefault           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets ICU's default locale. 
<p>
The returned string is a snapshot in time, and will remain valid and unchanged even when <a class="el" href="uloc_8h.html#2a23b7f3537224e92c43ff560691d25b">uloc_setDefault()</a> is called. The returned storage is owned by ICU, and must not be altered or deleted by the caller.<p>
<dl compact><dt><b>Returns:</b></dt><dd>the ICU default locale </dd></dl>
<dl compact><dt><b><a class="el" href="system.html#_system000026">System:</a></b></dt><dd>Do not use unless you know what you are doing.  </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001077">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="109d862bc4b7593aa147132c20a80972"></a><!-- doxytag: member="uloc.h::uloc_getDisplayCountry" ref="109d862bc4b7593aa147132c20a80972" args="(const char *locale, const char *displayLocale, UChar *country, int32_t countryCapacity, UErrorCode *status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_getDisplayCountry           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>displayLocale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>country</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>countryCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the country name suitable for display for the specified locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>locale</em>&nbsp;</td><td>the locale to get the displayable country code with. NULL may be used to specify the default. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>displayLocale</em>&nbsp;</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#45a95e8f86f044446943a24f6c464203">Locale::getFrench()</a> for inLocale would result in "Anglais", while passing <a class="el" href="classLocale.html#7dabb360ddbb71fbd4b67de86a49f808">Locale::getGerman()</a> for inLocale would result in "Englisch". NULL may be used to specify the default. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>country</em>&nbsp;</td><td>the displayable country code for localeID </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>countryCapacity</em>&nbsp;</td><td>the size of the country buffer to store the displayable country code with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>error information if retrieving the displayable country code failed </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the actual buffer size needed for the displayable country code. If it's greater than countryCapacity, the returned displayable country code will be truncated. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001090">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="b87c98faa1d74980f1758af47d1132c9"></a><!-- doxytag: member="uloc.h::uloc_getDisplayKeyword" ref="b87c98faa1d74980f1758af47d1132c9" args="(const char *keyword, const char *displayLocale, UChar *dest, int32_t destCapacity, UErrorCode *status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_getDisplayKeyword           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>keyword</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>displayLocale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the keyword name suitable for display for the specified locale. 
<p>
E.g: for the locale string de_DE@collation=PHONEBOOK, this API gets the display string for the keyword collation. Usage: <code> UErrorCode status = U_ZERO_ERROR; const char* keyword =NULL; int32_t keywordLen = 0; int32_t keywordCount = 0; UChar displayKeyword[256]; int32_t displayKeywordLen = 0; UEnumeration* keywordEnum = uloc_openKeywords("de_DE@collation=PHONEBOOK;calendar=TRADITIONAL", &amp;status); for(keywordCount = uenum_count(keywordEnum, &amp;status); keywordCount &gt; 0 ; keywordCount--){ if(<a class="el" href="utypes_8h.html#488895ec2af6692af4afe1ddb1908155">U_FAILURE(status)</a>){ ...something went wrong so handle the error... break; } // the uenum_next returns NUL terminated string keyword = uenum_next(keywordEnum, &amp;keywordLen, &amp;status); displayKeywordLen = uloc_getDisplayKeyword(keyword, "en_US", displayKeyword, 256); ... do something interesting ..... } uenum_close(keywordEnum); </code> <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>keyword</em>&nbsp;</td><td>The keyword whose display string needs to be returned. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>displayLocale</em>&nbsp;</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#45a95e8f86f044446943a24f6c464203">Locale::getFrench()</a> for inLocale would result in "Anglais", while passing <a class="el" href="classLocale.html#7dabb360ddbb71fbd4b67de86a49f808">Locale::getGerman()</a> for inLocale would result in "Englisch". NULL may be used to specify the default. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dest</em>&nbsp;</td><td>the buffer to which the displayable keyword should be written. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>The size of the buffer (number of UChars). If it is 0, then dest may be NULL and the function will only return the length of the result without writing any of the result string (pre-flighting). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>error information if retrieving the displayable string failed. Should not be NULL and should not indicate failure on entry. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the actual buffer size needed for the displayable variant code. </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="uloc_8h.html#c10315918cdcb1784d23d067f9300a44">uloc_openKeywords</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001092">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

</div>
</div><p>
<a class="anchor" name="2bf4ab92a4960f284cad8572cf0c1e28"></a><!-- doxytag: member="uloc.h::uloc_getDisplayKeywordValue" ref="2bf4ab92a4960f284cad8572cf0c1e28" args="(const char *locale, const char *keyword, const char *displayLocale, UChar *dest, int32_t destCapacity, UErrorCode *status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_getDisplayKeywordValue           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>keyword</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>displayLocale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>destCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the value of the keyword suitable for display for the specified locale. 
<p>
E.g: for the locale string de_DE@collation=PHONEBOOK, this API gets the display string for PHONEBOOK, in the display locale, when "collation" is specified as the keyword.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>locale</em>&nbsp;</td><td>The locale to get the displayable variant code with. NULL may be used to specify the default. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>keyword</em>&nbsp;</td><td>The keyword for whose value should be used. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>displayLocale</em>&nbsp;</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#45a95e8f86f044446943a24f6c464203">Locale::getFrench()</a> for inLocale would result in "Anglais", while passing <a class="el" href="classLocale.html#7dabb360ddbb71fbd4b67de86a49f808">Locale::getGerman()</a> for inLocale would result in "Englisch". NULL may be used to specify the default. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dest</em>&nbsp;</td><td>the buffer to which the displayable keyword should be written. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>destCapacity</em>&nbsp;</td><td>The size of the buffer (number of UChars). If it is 0, then dest may be NULL and the function will only return the length of the result without writing any of the result string (pre-flighting). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>error information if retrieving the displayable string failed. Should not be NULL and must not indicate failure on entry. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the actual buffer size needed for the displayable variant code. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001093">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

</div>
</div><p>
<a class="anchor" name="cdc7686ca315ab02ababe1f6d985579c"></a><!-- doxytag: member="uloc.h::uloc_getDisplayLanguage" ref="cdc7686ca315ab02ababe1f6d985579c" args="(const char *locale, const char *displayLocale, UChar *language, int32_t languageCapacity, UErrorCode *status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_getDisplayLanguage           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>displayLocale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>languageCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the language name suitable for display for the specified locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>locale</em>&nbsp;</td><td>the locale to get the ISO language code with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>displayLocale</em>&nbsp;</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#45a95e8f86f044446943a24f6c464203">Locale::getFrench()</a> for inLocale would result in "Anglais", while passing <a class="el" href="classLocale.html#7dabb360ddbb71fbd4b67de86a49f808">Locale::getGerman()</a> for inLocale would result in "Englisch". </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>language</em>&nbsp;</td><td>the displayable language code for localeID </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>languageCapacity</em>&nbsp;</td><td>the size of the language buffer to store the displayable language code with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>error information if retrieving the displayable language code failed </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the actual buffer size needed for the displayable language code. If it's greater than languageCapacity, the returned language code will be truncated. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001088">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="8771e28efbda70646dd35bf2f85f1f13"></a><!-- doxytag: member="uloc.h::uloc_getDisplayName" ref="8771e28efbda70646dd35bf2f85f1f13" args="(const char *localeID, const char *inLocaleID, UChar *result, int32_t maxResultSize, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_getDisplayName           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>localeID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>inLocaleID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>maxResultSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the full name suitable for display for the specified locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>localeID</em>&nbsp;</td><td>the locale to get the displayable name with. NULL may be used to specify the default. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>inLocaleID</em>&nbsp;</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#45a95e8f86f044446943a24f6c464203">Locale::getFrench()</a> for inLocale would result in "Anglais", while passing <a class="el" href="classLocale.html#7dabb360ddbb71fbd4b67de86a49f808">Locale::getGerman()</a> for inLocale would result in "Englisch". NULL may be used to specify the default. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>the displayable name for localeID </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>maxResultSize</em>&nbsp;</td><td>the size of the name buffer to store the displayable full name with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>error information if retrieving the displayable name failed </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the actual buffer size needed for the displayable name. If it's greater than maxResultSize, the returned displayable name will be truncated. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001094">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="e7293df10b53733aba652afefbe8017c"></a><!-- doxytag: member="uloc.h::uloc_getDisplayScript" ref="e7293df10b53733aba652afefbe8017c" args="(const char *locale, const char *displayLocale, UChar *script, int32_t scriptCapacity, UErrorCode *status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_getDisplayScript           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>displayLocale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>script</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>scriptCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the script name suitable for display for the specified locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>locale</em>&nbsp;</td><td>the locale to get the displayable script code with. NULL may be used to specify the default. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>displayLocale</em>&nbsp;</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#45a95e8f86f044446943a24f6c464203">Locale::getFrench()</a> for inLocale would result in "", while passing <a class="el" href="classLocale.html#7dabb360ddbb71fbd4b67de86a49f808">Locale::getGerman()</a> for inLocale would result in "". NULL may be used to specify the default. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>script</em>&nbsp;</td><td>the displayable country code for localeID </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>scriptCapacity</em>&nbsp;</td><td>the size of the script buffer to store the displayable script code with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>error information if retrieving the displayable script code failed </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the actual buffer size needed for the displayable script code. If it's greater than scriptCapacity, the returned displayable script code will be truncated. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001089">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

</div>
</div><p>
<a class="anchor" name="dee4af7b3082bc13d014b081d56f4ad2"></a><!-- doxytag: member="uloc.h::uloc_getDisplayVariant" ref="dee4af7b3082bc13d014b081d56f4ad2" args="(const char *locale, const char *displayLocale, UChar *variant, int32_t variantCapacity, UErrorCode *status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_getDisplayVariant           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>displayLocale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UChar *&nbsp;</td>
          <td class="paramname"> <em>variant</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>variantCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the variant name suitable for display for the specified locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>locale</em>&nbsp;</td><td>the locale to get the displayable variant code with. NULL may be used to specify the default. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>displayLocale</em>&nbsp;</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#45a95e8f86f044446943a24f6c464203">Locale::getFrench()</a> for inLocale would result in "Anglais", while passing <a class="el" href="classLocale.html#7dabb360ddbb71fbd4b67de86a49f808">Locale::getGerman()</a> for inLocale would result in "Englisch". NULL may be used to specify the default. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>variant</em>&nbsp;</td><td>the displayable variant code for localeID </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>variantCapacity</em>&nbsp;</td><td>the size of the variant buffer to store the displayable variant code with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>error information if retrieving the displayable variant code failed </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the actual buffer size needed for the displayable variant code. If it's greater than variantCapacity, the returned displayable variant code will be truncated. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001091">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="d7c0ee637ab566ed6ff6139bd8cf722e"></a><!-- doxytag: member="uloc.h::uloc_getISO3Country" ref="d7c0ee637ab566ed6ff6139bd8cf722e" args="(const char *localeID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* uloc_getISO3Country           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>localeID</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the ISO country code for the specified locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>localeID</em>&nbsp;</td><td>the locale to get the ISO country code with </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>country the ISO country code for localeID </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001086">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="d67d246dcaea81c3b2fbbb783fed749b"></a><!-- doxytag: member="uloc.h::uloc_getISO3Language" ref="d67d246dcaea81c3b2fbbb783fed749b" args="(const char *localeID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* uloc_getISO3Language           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>localeID</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the ISO language code for the specified locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>localeID</em>&nbsp;</td><td>the locale to get the ISO language code with </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>language the ISO language code for localeID </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001085">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="94b84cbe751bf31646859ae48e6f2486"></a><!-- doxytag: member="uloc.h::uloc_getISOCountries" ref="94b84cbe751bf31646859ae48e6f2486" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* const* uloc_getISOCountries           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets a list of all available 2-letter country codes defined in ISO 639. 
<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. <dl compact><dt><b>Returns:</b></dt><dd>a list of all available country codes </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001098">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="b08cf01c61dd520863d2f2030438133d"></a><!-- doxytag: member="uloc.h::uloc_getISOLanguages" ref="b08cf01c61dd520863d2f2030438133d" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* const* uloc_getISOLanguages           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets a list of all available language codes defined in ISO 639. 
<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. <dl compact><dt><b>Returns:</b></dt><dd>a list of all available language codes </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001097">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="fedf24f6554a1c08c9e7c5b347d921d6"></a><!-- doxytag: member="uloc.h::uloc_getKeywordValue" ref="fedf24f6554a1c08c9e7c5b347d921d6" args="(const char *localeID, const char *keywordName, char *buffer, int32_t bufferCapacity, UErrorCode *status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_getKeywordValue           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>localeID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>keywordName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</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#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the value for a keyword. 
<p>
<a class="el" href="classLocale.html">Locale</a> name does not need to be normalized.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>localeID</em>&nbsp;</td><td>locale name containing the keyword ("de_DE@currency=EURO;collation=PHONEBOOK") </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>keywordName</em>&nbsp;</td><td>name of the keyword for which we want the value. Case insensitive. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>receiving buffer </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>bufferCapacity</em>&nbsp;</td><td>capacity of receiving buffer </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>containing error code - buffer not big enough. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the length of keyword value </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001102">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

</div>
</div><p>
<a class="anchor" name="3142feef8d463c51f7a9592db1bdccca"></a><!-- doxytag: member="uloc.h::uloc_getLanguage" ref="3142feef8d463c51f7a9592db1bdccca" args="(const char *localeID, char *language, int32_t languageCapacity, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_getLanguage           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>localeID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>languageCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the language code for the specified locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>localeID</em>&nbsp;</td><td>the locale to get the ISO language code with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>language</em>&nbsp;</td><td>the language code for localeID </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>languageCapacity</em>&nbsp;</td><td>the size of the language buffer to store the language code with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>error information if retrieving the language code failed </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the actual buffer size needed for the language code. If it's greater than languageCapacity, the returned language code will be truncated. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001079">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="9ff6ee23ab74f1a62f9134d26f26cc8c"></a><!-- doxytag: member="uloc.h::uloc_getLCID" ref="9ff6ee23ab74f1a62f9134d26f26cc8c" args="(const char *localeID)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#6dffdaa3be697bee6b7286a8120d3638">uint32_t</a> uloc_getLCID           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>localeID</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the Win32 LCID value for the specified locale. 
<p>
If the ICU locale is not recognized by Windows, 0 will be returned.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>localeID</em>&nbsp;</td><td>the locale to get the Win32 LCID value with </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>country the Win32 LCID for localeID </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001087">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="dbfb4dd1a9c1212d94b310b037bf5a55"></a><!-- doxytag: member="uloc.h::uloc_getName" ref="dbfb4dd1a9c1212d94b310b037bf5a55" args="(const char *localeID, char *name, int32_t nameCapacity, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_getName           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>localeID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>nameCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the full name for the specified locale. 
<p>
Note: This has the effect of 'canonicalizing' the ICU locale ID to a certain extent. Upper and lower case are set as needed. It does NOT map aliased names in any way. See the top of this header file. This API supports preflighting.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>localeID</em>&nbsp;</td><td>the locale to get the full name with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>fill in buffer for the name without keywords. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>nameCapacity</em>&nbsp;</td><td>capacity of the fill in buffer. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>error information if retrieving the full name failed </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the actual buffer size needed for the full name. If it's greater than nameCapacity, the returned full name will be truncated. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001083">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="4d2d82aad09b136a11a81860aa86e620"></a><!-- doxytag: member="uloc.h::uloc_getParent" ref="4d2d82aad09b136a11a81860aa86e620" args="(const char *localeID, char *parent, int32_t parentCapacity, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_getParent           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>localeID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>parentCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Truncate the locale ID string to get the parent locale ID. 
<p>
Copies the part of the string before the last underscore. The parent locale ID will be an empty string if there is no underscore, or if there is only one underscore at localeID[0].<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>localeID</em>&nbsp;</td><td>Input locale ID string. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>parent</em>&nbsp;</td><td>Output string buffer for the parent locale ID. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>parentCapacity</em>&nbsp;</td><td>Size of the output buffer. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>A UErrorCode value. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The length of the parent locale ID. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001099">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="847f0de912730838f662b209ab5de92c"></a><!-- doxytag: member="uloc.h::uloc_getScript" ref="847f0de912730838f662b209ab5de92c" args="(const char *localeID, char *script, int32_t scriptCapacity, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_getScript           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>localeID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>script</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>scriptCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the script code for the specified locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>localeID</em>&nbsp;</td><td>the locale to get the ISO language code with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>script</em>&nbsp;</td><td>the language code for localeID </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>scriptCapacity</em>&nbsp;</td><td>the size of the language buffer to store the language code with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>error information if retrieving the language code failed </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the actual buffer size needed for the language code. If it's greater than scriptCapacity, the returned language code will be truncated. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001080">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

</div>
</div><p>
<a class="anchor" name="a7ea05e9ec421396fcd06bff45face38"></a><!-- doxytag: member="uloc.h::uloc_getVariant" ref="a7ea05e9ec421396fcd06bff45face38" args="(const char *localeID, char *variant, int32_t variantCapacity, UErrorCode *err)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_getVariant           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>localeID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>variant</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</td>
          <td class="paramname"> <em>variantCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>err</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets the variant code for the specified locale. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>localeID</em>&nbsp;</td><td>the locale to get the variant code with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>variant</em>&nbsp;</td><td>the variant code for localeID </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>variantCapacity</em>&nbsp;</td><td>the size of the variant buffer to store the variant code with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>err</em>&nbsp;</td><td>error information if retrieving the variant code failed </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the actual buffer size needed for the variant code. If it's greater than variantCapacity, the returned variant code will be truncated. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001082">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="c10315918cdcb1784d23d067f9300a44"></a><!-- doxytag: member="uloc.h::uloc_openKeywords" ref="c10315918cdcb1784d23d067f9300a44" args="(const char *localeID, UErrorCode *status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="uenum_8h.html#94e2cf04090303ede650080c6d091985">UEnumeration</a>* uloc_openKeywords           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>localeID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gets an enumeration of keywords for the specified locale. 
<p>
Enumeration must get disposed of by the client using uenum_close function.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>localeID</em>&nbsp;</td><td>the locale to get the variant code with </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>error information if retrieving the keywords failed </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>enumeration of keywords or NULL if there are no keywords. </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001101">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl>

</div>
</div><p>
<a class="anchor" name="2a23b7f3537224e92c43ff560691d25b"></a><!-- doxytag: member="uloc.h::uloc_setDefault" ref="2a23b7f3537224e92c43ff560691d25b" args="(const char *localeID, UErrorCode *status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void uloc_setDefault           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>localeID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets ICU's default locale. 
<p>
By default (without calling this function), ICU's default locale will be based on information obtained from the underlying system environment. <p>
Changes to ICU's default locale do not propagate back to the system environment. <p>
Changes to ICU's default locale to not affect any ICU services that may already be open based on the previous default locale value.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>localeID</em>&nbsp;</td><td>the new ICU default locale. A value of NULL will try to get the system's default locale. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>the error information if the setting of default locale fails </td></tr>
  </table>
</dl>
<dl compact><dt><b><a class="el" href="system.html#_system000027">System:</a></b></dt><dd>Do not use unless you know what you are doing.  </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001078">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl>

</div>
</div><p>
<a class="anchor" name="61871f545e8481946af7346550311a66"></a><!-- doxytag: member="uloc.h::uloc_setKeywordValue" ref="61871f545e8481946af7346550311a66" args="(const char *keywordName, const char *keywordValue, char *buffer, int32_t bufferCapacity, UErrorCode *status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a> uloc_setKeywordValue           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>keywordName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>keywordValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pwin32_8h.html#f03f47ee300d26bee7dd521b1169f394">int32_t</a>&nbsp;</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#863c11989634c998849cc946d04dfabe">UErrorCode</a> *&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the value of the specified keyword. 
<p>
NOTE: Unlike almost every other ICU function which takes a buffer, this function will NOT truncate the output text. If a BUFFER_OVERFLOW_ERROR is received, it means that the original buffer is untouched. This is done to prevent incorrect or possibly even malformed locales from being generated and used.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>keywordName</em>&nbsp;</td><td>name of the keyword to be set. Case insensitive. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>keywordValue</em>&nbsp;</td><td>value of the keyword to be set. If 0-length or NULL, will result in the keyword being removed. No error is given if that keyword does not exist. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>input buffer containing locale to be modified. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>bufferCapacity</em>&nbsp;</td><td>capacity of receiving buffer </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>containing error code - buffer not big enough. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the length needed for the buffer </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="uloc_8h.html#fedf24f6554a1c08c9e7c5b347d921d6">uloc_getKeywordValue</a> </dd></dl>
<dl compact><dt><b><a class="el" href="stable.html#_stable001103">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Tue Dec 13 17:29:52 2011 for ICU 3.6 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>