Файловый менеджер - Редактировать - /opt/alt/alt-nodejs20/root/usr/share/doc/alt-nodejs20-libicu-doc/ulocale_8h.html
Назад
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.14"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>ICU 78.3: 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="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.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 78.3  <span id="projectnumber">78.3</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.14 --> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ var searchBox = new SearchBox("searchBox", "search",false,'Search'); /* @license-end */ </script> <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&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); /* @license-end */</script> <div id="main-nav"></div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div 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> | <a href="#typedef-members">Typedefs</a> | <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 "<a class="el" href="localpointer_8h_source.html">unicode/localpointer.h</a>"</code><br /> <code>#include "<a class="el" href="uenum_8h_source.html">unicode/uenum.h</a>"</code><br /> <code>#include "<a class="el" href="utypes_8h_source.html">unicode/utypes.h</a>"</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">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceicu.html">icu</a></td></tr> <tr class="memdesc:namespaceicu"><td class="mdescLeft"> </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"> </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> </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"> </td><td class="mdescRight">C typedef for struct ULocale. <a href="#aa5a1850d572e0fdb8a74aeee5cf0dd22">More...</a><br /></td></tr> <tr class="separator:aa5a1850d572e0fdb8a74aeee5cf0dd22"><td class="memSeparator" colspan="2"> </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> * </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"> </td><td class="mdescRight">Constructs an ULocale from the locale ID. <a href="#a3b235e17a22a170b4a5af2d1f8554b7c">More...</a><br /></td></tr> <tr class="separator:a3b235e17a22a170b4a5af2d1f8554b7c"><td class="memSeparator" colspan="2"> </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> * </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"> </td><td class="mdescRight">Constructs an ULocale from the provided IETF BCP 47 language tag. <a href="#a4c3f4a47265aaa480fda013df6222a4a">More...</a><br /></td></tr> <tr class="separator:a4c3f4a47265aaa480fda013df6222a4a"><td class="memSeparator" colspan="2"> </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 </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"> </td><td class="mdescRight">Close the locale and destroy it's internal states. <a href="#accb6ba0e6f9519a0caf033ef3a9a6068">More...</a><br /></td></tr> <tr class="separator:accb6ba0e6f9519a0caf033ef3a9a6068"><td class="memSeparator" colspan="2"> </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 * </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"> </td><td class="mdescRight">Returns the locale's ISO-639 language code. <a href="#ab15525c473e2888a912e8762c5755185">More...</a><br /></td></tr> <tr class="separator:ab15525c473e2888a912e8762c5755185"><td class="memSeparator" colspan="2"> </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 * </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"> </td><td class="mdescRight">Returns the locale's ISO-15924 abbreviation script code. <a href="#a4bdba1c08b84b2b929c1125017ef5bb8">More...</a><br /></td></tr> <tr class="separator:a4bdba1c08b84b2b929c1125017ef5bb8"><td class="memSeparator" colspan="2"> </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 * </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"> </td><td class="mdescRight">Returns the locale's ISO-3166 region code. <a href="#a5b1f7c6cf14b2ec59fb17e9a38027151">More...</a><br /></td></tr> <tr class="separator:a5b1f7c6cf14b2ec59fb17e9a38027151"><td class="memSeparator" colspan="2"> </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 * </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"> </td><td class="mdescRight">Returns the locale's variant code. <a href="#aa91a3e1490ed0c928c495559ee8f8b36">More...</a><br /></td></tr> <tr class="separator:aa91a3e1490ed0c928c495559ee8f8b36"><td class="memSeparator" colspan="2"> </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 * </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"> </td><td class="mdescRight">Returns the programmatic name of the entire locale, with the language, country and variant separated by underbars. <a href="#abafae32e4250c998352218f27efafd9d">More...</a><br /></td></tr> <tr class="separator:abafae32e4250c998352218f27efafd9d"><td class="memSeparator" colspan="2"> </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 * </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"> </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="#aa21b2899e2899b238d09a693a8fa09e5">More...</a><br /></td></tr> <tr class="separator:aa21b2899e2899b238d09a693a8fa09e5"><td class="memSeparator" colspan="2"> </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 </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"> </td><td class="mdescRight">Gets the bogus state. <a href="#ac0c9cd67779e38fb068d7f49154007ca">More...</a><br /></td></tr> <tr class="separator:ac0c9cd67779e38fb068d7f49154007ca"><td class="memSeparator" colspan="2"> </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> * </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"> </td><td class="mdescRight">Gets the list of keywords for the specified locale. <a href="#a42dbe5cd9e388326e65e54e3bb8c29f1">More...</a><br /></td></tr> <tr class="separator:a42dbe5cd9e388326e65e54e3bb8c29f1"><td class="memSeparator" colspan="2"> </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> * </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"> </td><td class="mdescRight">Gets the list of unicode keywords for the specified locale. <a href="#a98368a26224ee542622157975699b15b">More...</a><br /></td></tr> <tr class="separator:a98368a26224ee542622157975699b15b"><td class="memSeparator" colspan="2"> </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 </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"> </td><td class="mdescRight">Gets the value for a keyword. <a href="#aef0c2539bb9d945ffdea3ee4591ec675">More...</a><br /></td></tr> <tr class="separator:aef0c2539bb9d945ffdea3ee4591ec675"><td class="memSeparator" colspan="2"> </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 </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"> </td><td class="mdescRight">Gets the Unicode value for a Unicode keyword. <a href="#aac3db0039d2786e496b61df2802c7a00">More...</a><br /></td></tr> <tr class="separator:aac3db0039d2786e496b61df2802c7a00"><td class="memSeparator" colspan="2"> </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">◆ </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="stable"><dt><b><a class="el" href="stable.html#_stable002389">Stable:</a></b></dt><dd>ICU 74 </dd></dl> <p class="definition">Definition at line <a class="el" href="ulocale_8h_source.html#l00026">26</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">◆ </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> * </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="stable"><dt><b><a class="el" href="stable.html#_stable002392">Stable:</a></b></dt><dd>ICU 74 </dd></dl> </div> </div> <a id="aa21b2899e2899b238d09a693a8fa09e5"></a> <h2 class="memtitle"><span class="permalink"><a href="#aa21b2899e2899b238d09a693a8fa09e5">◆ </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> * </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="stable"><dt><b><a class="el" href="stable.html#_stable002398">Stable:</a></b></dt><dd>ICU 74 </dd></dl> </div> </div> <a id="a42dbe5cd9e388326e65e54e3bb8c29f1"></a> <h2 class="memtitle"><span class="permalink"><a href="#a42dbe5cd9e388326e65e54e3bb8c29f1">◆ </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> * </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> * </td> <td class="paramname"><em>err</em> </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="stable"><dt><b><a class="el" href="stable.html#_stable002400">Stable:</a></b></dt><dd>ICU 74 </dd></dl> </div> </div> <a id="aef0c2539bb9d945ffdea3ee4591ec675"></a> <h2 class="memtitle"><span class="permalink"><a href="#aef0c2539bb9d945ffdea3ee4591ec675">◆ </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> * </td> <td class="paramname"><em>locale</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"><em>keyword</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t </td> <td class="paramname"><em>keywordLength</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char * </td> <td class="paramname"><em>valueBuffer</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t </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> * </td> <td class="paramname"><em>err</em> </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="stable"><dt><b><a class="el" href="stable.html#_stable002402">Stable:</a></b></dt><dd>ICU 74 </dd></dl> </div> </div> <a id="ab15525c473e2888a912e8762c5755185"></a> <h2 class="memtitle"><span class="permalink"><a href="#ab15525c473e2888a912e8762c5755185">◆ </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> * </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="stable"><dt><b><a class="el" href="stable.html#_stable002393">Stable:</a></b></dt><dd>ICU 74 </dd></dl> </div> </div> <a id="abafae32e4250c998352218f27efafd9d"></a> <h2 class="memtitle"><span class="permalink"><a href="#abafae32e4250c998352218f27efafd9d">◆ </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> * </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="stable"><dt><b><a class="el" href="stable.html#_stable002397">Stable:</a></b></dt><dd>ICU 74 </dd></dl> </div> </div> <a id="a5b1f7c6cf14b2ec59fb17e9a38027151"></a> <h2 class="memtitle"><span class="permalink"><a href="#a5b1f7c6cf14b2ec59fb17e9a38027151">◆ </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> * </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="stable"><dt><b><a class="el" href="stable.html#_stable002395">Stable:</a></b></dt><dd>ICU 74 </dd></dl> </div> </div> <a id="a4bdba1c08b84b2b929c1125017ef5bb8"></a> <h2 class="memtitle"><span class="permalink"><a href="#a4bdba1c08b84b2b929c1125017ef5bb8">◆ </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> * </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="stable"><dt><b><a class="el" href="stable.html#_stable002394">Stable:</a></b></dt><dd>ICU 74 </dd></dl> </div> </div> <a id="a98368a26224ee542622157975699b15b"></a> <h2 class="memtitle"><span class="permalink"><a href="#a98368a26224ee542622157975699b15b">◆ </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> * </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> * </td> <td class="paramname"><em>err</em> </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="stable"><dt><b><a class="el" href="stable.html#_stable002401">Stable:</a></b></dt><dd>ICU 74 </dd></dl> </div> </div> <a id="aac3db0039d2786e496b61df2802c7a00"></a> <h2 class="memtitle"><span class="permalink"><a href="#aac3db0039d2786e496b61df2802c7a00">◆ </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> * </td> <td class="paramname"><em>locale</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"><em>keyword</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t </td> <td class="paramname"><em>keywordLength</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char * </td> <td class="paramname"><em>valueBuffer</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t </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> * </td> <td class="paramname"><em>err</em> </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="stable"><dt><b><a class="el" href="stable.html#_stable002403">Stable:</a></b></dt><dd>ICU 74 </dd></dl> </div> </div> <a id="aa91a3e1490ed0c928c495559ee8f8b36"></a> <h2 class="memtitle"><span class="permalink"><a href="#aa91a3e1490ed0c928c495559ee8f8b36">◆ </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> * </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="stable"><dt><b><a class="el" href="stable.html#_stable002396">Stable:</a></b></dt><dd>ICU 74 </dd></dl> </div> </div> <a id="ac0c9cd67779e38fb068d7f49154007ca"></a> <h2 class="memtitle"><span class="permalink"><a href="#ac0c9cd67779e38fb068d7f49154007ca">◆ </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> * </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="stable"><dt><b><a class="el" href="stable.html#_stable002399">Stable:</a></b></dt><dd>ICU 74 </dd></dl> </div> </div> <a id="a4c3f4a47265aaa480fda013df6222a4a"></a> <h2 class="memtitle"><span class="permalink"><a href="#a4c3f4a47265aaa480fda013df6222a4a">◆ </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 * </td> <td class="paramname"><em>tag</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t </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> * </td> <td class="paramname"><em>err</em> </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'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="stable"><dt><b><a class="el" href="stable.html#_stable002391">Stable:</a></b></dt><dd>ICU 74 </dd></dl> </div> </div> <a id="a3b235e17a22a170b4a5af2d1f8554b7c"></a> <h2 class="memtitle"><span class="permalink"><a href="#a3b235e17a22a170b4a5af2d1f8554b7c">◆ </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 * </td> <td class="paramname"><em>localeID</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t </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> * </td> <td class="paramname"><em>err</em> </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'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="stable"><dt><b><a class="el" href="stable.html#_stable002390">Stable:</a></b></dt><dd>ICU 74 </dd></dl> </div> </div> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.14 </small></address> </body> </html>
| ver. 1.6 |
Github
|
.
| PHP 8.3.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка