PNG  IHDR pHYs   OiCCPPhotoshop ICC profilexڝSgTS=BKKoR RB&*! J!QEEȠQ, !{kּ> H3Q5 B.@ $pd!s#~<<+"x M0B\t8K@zB@F&S`cbP-`'{[! eDh;VEX0fK9-0IWfH  0Q){`##xFW<+*x<$9E[-qWW.(I+6aa@.y24x6_-"bbϫp@t~,/;m%h^ uf@Wp~<5j>{-]cK'Xto(hw?G%fIq^D$.Tʳ?D*A, `6B$BB dr`)B(Ͱ*`/@4Qhp.U=pa( Aa!ڈbX#!H$ ɈQ"K5H1RT UH=r9\F;2G1Q= C7F dt1r=6Ыhڏ>C03l0.B8, c˱" VcϱwE 6wB aAHXLXNH $4 7 Q'"K&b21XH,#/{C7$C2'ITFnR#,4H#dk9, +ȅ3![ b@qS(RjJ4e2AURݨT5ZBRQ4u9̓IKhhitݕNWGw Ljg(gwLӋT071oUX**| J&*/Tު UUT^S}FU3S ԖUPSSg;goT?~YYLOCQ_ cx,!k u5&|v*=9C3J3WRf?qtN (~))4L1e\kXHQG6EYAJ'\'GgSSݧ M=:.kDwn^Loy}/TmG X $ <5qo</QC]@Caaᄑ.ȽJtq]zۯ6iܟ4)Y3sCQ? 0k߬~OCOg#/c/Wװwa>>r><72Y_7ȷOo_C#dz%gA[z|!?:eAAA!h쐭!ΑiP~aa~ 'W?pX15wCsDDDޛg1O9-J5*>.j<74?.fYXXIlK9.*6nl {/]py.,:@LN8A*%w% yg"/6шC\*NH*Mz쑼5y$3,幄'L Lݛ:v m2=:1qB!Mggfvˬen/kY- BTZ(*geWf͉9+̳ې7ᒶKW-X潬j9(xoʿܔĹdff-[n ڴ VE/(ۻCɾUUMfeI?m]Nmq#׹=TR+Gw- 6 U#pDy  :v{vg/jBFS[b[O>zG499?rCd&ˮ/~јѡ򗓿m|x31^VwwO| (hSЧc3- cHRMz%u0`:o_F@8N ' p @8N@8}' p '#@8N@8N pQ9p!i~}|6-ӪG` VP.@*j>[ K^<֐Z]@8N'KQ<Q(`s" 'hgpKB`R@Dqj '  'P$a ( `D$Na L?u80e J,K˷NI'0eݷ(NI'؀ 2ipIIKp`:O'`ʤxB8Ѥx Ѥx $ $P6 :vRNb 'p,>NB 'P]-->P T+*^h& p '‰a ‰ (ĵt#u33;Nt̵'ޯ; [3W ~]0KH1q@8]O2]3*̧7# *p>us p _6]/}-4|t'|Smx= DoʾM×M_8!)6lq':l7!|4} '\ne t!=hnLn (~Dn\+‰_4k)0e@OhZ`F `.m1} 'vp{F`ON7Srx 'D˸nV`><;yMx!IS钦OM)Ե٥x 'DSD6bS8!" ODz#R >S8!7ّxEh0m$MIPHi$IvS8IN$I p$O8I,sk&I)$IN$Hi$I^Ah.p$MIN$IR8I·N "IF9Ah0m$MIN$IR8IN$I 3jIU;kO$ɳN$+ q.x* tEXtComment

Viewing File: /opt/alt/alt-nodejs18/root/usr/share/doc/alt-nodejs18-libicu-doc/ulocale_8h.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ICU 74.2: common/unicode/ulocale.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ICU 74.2
   &#160;<span id="projectnumber">74.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_bdd9a5d540de89e9fe90efdfc6973a4f.html">common</a></li><li class="navelem"><a class="el" href="dir_f59c6450ff718ff1b085cfd1c36acbd7.html">unicode</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ulocale.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>C API: Locale ID functionality similar to C++ class Locale.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="localpointer_8h_source.html">unicode/localpointer.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="uenum_8h_source.html">unicode/uenum.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="utypes_8h_source.html">unicode/utypes.h</a>&quot;</code><br />
</div>
<p><a href="ulocale_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceicu"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceicu.html">icu</a></td></tr>
<tr class="memdesc:namespaceicu"><td class="mdescLeft">&#160;</td><td class="mdescRight">File <a class="el" href="coll_8h.html" title="C++ API: Collation Service.">coll.h</a>. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:aa5a1850d572e0fdb8a74aeee5cf0dd22"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a></td></tr>
<tr class="memdesc:aa5a1850d572e0fdb8a74aeee5cf0dd22"><td class="mdescLeft">&#160;</td><td class="mdescRight">C typedef for struct ULocale.  <a href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">More...</a><br /></td></tr>
<tr class="separator:aa5a1850d572e0fdb8a74aeee5cf0dd22"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a3b235e17a22a170b4a5af2d1f8554b7c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocale_8h.html#a3b235e17a22a170b4a5af2d1f8554b7c">ulocale_openForLocaleID</a> (const char *localeID, int32_t length, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>
<tr class="memdesc:a3b235e17a22a170b4a5af2d1f8554b7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs an ULocale from the locale ID.  <a href="ulocale_8h.html#a3b235e17a22a170b4a5af2d1f8554b7c">More...</a><br /></td></tr>
<tr class="separator:a3b235e17a22a170b4a5af2d1f8554b7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c3f4a47265aaa480fda013df6222a4a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocale_8h.html#a4c3f4a47265aaa480fda013df6222a4a">ulocale_openForLanguageTag</a> (const char *tag, int32_t length, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>
<tr class="memdesc:a4c3f4a47265aaa480fda013df6222a4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs an ULocale from the provided IETF BCP 47 language tag.  <a href="ulocale_8h.html#a4c3f4a47265aaa480fda013df6222a4a">More...</a><br /></td></tr>
<tr class="separator:a4c3f4a47265aaa480fda013df6222a4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accb6ba0e6f9519a0caf033ef3a9a6068"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocale_8h.html#accb6ba0e6f9519a0caf033ef3a9a6068">ulocale_close</a> (<a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *locale)</td></tr>
<tr class="memdesc:accb6ba0e6f9519a0caf033ef3a9a6068"><td class="mdescLeft">&#160;</td><td class="mdescRight">Close the locale and destroy it's internal states.  <a href="ulocale_8h.html#accb6ba0e6f9519a0caf033ef3a9a6068">More...</a><br /></td></tr>
<tr class="separator:accb6ba0e6f9519a0caf033ef3a9a6068"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab15525c473e2888a912e8762c5755185"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocale_8h.html#ab15525c473e2888a912e8762c5755185">ulocale_getLanguage</a> (const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *locale)</td></tr>
<tr class="memdesc:ab15525c473e2888a912e8762c5755185"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the locale's ISO-639 language code.  <a href="ulocale_8h.html#ab15525c473e2888a912e8762c5755185">More...</a><br /></td></tr>
<tr class="separator:ab15525c473e2888a912e8762c5755185"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bdba1c08b84b2b929c1125017ef5bb8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocale_8h.html#a4bdba1c08b84b2b929c1125017ef5bb8">ulocale_getScript</a> (const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *locale)</td></tr>
<tr class="memdesc:a4bdba1c08b84b2b929c1125017ef5bb8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the locale's ISO-15924 abbreviation script code.  <a href="ulocale_8h.html#a4bdba1c08b84b2b929c1125017ef5bb8">More...</a><br /></td></tr>
<tr class="separator:a4bdba1c08b84b2b929c1125017ef5bb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b1f7c6cf14b2ec59fb17e9a38027151"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocale_8h.html#a5b1f7c6cf14b2ec59fb17e9a38027151">ulocale_getRegion</a> (const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *locale)</td></tr>
<tr class="memdesc:a5b1f7c6cf14b2ec59fb17e9a38027151"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the locale's ISO-3166 region code.  <a href="ulocale_8h.html#a5b1f7c6cf14b2ec59fb17e9a38027151">More...</a><br /></td></tr>
<tr class="separator:a5b1f7c6cf14b2ec59fb17e9a38027151"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa91a3e1490ed0c928c495559ee8f8b36"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocale_8h.html#aa91a3e1490ed0c928c495559ee8f8b36">ulocale_getVariant</a> (const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *locale)</td></tr>
<tr class="memdesc:aa91a3e1490ed0c928c495559ee8f8b36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the locale's variant code.  <a href="ulocale_8h.html#aa91a3e1490ed0c928c495559ee8f8b36">More...</a><br /></td></tr>
<tr class="separator:aa91a3e1490ed0c928c495559ee8f8b36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abafae32e4250c998352218f27efafd9d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocale_8h.html#abafae32e4250c998352218f27efafd9d">ulocale_getLocaleID</a> (const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *locale)</td></tr>
<tr class="memdesc:abafae32e4250c998352218f27efafd9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the programmatic name of the entire locale, with the language, country and variant separated by underbars.  <a href="ulocale_8h.html#abafae32e4250c998352218f27efafd9d">More...</a><br /></td></tr>
<tr class="separator:abafae32e4250c998352218f27efafd9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa21b2899e2899b238d09a693a8fa09e5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocale_8h.html#aa21b2899e2899b238d09a693a8fa09e5">ulocale_getBaseName</a> (const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *locale)</td></tr>
<tr class="memdesc:aa21b2899e2899b238d09a693a8fa09e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the programmatic name of the entire locale as <a class="el" href="ulocale_8h.html#abafae32e4250c998352218f27efafd9d" title="Returns the programmatic name of the entire locale, with the language, country and variant separated ...">ulocale_getLocaleID()</a> would return, but without keywords.  <a href="ulocale_8h.html#aa21b2899e2899b238d09a693a8fa09e5">More...</a><br /></td></tr>
<tr class="separator:aa21b2899e2899b238d09a693a8fa09e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0c9cd67779e38fb068d7f49154007ca"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocale_8h.html#ac0c9cd67779e38fb068d7f49154007ca">ulocale_isBogus</a> (const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *locale)</td></tr>
<tr class="memdesc:ac0c9cd67779e38fb068d7f49154007ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the bogus state.  <a href="ulocale_8h.html#ac0c9cd67779e38fb068d7f49154007ca">More...</a><br /></td></tr>
<tr class="separator:ac0c9cd67779e38fb068d7f49154007ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42dbe5cd9e388326e65e54e3bb8c29f1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="uenum_8h.html#a32b7253b2148022535be36a9fcdb5a8d">UEnumeration</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocale_8h.html#a42dbe5cd9e388326e65e54e3bb8c29f1">ulocale_getKeywords</a> (const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *locale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>
<tr class="memdesc:a42dbe5cd9e388326e65e54e3bb8c29f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the list of keywords for the specified locale.  <a href="ulocale_8h.html#a42dbe5cd9e388326e65e54e3bb8c29f1">More...</a><br /></td></tr>
<tr class="separator:a42dbe5cd9e388326e65e54e3bb8c29f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98368a26224ee542622157975699b15b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="uenum_8h.html#a32b7253b2148022535be36a9fcdb5a8d">UEnumeration</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocale_8h.html#a98368a26224ee542622157975699b15b">ulocale_getUnicodeKeywords</a> (const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *locale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>
<tr class="memdesc:a98368a26224ee542622157975699b15b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the list of unicode keywords for the specified locale.  <a href="ulocale_8h.html#a98368a26224ee542622157975699b15b">More...</a><br /></td></tr>
<tr class="separator:a98368a26224ee542622157975699b15b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef0c2539bb9d945ffdea3ee4591ec675"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocale_8h.html#aef0c2539bb9d945ffdea3ee4591ec675">ulocale_getKeywordValue</a> (const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *locale, const char *keyword, int32_t keywordLength, char *valueBuffer, int32_t valueBufferCapacity, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>
<tr class="memdesc:aef0c2539bb9d945ffdea3ee4591ec675"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the value for a keyword.  <a href="ulocale_8h.html#aef0c2539bb9d945ffdea3ee4591ec675">More...</a><br /></td></tr>
<tr class="separator:aef0c2539bb9d945ffdea3ee4591ec675"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac3db0039d2786e496b61df2802c7a00"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocale_8h.html#aac3db0039d2786e496b61df2802c7a00">ulocale_getUnicodeKeywordValue</a> (const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *locale, const char *keyword, int32_t keywordLength, char *valueBuffer, int32_t valueBufferCapacity, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>
<tr class="memdesc:aac3db0039d2786e496b61df2802c7a00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the Unicode value for a Unicode keyword.  <a href="ulocale_8h.html#aac3db0039d2786e496b61df2802c7a00">More...</a><br /></td></tr>
<tr class="separator:aac3db0039d2786e496b61df2802c7a00"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>C API: Locale ID functionality similar to C++ class Locale. </p>

<p class="definition">Definition in file <a class="el" href="ulocale_8h_source.html">ulocale.h</a>.</p>
</div><h2 class="groupheader">Typedef Documentation</h2>
<a id="aa5a1850d572e0fdb8a74aeee5cf0dd22"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5a1850d572e0fdb8a74aeee5cf0dd22">&#9670;&nbsp;</a></span>ULocale</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>C typedef for struct ULocale. </p>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000006">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 74 </dd></dl>

<p class="definition">Definition at line <a class="el" href="ulocale_8h_source.html#l00001">1</a> of file <a class="el" href="ulocale_8h_source.html">ulocale.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="accb6ba0e6f9519a0caf033ef3a9a6068"></a>
<h2 class="memtitle"><span class="permalink"><a href="#accb6ba0e6f9519a0caf033ef3a9a6068">&#9670;&nbsp;</a></span>ulocale_close()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> void ulocale_close </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *&#160;</td>
          <td class="paramname"><em>locale</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Close the locale and destroy it's internal states. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the locale </td></tr>
  </table>
  </dd>
</dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000009">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 74 </dd></dl>

</div>
</div>
<a id="aa21b2899e2899b238d09a693a8fa09e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa21b2899e2899b238d09a693a8fa09e5">&#9670;&nbsp;</a></span>ulocale_getBaseName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> const char* ulocale_getBaseName </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *&#160;</td>
          <td class="paramname"><em>locale</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the programmatic name of the entire locale as <a class="el" href="ulocale_8h.html#abafae32e4250c998352218f27efafd9d" title="Returns the programmatic name of the entire locale, with the language, country and variant separated ...">ulocale_getLocaleID()</a> would return, but without keywords. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the locale </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to "base name". </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000015">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 74 </dd></dl>

</div>
</div>
<a id="a42dbe5cd9e388326e65e54e3bb8c29f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42dbe5cd9e388326e65e54e3bb8c29f1">&#9670;&nbsp;</a></span>ulocale_getKeywords()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="uenum_8h.html#a32b7253b2148022535be36a9fcdb5a8d">UEnumeration</a>* ulocale_getKeywords </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *&#160;</td>
          <td class="paramname"><em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>err</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the list of keywords for the specified locale. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the locale </td></tr>
    <tr><td class="paramname">err</td><td>the error code </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to UEnumeration, or nullptr if there are no keywords. Client must call <a class="el" href="uenum_8h.html#abcae42ba2a329894bcc3b37ad2a99a66" title="Disposes of resources in use by the iterator.">uenum_close()</a> to dispose the returned value. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000017">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 74 </dd></dl>

</div>
</div>
<a id="aef0c2539bb9d945ffdea3ee4591ec675"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef0c2539bb9d945ffdea3ee4591ec675">&#9670;&nbsp;</a></span>ulocale_getKeywordValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> int32_t ulocale_getKeywordValue </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *&#160;</td>
          <td class="paramname"><em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>keyword</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>keywordLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>valueBuffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>valueBufferCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>err</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the value for a keyword. </p>
<p>This uses legacy keyword=value pairs, like "collation=phonebook".</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the locale </td></tr>
    <tr><td class="paramname">keyword</td><td>the keyword, a const char * pointer (need not be terminated when the length is non-negative) </td></tr>
    <tr><td class="paramname">keywordLength</td><td>the length of the keyword; if negative, then the keyword need to be null terminated. </td></tr>
    <tr><td class="paramname">valueBuffer</td><td>The buffer to receive the value. </td></tr>
    <tr><td class="paramname">valueBufferCapacity</td><td>The capacity of receiving valueBuffer. </td></tr>
    <tr><td class="paramname">err</td><td>the error code </td></tr>
  </table>
  </dd>
</dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000019">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 74 </dd></dl>

</div>
</div>
<a id="ab15525c473e2888a912e8762c5755185"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab15525c473e2888a912e8762c5755185">&#9670;&nbsp;</a></span>ulocale_getLanguage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> const char* ulocale_getLanguage </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *&#160;</td>
          <td class="paramname"><em>locale</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the locale's ISO-639 language code. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the locale </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the language code of the locale. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000010">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 74 </dd></dl>

</div>
</div>
<a id="abafae32e4250c998352218f27efafd9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abafae32e4250c998352218f27efafd9d">&#9670;&nbsp;</a></span>ulocale_getLocaleID()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> const char* ulocale_getLocaleID </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *&#160;</td>
          <td class="paramname"><em>locale</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the programmatic name of the entire locale, with the language, country and variant separated by underbars. </p>
<p>If a field is missing, up to two leading underbars will occur. Example: "en", "de_DE", "en_US_WIN", "de__POSIX", "fr__MAC", "__MAC", "_MT", "_FR_EURO"</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the locale </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to "name". </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000014">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 74 </dd></dl>

</div>
</div>
<a id="a5b1f7c6cf14b2ec59fb17e9a38027151"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b1f7c6cf14b2ec59fb17e9a38027151">&#9670;&nbsp;</a></span>ulocale_getRegion()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> const char* ulocale_getRegion </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *&#160;</td>
          <td class="paramname"><em>locale</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the locale's ISO-3166 region code. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the locale </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the region. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000012">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 74 </dd></dl>

</div>
</div>
<a id="a4bdba1c08b84b2b929c1125017ef5bb8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4bdba1c08b84b2b929c1125017ef5bb8">&#9670;&nbsp;</a></span>ulocale_getScript()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> const char* ulocale_getScript </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *&#160;</td>
          <td class="paramname"><em>locale</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the locale's ISO-15924 abbreviation script code. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the locale </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the script. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000011">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 74 </dd></dl>

</div>
</div>
<a id="a98368a26224ee542622157975699b15b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98368a26224ee542622157975699b15b">&#9670;&nbsp;</a></span>ulocale_getUnicodeKeywords()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="uenum_8h.html#a32b7253b2148022535be36a9fcdb5a8d">UEnumeration</a>* ulocale_getUnicodeKeywords </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *&#160;</td>
          <td class="paramname"><em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>err</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the list of unicode keywords for the specified locale. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the locale </td></tr>
    <tr><td class="paramname">err</td><td>the error code </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>pointer to UEnumeration, or nullptr if there are no keywords. Client must call <a class="el" href="uenum_8h.html#abcae42ba2a329894bcc3b37ad2a99a66" title="Disposes of resources in use by the iterator.">uenum_close()</a> to dispose the returned value. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000018">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 74 </dd></dl>

</div>
</div>
<a id="aac3db0039d2786e496b61df2802c7a00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac3db0039d2786e496b61df2802c7a00">&#9670;&nbsp;</a></span>ulocale_getUnicodeKeywordValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> int32_t ulocale_getUnicodeKeywordValue </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *&#160;</td>
          <td class="paramname"><em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>keyword</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>keywordLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>valueBuffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>valueBufferCapacity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>err</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the Unicode value for a Unicode keyword. </p>
<p>This uses Unicode key-value pairs, like "co-phonebk".</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the locale </td></tr>
    <tr><td class="paramname">keyword</td><td>the Unicode keyword, a const char * pointer (need not be terminated when the length is non-negative) </td></tr>
    <tr><td class="paramname">keywordLength</td><td>the length of the Unicode keyword; if negative, then the keyword need to be null terminated. </td></tr>
    <tr><td class="paramname">valueBuffer</td><td>The buffer to receive the Unicode value. </td></tr>
    <tr><td class="paramname">valueBufferCapacity</td><td>The capacity of receiving valueBuffer. </td></tr>
    <tr><td class="paramname">err</td><td>the error code </td></tr>
  </table>
  </dd>
</dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000020">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 74 </dd></dl>

</div>
</div>
<a id="aa91a3e1490ed0c928c495559ee8f8b36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa91a3e1490ed0c928c495559ee8f8b36">&#9670;&nbsp;</a></span>ulocale_getVariant()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> const char* ulocale_getVariant </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *&#160;</td>
          <td class="paramname"><em>locale</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the locale's variant code. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the locale </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the variant. </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000013">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 74 </dd></dl>

</div>
</div>
<a id="ac0c9cd67779e38fb068d7f49154007ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0c9cd67779e38fb068d7f49154007ca">&#9670;&nbsp;</a></span>ulocale_isBogus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> bool ulocale_isBogus </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *&#160;</td>
          <td class="paramname"><em>locale</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the bogus state. </p>
<p>Locale object can be bogus if it doesn't exist</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">locale</td><td>the locale </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>false if it is a real locale, true if it is a bogus locale </dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000016">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 74 </dd></dl>

</div>
</div>
<a id="a4c3f4a47265aaa480fda013df6222a4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c3f4a47265aaa480fda013df6222a4a">&#9670;&nbsp;</a></span>ulocale_openForLanguageTag()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a>* ulocale_openForLanguageTag </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>tag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>err</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs an ULocale from the provided IETF BCP 47 language tag. </p>
<p>The created ULocale should be destroyed by calling <a class="el" href="ulocale_8h.html#accb6ba0e6f9519a0caf033ef3a9a6068" title="Close the locale and destroy it&#39;s internal states.">ulocale_close()</a>; </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tag</td><td>the language tag, defined as IETF BCP 47 language tag, const char* pointer (need not be terminated when the length is non-negative) </td></tr>
    <tr><td class="paramname">length</td><td>the length of the tag; if negative, then the tag need to be null terminated. </td></tr>
    <tr><td class="paramname">err</td><td>the error code </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the locale.</dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000008">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 74 </dd></dl>

</div>
</div>
<a id="a3b235e17a22a170b4a5af2d1f8554b7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b235e17a22a170b4a5af2d1f8554b7c">&#9670;&nbsp;</a></span>ulocale_openForLocaleID()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a>* ulocale_openForLocaleID </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>localeID</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>err</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs an ULocale from the locale ID. </p>
<p>The created ULocale should be destroyed by calling <a class="el" href="ulocale_8h.html#accb6ba0e6f9519a0caf033ef3a9a6068" title="Close the locale and destroy it&#39;s internal states.">ulocale_close()</a>; </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">localeID</td><td>the locale, a const char * pointer (need not be terminated when the length is non-negative) </td></tr>
    <tr><td class="paramname">length</td><td>the length of the locale; if negative, then the locale need to be null terminated. </td></tr>
    <tr><td class="paramname">err</td><td>the error code </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the locale.</dd></dl>
<dl class="draft"><dt><b><a class="el" href="draft.html#_draft000007">Draft:</a></b></dt><dd>This API may be changed in the future versions and was introduced in ICU 74 </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
Back to Directory=ceiIENDB`