404 Not Found


nginx
beegazpacho.com - GrazzMean
Uname: Linux in-mum-web1557.main-hosting.eu 5.14.0-611.42.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 24 05:30:20 EDT 2026 x86_64
Software: LiteSpeed
PHP version: 8.2.30 [ PHP INFO ] PHP os: Linux
Server Ip: 147.79.69.172
Your Ip: 216.73.216.168
User: u848900432 (848900432) | Group: o51372345 (1051372345)
Safe Mode: OFF
Disable Function:
NONE

name : ulocbuilder_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 77.1: common/unicode/ulocbuilder.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 77.1
   &#160;<span id="projectnumber">77.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @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&amp;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> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ulocbuilder.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>C API: Builder API for 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="ulocale_8h_source.html">unicode/ulocale.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="ulocbuilder_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:a5f944daf8cd9a25715b71418347eed89"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a></td></tr>
<tr class="memdesc:a5f944daf8cd9a25715b71418347eed89"><td class="mdescLeft">&#160;</td><td class="mdescRight">C typedef for struct ULocaleBuilder.  <a href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">More...</a><br /></td></tr>
<tr class="separator:a5f944daf8cd9a25715b71418347eed89"><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:a96d823741d0f6d45762f9ff4dc270d81"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocbuilder_8h.html#a96d823741d0f6d45762f9ff4dc270d81">ulocbld_open</a> (void)</td></tr>
<tr class="memdesc:a96d823741d0f6d45762f9ff4dc270d81"><td class="mdescLeft">&#160;</td><td class="mdescRight"><code>ULocaleBuilder</code> is used to build valid <code>locale</code> id string or IETF BCP 47 language tag from values configured by the setters.  <a href="ulocbuilder_8h.html#a96d823741d0f6d45762f9ff4dc270d81">More...</a><br /></td></tr>
<tr class="separator:a96d823741d0f6d45762f9ff4dc270d81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae578f3119eb13e03641383612c87630a"><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="ulocbuilder_8h.html#ae578f3119eb13e03641383612c87630a">ulocbld_close</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder)</td></tr>
<tr class="memdesc:ae578f3119eb13e03641383612c87630a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Close the builder and destroy it's internal states.  <a href="ulocbuilder_8h.html#ae578f3119eb13e03641383612c87630a">More...</a><br /></td></tr>
<tr class="separator:ae578f3119eb13e03641383612c87630a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9912e0b4a0ecb3e22ec2dec847779223"><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="ulocbuilder_8h.html#a9912e0b4a0ecb3e22ec2dec847779223">ulocbld_setLocale</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder, const char *locale, int32_t length)</td></tr>
<tr class="memdesc:a9912e0b4a0ecb3e22ec2dec847779223"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the <code>ULocaleBuilder</code> to match the provided <code>locale</code>.  <a href="ulocbuilder_8h.html#a9912e0b4a0ecb3e22ec2dec847779223">More...</a><br /></td></tr>
<tr class="separator:a9912e0b4a0ecb3e22ec2dec847779223"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12cf55fc7434d8749edddae8bfa03d62"><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="ulocbuilder_8h.html#a12cf55fc7434d8749edddae8bfa03d62">ulocbld_adoptULocale</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder, <a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *locale)</td></tr>
<tr class="memdesc:a12cf55fc7434d8749edddae8bfa03d62"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the <code>ULocaleBuilder</code> to match the provided <code>ULocale</code>.  <a href="ulocbuilder_8h.html#a12cf55fc7434d8749edddae8bfa03d62">More...</a><br /></td></tr>
<tr class="separator:a12cf55fc7434d8749edddae8bfa03d62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab414e18ce42868026ef245f4b51066eb"><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="ulocbuilder_8h.html#ab414e18ce42868026ef245f4b51066eb">ulocbld_setLanguageTag</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder, const char *tag, int32_t length)</td></tr>
<tr class="memdesc:ab414e18ce42868026ef245f4b51066eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the ULocaleBuilder to match the provided IETF BCP 47 language tag.  <a href="ulocbuilder_8h.html#ab414e18ce42868026ef245f4b51066eb">More...</a><br /></td></tr>
<tr class="separator:ab414e18ce42868026ef245f4b51066eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7588f21f0117754b13b5b96d0cb1cc7"><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="ulocbuilder_8h.html#af7588f21f0117754b13b5b96d0cb1cc7">ulocbld_setLanguage</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder, const char *language, int32_t length)</td></tr>
<tr class="memdesc:af7588f21f0117754b13b5b96d0cb1cc7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the language.  <a href="ulocbuilder_8h.html#af7588f21f0117754b13b5b96d0cb1cc7">More...</a><br /></td></tr>
<tr class="separator:af7588f21f0117754b13b5b96d0cb1cc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89b85160562ce4924acc66c93753cd6d"><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="ulocbuilder_8h.html#a89b85160562ce4924acc66c93753cd6d">ulocbld_setScript</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder, const char *script, int32_t length)</td></tr>
<tr class="memdesc:a89b85160562ce4924acc66c93753cd6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the script.  <a href="ulocbuilder_8h.html#a89b85160562ce4924acc66c93753cd6d">More...</a><br /></td></tr>
<tr class="separator:a89b85160562ce4924acc66c93753cd6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a065880ba33c0fbf9dd1caae9c59de1f5"><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="ulocbuilder_8h.html#a065880ba33c0fbf9dd1caae9c59de1f5">ulocbld_setRegion</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder, const char *region, int32_t length)</td></tr>
<tr class="memdesc:a065880ba33c0fbf9dd1caae9c59de1f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the region.  <a href="ulocbuilder_8h.html#a065880ba33c0fbf9dd1caae9c59de1f5">More...</a><br /></td></tr>
<tr class="separator:a065880ba33c0fbf9dd1caae9c59de1f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1441b7938953c51eaa13600e553cfe8f"><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="ulocbuilder_8h.html#a1441b7938953c51eaa13600e553cfe8f">ulocbld_setVariant</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder, const char *variant, int32_t length)</td></tr>
<tr class="memdesc:a1441b7938953c51eaa13600e553cfe8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the variant.  <a href="ulocbuilder_8h.html#a1441b7938953c51eaa13600e553cfe8f">More...</a><br /></td></tr>
<tr class="separator:a1441b7938953c51eaa13600e553cfe8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4776acd0f7fe60f65200b203c1c50a14"><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="ulocbuilder_8h.html#a4776acd0f7fe60f65200b203c1c50a14">ulocbld_setExtension</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder, char key, const char *value, int32_t length)</td></tr>
<tr class="memdesc:a4776acd0f7fe60f65200b203c1c50a14"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the extension for the given key.  <a href="ulocbuilder_8h.html#a4776acd0f7fe60f65200b203c1c50a14">More...</a><br /></td></tr>
<tr class="separator:a4776acd0f7fe60f65200b203c1c50a14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4ce00305f9e2b3d751e136f7484640d"><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="ulocbuilder_8h.html#ac4ce00305f9e2b3d751e136f7484640d">ulocbld_setUnicodeLocaleKeyword</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder, const char *key, int32_t keyLength, const char *type, int32_t typeLength)</td></tr>
<tr class="memdesc:ac4ce00305f9e2b3d751e136f7484640d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the Unicode locale keyword type for the given key.  <a href="ulocbuilder_8h.html#ac4ce00305f9e2b3d751e136f7484640d">More...</a><br /></td></tr>
<tr class="separator:ac4ce00305f9e2b3d751e136f7484640d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad90d21105f4fdbfa626f6c582aedaf50"><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="ulocbuilder_8h.html#ad90d21105f4fdbfa626f6c582aedaf50">ulocbld_addUnicodeLocaleAttribute</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder, const char *attribute, int32_t length)</td></tr>
<tr class="memdesc:ad90d21105f4fdbfa626f6c582aedaf50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a unicode locale attribute, if not already present, otherwise has no effect.  <a href="ulocbuilder_8h.html#ad90d21105f4fdbfa626f6c582aedaf50">More...</a><br /></td></tr>
<tr class="separator:ad90d21105f4fdbfa626f6c582aedaf50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3900a936fea1c3c65471c0da87d90336"><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="ulocbuilder_8h.html#a3900a936fea1c3c65471c0da87d90336">ulocbld_removeUnicodeLocaleAttribute</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder, const char *attribute, int32_t length)</td></tr>
<tr class="memdesc:a3900a936fea1c3c65471c0da87d90336"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a unicode locale attribute, if present, otherwise has no effect.  <a href="ulocbuilder_8h.html#a3900a936fea1c3c65471c0da87d90336">More...</a><br /></td></tr>
<tr class="separator:a3900a936fea1c3c65471c0da87d90336"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad968814c20c52b0326064401d1ac446"><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="ulocbuilder_8h.html#aad968814c20c52b0326064401d1ac446">ulocbld_clear</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder)</td></tr>
<tr class="memdesc:aad968814c20c52b0326064401d1ac446"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the builder to its initial, empty state.  <a href="ulocbuilder_8h.html#aad968814c20c52b0326064401d1ac446">More...</a><br /></td></tr>
<tr class="separator:aad968814c20c52b0326064401d1ac446"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af924cc87b7464b87a2b38d27a2b392db"><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="ulocbuilder_8h.html#af924cc87b7464b87a2b38d27a2b392db">ulocbld_clearExtensions</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder)</td></tr>
<tr class="memdesc:af924cc87b7464b87a2b38d27a2b392db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the extensions to their initial, empty state.  <a href="ulocbuilder_8h.html#af924cc87b7464b87a2b38d27a2b392db">More...</a><br /></td></tr>
<tr class="separator:af924cc87b7464b87a2b38d27a2b392db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae37b7c2050092b673a37cf53703b5659"><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="ulocbuilder_8h.html#ae37b7c2050092b673a37cf53703b5659">ulocbld_buildLocaleID</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder, char *locale, int32_t localeCapacity, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>
<tr class="memdesc:ae37b7c2050092b673a37cf53703b5659"><td class="mdescLeft">&#160;</td><td class="mdescRight">Build the LocaleID string from the fields set on this builder.  <a href="ulocbuilder_8h.html#ae37b7c2050092b673a37cf53703b5659">More...</a><br /></td></tr>
<tr class="separator:ae37b7c2050092b673a37cf53703b5659"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cc40ca8b1097ab1a9dce310859bb22d"><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="ulocbuilder_8h.html#a8cc40ca8b1097ab1a9dce310859bb22d">ulocbld_buildULocale</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>
<tr class="memdesc:a8cc40ca8b1097ab1a9dce310859bb22d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Build the ULocale object from the fields set on this builder.  <a href="ulocbuilder_8h.html#a8cc40ca8b1097ab1a9dce310859bb22d">More...</a><br /></td></tr>
<tr class="separator:a8cc40ca8b1097ab1a9dce310859bb22d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6ec7cf828299269e75e238ccd664a75"><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="ulocbuilder_8h.html#af6ec7cf828299269e75e238ccd664a75">ulocbld_buildLanguageTag</a> (<a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder, char *language, int32_t languageCapacity, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *err)</td></tr>
<tr class="memdesc:af6ec7cf828299269e75e238ccd664a75"><td class="mdescLeft">&#160;</td><td class="mdescRight">Build the IETF BCP 47 language tag string from the fields set on this builder.  <a href="ulocbuilder_8h.html#af6ec7cf828299269e75e238ccd664a75">More...</a><br /></td></tr>
<tr class="separator:af6ec7cf828299269e75e238ccd664a75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a570e6c54a2629728fc8735b74fb1a809"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ulocbuilder_8h.html#a570e6c54a2629728fc8735b74fb1a809">ulocbld_copyErrorTo</a> (const <a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *builder, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *outErrorCode)</td></tr>
<tr class="memdesc:a570e6c54a2629728fc8735b74fb1a809"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the UErrorCode if an error occurred while recording sets.  <a href="ulocbuilder_8h.html#a570e6c54a2629728fc8735b74fb1a809">More...</a><br /></td></tr>
<tr class="separator:a570e6c54a2629728fc8735b74fb1a809"><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: Builder API for Locale. </p>

<p class="definition">Definition in file <a class="el" href="ulocbuilder_8h_source.html">ulocbuilder.h</a>.</p>
</div><h2 class="groupheader">Typedef Documentation</h2>
<a id="a5f944daf8cd9a25715b71418347eed89"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f944daf8cd9a25715b71418347eed89">&#9670;&nbsp;</a></span>ULocaleBuilder</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> <a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>C typedef for struct ULocaleBuilder. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002390">Stable:</a></b></dt><dd>ICU 74 </dd></dl>

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

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ad90d21105f4fdbfa626f6c582aedaf50"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad90d21105f4fdbfa626f6c582aedaf50">&#9670;&nbsp;</a></span>ulocbld_addUnicodeLocaleAttribute()</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 ulocbld_addUnicodeLocaleAttribute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>attribute</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a unicode locale attribute, if not already present, otherwise has no effect. </p>
<p>The attribute must not be empty string and must be well-formed or U_ILLEGAL_ARGUMENT_ERROR will be set to status during the <a class="el" href="ulocbuilder_8h.html#ae37b7c2050092b673a37cf53703b5659" title="Build the LocaleID string from the fields set on this builder.">ulocbld_buildLocaleID()</a> and <a class="el" href="ulocbuilder_8h.html#af6ec7cf828299269e75e238ccd664a75" title="Build the IETF BCP 47 language tag string from the fields set on this builder.">ulocbld_buildLanguageTag()</a> calls.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder </td></tr>
    <tr><td class="paramname">attribute</td><td>the attribute, 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 attribute; if negative, then the attribute need to be null terminated, </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="a12cf55fc7434d8749edddae8bfa03d62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12cf55fc7434d8749edddae8bfa03d62">&#9670;&nbsp;</a></span>ulocbld_adoptULocale()</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 ulocbld_adoptULocale </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ulocale_8h.html#aa5a1850d572e0fdb8a74aeee5cf0dd22">ULocale</a> *&#160;</td>
          <td class="paramname"><em>locale</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Resets the <code>ULocaleBuilder</code> to match the provided <code>ULocale</code>. </p>
<p>Existing state is discarded.</p>
<p>The locale must be not bogus. </p>
<p>This method clears the internal UErrorCode.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder. </td></tr>
    <tr><td class="paramname">locale</td><td>the locale, a ULocale* pointer. The builder adopts the locale after the call and the client must not delete it.</td></tr>
  </table>
  </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="af6ec7cf828299269e75e238ccd664a75"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6ec7cf828299269e75e238ccd664a75">&#9670;&nbsp;</a></span>ulocbld_buildLanguageTag()</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 ulocbld_buildLanguageTag </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</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#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>Build the IETF BCP 47 language tag string from the fields set on this builder. </p>
<p>If any set methods or during the <a class="el" href="ulocbuilder_8h.html#af6ec7cf828299269e75e238ccd664a75" title="Build the IETF BCP 47 language tag string from the fields set on this builder.">ulocbld_buildLanguageTag()</a> call require memory allocation but fail U_MEMORY_ALLOCATION_ERROR will be set to status. If any of the fields set by the setters are not well-formed, the status will be set to U_ILLEGAL_ARGUMENT_ERROR. The state of the builder will not change after the <a class="el" href="ulocbuilder_8h.html#af6ec7cf828299269e75e238ccd664a75" title="Build the IETF BCP 47 language tag string from the fields set on this builder.">ulocbld_buildLanguageTag()</a> call and the caller is free to keep using the same builder to build more locales.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder </td></tr>
    <tr><td class="paramname">language</td><td>the language tag </td></tr>
    <tr><td class="paramname">languageCapacity</td><td>the size of the language buffer to store the language tag </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 length of the language tag in buffer </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002409">Stable:</a></b></dt><dd>ICU 74 </dd></dl>

</div>
</div>
<a id="ae37b7c2050092b673a37cf53703b5659"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae37b7c2050092b673a37cf53703b5659">&#9670;&nbsp;</a></span>ulocbld_buildLocaleID()</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 ulocbld_buildLocaleID </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>localeCapacity</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>Build the LocaleID string from the fields set on this builder. </p>
<p>If any set methods or during the <a class="el" href="ulocbuilder_8h.html#ae37b7c2050092b673a37cf53703b5659" title="Build the LocaleID string from the fields set on this builder.">ulocbld_buildLocaleID()</a> call require memory allocation but fail U_MEMORY_ALLOCATION_ERROR will be set to status. If any of the fields set by the setters are not well-formed, the status will be set to U_ILLEGAL_ARGUMENT_ERROR. The state of the builder will not change after the <a class="el" href="ulocbuilder_8h.html#ae37b7c2050092b673a37cf53703b5659" title="Build the LocaleID string from the fields set on this builder.">ulocbld_buildLocaleID()</a> call and the caller is free to keep using the same builder to build more locales.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder </td></tr>
    <tr><td class="paramname">locale</td><td>the locale id </td></tr>
    <tr><td class="paramname">localeCapacity</td><td>the size of the locale buffer to store the locale id </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 length of the locale id in buffer </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002407">Stable:</a></b></dt><dd>ICU 74 </dd></dl>

</div>
</div>
<a id="a8cc40ca8b1097ab1a9dce310859bb22d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8cc40ca8b1097ab1a9dce310859bb22d">&#9670;&nbsp;</a></span>ulocbld_buildULocale()</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>* ulocbld_buildULocale </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</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>Build the ULocale object from the fields set on this builder. </p>
<p>If any set methods or during the <a class="el" href="ulocbuilder_8h.html#a8cc40ca8b1097ab1a9dce310859bb22d" title="Build the ULocale object from the fields set on this builder.">ulocbld_buildULocale()</a> call require memory allocation but fail U_MEMORY_ALLOCATION_ERROR will be set to status. If any of the fields set by the setters are not well-formed, the status will be set to U_ILLEGAL_ARGUMENT_ERROR. The state of the builder will not change after the <a class="el" href="ulocbuilder_8h.html#a8cc40ca8b1097ab1a9dce310859bb22d" title="Build the ULocale object from the fields set on this builder.">ulocbld_buildULocale()</a> call and the caller is free to keep using the same builder to build more locales.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder. </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, a ULocale* pointer. The created ULocale must be destroyed by calling <a class="el" href="ulocale_8h.html#accb6ba0e6f9519a0caf033ef3a9a6068">ulocale_close</a>. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002408">Stable:</a></b></dt><dd>ICU 74 </dd></dl>

</div>
</div>
<a id="aad968814c20c52b0326064401d1ac446"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad968814c20c52b0326064401d1ac446">&#9670;&nbsp;</a></span>ulocbld_clear()</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 ulocbld_clear </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Resets the builder to its initial, empty state. </p>
<p>This method clears the internal UErrorCode.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002405">Stable:</a></b></dt><dd>ICU 74 </dd></dl>

</div>
</div>
<a id="af924cc87b7464b87a2b38d27a2b392db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af924cc87b7464b87a2b38d27a2b392db">&#9670;&nbsp;</a></span>ulocbld_clearExtensions()</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 ulocbld_clearExtensions </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Resets the extensions to their initial, empty state. </p>
<p>Language, script, region and variant are unchanged.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002406">Stable:</a></b></dt><dd>ICU 74 </dd></dl>

</div>
</div>
<a id="ae578f3119eb13e03641383612c87630a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae578f3119eb13e03641383612c87630a">&#9670;&nbsp;</a></span>ulocbld_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 ulocbld_close </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Close the builder and destroy it's internal states. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder </td></tr>
  </table>
  </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="a570e6c54a2629728fc8735b74fb1a809"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a570e6c54a2629728fc8735b74fb1a809">&#9670;&nbsp;</a></span>ulocbld_copyErrorTo()</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="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> ulocbld_copyErrorTo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</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>outErrorCode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the UErrorCode if an error occurred while recording sets. </p>
<p>Preserves older error codes in the outErrorCode.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder </td></tr>
    <tr><td class="paramname">outErrorCode</td><td>Set to an error code that occurred while setting subtags. Unchanged if there is no such error or if outErrorCode already contained an error. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if <a class="el" href="utypes_8h.html#a4d202200b6aa6f3c965ea370e0c8155f" title="Does the error code indicate a failure?">U_FAILURE(*outErrorCode)</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002410">Stable:</a></b></dt><dd>ICU 74 </dd></dl>

</div>
</div>
<a id="a96d823741d0f6d45762f9ff4dc270d81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96d823741d0f6d45762f9ff4dc270d81">&#9670;&nbsp;</a></span>ulocbld_open()</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="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a>* ulocbld_open </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>ULocaleBuilder</code> is used to build valid <code>locale</code> id string or IETF BCP 47 language tag from values configured by the setters. </p>
<p>The <code>ULocaleBuilder</code> checks if a value configured by a setter satisfies the syntax requirements defined by the <code>Locale</code> class. A string of Locale created by a <code>ULocaleBuilder</code> is well-formed and can be transformed to a well-formed IETF BCP 47 language tag without losing information.</p>
<p>The following example shows how to create a <code>locale</code> string with the <code>ULocaleBuilder</code>. </p><blockquote class="doxtable">
<pre>
    UErrorCode err = U_ZERO_ERROR;
    char buffer[ULOC_FULLNAME_CAPACITY];
    ULocaleBuilder* builder = <a class="el" href="ulocbuilder_8h.html#a96d823741d0f6d45762f9ff4dc270d81" title="ULocaleBuilder is used to build valid locale id string or IETF BCP 47 language tag from values config...">ulocbld_open()</a>;
    ulocbld_setLanguage(builder, "sr", -1);
    ulocbld_setScript(builder, "Latn", -1);
    ulocbld_setRegion(builder, "RS", -1);
    int32_t length = ulocbld_buildLocaleID(
        builder, buffer, ULOC_FULLNAME_CAPACITY, &amp;error);
    ulocbld_close(builder);
</pre> </blockquote>
<p>ULocaleBuilders can be reused; <code><a class="el" href="ulocbuilder_8h.html#aad968814c20c52b0326064401d1ac446" title="Resets the builder to its initial, empty state.">ulocbld_clear()</a></code> resets all fields to their default values.</p>
<p>ULocaleBuilder tracks errors in an internal UErrorCode. For all setters, except ulocbld_setLanguageTag and ulocbld_setLocale, ULocaleBuilder will return immediately if the internal UErrorCode is in error state. To reset internal state and error code, call clear method. The ulocbld_setLanguageTag and setLocale method will first clear the internal UErrorCode, then track the error of the validation of the input parameter into the internal UErrorCode.</p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002391">Stable:</a></b></dt><dd>ICU 74 </dd></dl>
<p>Constructs an empty ULocaleBuilder. The default value of all fields, extensions, and private use information is the empty string. The created builder should be destroyed by calling <a class="el" href="ulocbuilder_8h.html#ae578f3119eb13e03641383612c87630a" title="Close the builder and destroy it&#39;s internal states.">ulocbld_close()</a>;</p>
<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="a3900a936fea1c3c65471c0da87d90336"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3900a936fea1c3c65471c0da87d90336">&#9670;&nbsp;</a></span>ulocbld_removeUnicodeLocaleAttribute()</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 ulocbld_removeUnicodeLocaleAttribute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>attribute</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes a unicode locale attribute, if present, otherwise has no effect. </p>
<p>The attribute must not be empty string and must be well-formed or U_ILLEGAL_ARGUMENT_ERROR will be set to status during the <a class="el" href="ulocbuilder_8h.html#ae37b7c2050092b673a37cf53703b5659" title="Build the LocaleID string from the fields set on this builder.">ulocbld_buildLocaleID()</a> and <a class="el" href="ulocbuilder_8h.html#af6ec7cf828299269e75e238ccd664a75" title="Build the IETF BCP 47 language tag string from the fields set on this builder.">ulocbld_buildLanguageTag()</a> calls.</p>
<p>Attribute comparison for removal is case-insensitive.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder </td></tr>
    <tr><td class="paramname">attribute</td><td>the attribute, 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 attribute; if negative, then the attribute need to be null terminated, </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002404">Stable:</a></b></dt><dd>ICU 74 </dd></dl>

</div>
</div>
<a id="a4776acd0f7fe60f65200b203c1c50a14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4776acd0f7fe60f65200b203c1c50a14">&#9670;&nbsp;</a></span>ulocbld_setExtension()</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 ulocbld_setExtension </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the extension for the given key. </p>
<p>If the value is the empty string, the extension is removed. Otherwise, the <code>key</code> and <code>value</code> must be well-formed, or else the <a class="el" href="ulocbuilder_8h.html#ae37b7c2050092b673a37cf53703b5659" title="Build the LocaleID string from the fields set on this builder.">ulocbld_buildLocaleID()</a> and <a class="el" href="ulocbuilder_8h.html#af6ec7cf828299269e75e238ccd664a75" title="Build the IETF BCP 47 language tag string from the fields set on this builder.">ulocbld_buildLanguageTag()</a> methods will later report an U_ILLEGAL_ARGUMENT_ERROR.</p>
<p><b>Note:</b> The key ('u') is used for the Unicode locale extension. Setting a value for this key replaces any existing Unicode locale key/type pairs with those defined in the extension.</p>
<p><b>Note:</b> The key ('x') is used for the private use code. To be well-formed, the value for this key needs only to have subtags of one to eight alphanumeric characters, not two to eight as in the general case.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder </td></tr>
    <tr><td class="paramname">key</td><td>the extension key </td></tr>
    <tr><td class="paramname">value</td><td>the value, 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 value; if negative, then the value need to be null terminated, </td></tr>
  </table>
  </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="af7588f21f0117754b13b5b96d0cb1cc7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7588f21f0117754b13b5b96d0cb1cc7">&#9670;&nbsp;</a></span>ulocbld_setLanguage()</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 ulocbld_setLanguage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the language. </p>
<p>If <code>language</code> is the empty string, the language in this <code>ULocaleBuilder</code> is removed. Otherwise, the <code>language</code> must be well-formed, or else the <a class="el" href="ulocbuilder_8h.html#ae37b7c2050092b673a37cf53703b5659" title="Build the LocaleID string from the fields set on this builder.">ulocbld_buildLocaleID()</a> and <a class="el" href="ulocbuilder_8h.html#af6ec7cf828299269e75e238ccd664a75" title="Build the IETF BCP 47 language tag string from the fields set on this builder.">ulocbld_buildLanguageTag()</a> methods will later report an U_ILLEGAL_ARGUMENT_ERROR.</p>
<p>The syntax of language value is defined as <a href="http://www.unicode.org/reports/tr35/tr35.html#unicode_language_subtag">unicode_language_subtag</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder </td></tr>
    <tr><td class="paramname">language</td><td>the language, 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 language; if negative, then the language need to be null terminated, </td></tr>
  </table>
  </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="ab414e18ce42868026ef245f4b51066eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab414e18ce42868026ef245f4b51066eb">&#9670;&nbsp;</a></span>ulocbld_setLanguageTag()</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 ulocbld_setLanguageTag </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></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>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Resets the ULocaleBuilder to match the provided IETF BCP 47 language tag. </p>
<p>Discards the existing state. The empty string causes the builder to be reset, like <a class="el" href="ulocbuilder_8h.html#aad968814c20c52b0326064401d1ac446">ulocbld_clear</a>. Legacy language tags (marked as “Type: grandfathered” in BCP 47) are converted to their canonical form before being processed. Otherwise, the <code>language tag</code> must be well-formed, or else the <a class="el" href="ulocbuilder_8h.html#ae37b7c2050092b673a37cf53703b5659" title="Build the LocaleID string from the fields set on this builder.">ulocbld_buildLocaleID()</a> and <a class="el" href="ulocbuilder_8h.html#af6ec7cf828299269e75e238ccd664a75" title="Build the IETF BCP 47 language tag string from the fields set on this builder.">ulocbld_buildLanguageTag()</a> methods will later report an U_ILLEGAL_ARGUMENT_ERROR.</p>
<p>This method clears the internal UErrorCode.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder </td></tr>
    <tr><td class="paramname">tag</td><td>the language tag, defined as IETF BCP 47 language tag, 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 tag; if negative, then the tag need to be null terminated, </td></tr>
  </table>
  </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="a9912e0b4a0ecb3e22ec2dec847779223"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9912e0b4a0ecb3e22ec2dec847779223">&#9670;&nbsp;</a></span>ulocbld_setLocale()</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 ulocbld_setLocale </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Resets the <code>ULocaleBuilder</code> to match the provided <code>locale</code>. </p>
<p>Existing state is discarded.</p>
<p>All fields of the locale must be well-formed. </p>
<p>This method clears the internal UErrorCode.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder </td></tr>
    <tr><td class="paramname">locale</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>
  </table>
  </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="a065880ba33c0fbf9dd1caae9c59de1f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a065880ba33c0fbf9dd1caae9c59de1f5">&#9670;&nbsp;</a></span>ulocbld_setRegion()</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 ulocbld_setRegion </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>region</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the region. </p>
<p>If region is the empty string, the region in this <code>ULocaleBuilder</code> is removed. Otherwise, the <code>region</code> must be well-formed, or else the <a class="el" href="ulocbuilder_8h.html#ae37b7c2050092b673a37cf53703b5659" title="Build the LocaleID string from the fields set on this builder.">ulocbld_buildLocaleID()</a> and <a class="el" href="ulocbuilder_8h.html#af6ec7cf828299269e75e238ccd664a75" title="Build the IETF BCP 47 language tag string from the fields set on this builder.">ulocbld_buildLanguageTag()</a> methods will later report an U_ILLEGAL_ARGUMENT_ERROR.</p>
<p>The region value is defined by <a href="http://www.unicode.org/reports/tr35/tr35.html#unicode_region_subtag">unicode_region_subtag</a> as a two-letter ISO 3166 code or a three-digit UN M.49 area code.</p>
<p>The region value in the <code>Locale</code> created by the <code>ULocaleBuilder</code> is always normalized to upper case.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder </td></tr>
    <tr><td class="paramname">region</td><td>the region, 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 region; if negative, then the region need to be null terminated, </td></tr>
  </table>
  </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="a89b85160562ce4924acc66c93753cd6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89b85160562ce4924acc66c93753cd6d">&#9670;&nbsp;</a></span>ulocbld_setScript()</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 ulocbld_setScript </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>script</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the script. </p>
<p>If <code>script</code> is the empty string, the script in this <code>ULocaleBuilder</code> is removed. Otherwise, the <code>script</code> must be well-formed, or else the <a class="el" href="ulocbuilder_8h.html#ae37b7c2050092b673a37cf53703b5659" title="Build the LocaleID string from the fields set on this builder.">ulocbld_buildLocaleID()</a> and <a class="el" href="ulocbuilder_8h.html#af6ec7cf828299269e75e238ccd664a75" title="Build the IETF BCP 47 language tag string from the fields set on this builder.">ulocbld_buildLanguageTag()</a> methods will later report an U_ILLEGAL_ARGUMENT_ERROR.</p>
<p>The script value is a four-letter script code as <a href="http://www.unicode.org/reports/tr35/tr35.html#unicode_script_subtag">unicode_script_subtag</a> defined by ISO 15924</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder </td></tr>
    <tr><td class="paramname">script</td><td>the script, 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 script; if negative, then the script need to be null terminated, </td></tr>
  </table>
  </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="ac4ce00305f9e2b3d751e136f7484640d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac4ce00305f9e2b3d751e136f7484640d">&#9670;&nbsp;</a></span>ulocbld_setUnicodeLocaleKeyword()</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 ulocbld_setUnicodeLocaleKeyword </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>keyLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>typeLength</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the Unicode locale keyword type for the given key. </p>
<p>If the type StringPiece is constructed with a nullptr, the keyword is removed. If the type is the empty string, the keyword is set without type subtags. Otherwise, the key and type must be well-formed, or else the <a class="el" href="ulocbuilder_8h.html#ae37b7c2050092b673a37cf53703b5659" title="Build the LocaleID string from the fields set on this builder.">ulocbld_buildLocaleID()</a> and <a class="el" href="ulocbuilder_8h.html#af6ec7cf828299269e75e238ccd664a75" title="Build the IETF BCP 47 language tag string from the fields set on this builder.">ulocbld_buildLanguageTag()</a> methods will later report an U_ILLEGAL_ARGUMENT_ERROR.</p>
<p>Keys and types are converted to lower case.</p>
<p><b>Note</b>:Setting the 'u' extension via <a class="el" href="ulocbuilder_8h.html#a4776acd0f7fe60f65200b203c1c50a14">ulocbld_setExtension</a> replaces all Unicode locale keywords with those defined in the extension.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder </td></tr>
    <tr><td class="paramname">key</td><td>the Unicode locale key, a const char * pointer (need not be terminated when the length is non-negative) </td></tr>
    <tr><td class="paramname">keyLength</td><td>the length of the key; if negative, then the key need to be null terminated, </td></tr>
    <tr><td class="paramname">type</td><td>the Unicode locale type, a const char * pointer (need not be terminated when the length is non-negative) </td></tr>
    <tr><td class="paramname">typeLength</td><td>the length of the type; if negative, then the type need to be null terminated, </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>This builder. </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="a1441b7938953c51eaa13600e553cfe8f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1441b7938953c51eaa13600e553cfe8f">&#9670;&nbsp;</a></span>ulocbld_setVariant()</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 ulocbld_setVariant </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ulocbuilder_8h.html#a5f944daf8cd9a25715b71418347eed89">ULocaleBuilder</a> *&#160;</td>
          <td class="paramname"><em>builder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>variant</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the variant. </p>
<p>If variant is the empty string, the variant in this <code>ULocaleBuilder</code> is removed. Otherwise, the <code>variant</code> must be well-formed, or else the <a class="el" href="ulocbuilder_8h.html#ae37b7c2050092b673a37cf53703b5659" title="Build the LocaleID string from the fields set on this builder.">ulocbld_buildLocaleID()</a> and <a class="el" href="ulocbuilder_8h.html#af6ec7cf828299269e75e238ccd664a75" title="Build the IETF BCP 47 language tag string from the fields set on this builder.">ulocbld_buildLanguageTag()</a> methods will later report an U_ILLEGAL_ARGUMENT_ERROR.</p>
<p><b>Note:</b> This method checks if <code>variant</code> satisfies the <a href="http://www.unicode.org/reports/tr35/tr35.html#unicode_variant_subtag">unicode_variant_subtag</a> syntax requirements, and normalizes the value to lowercase letters. However, the <code>Locale</code> class does not impose any syntactic restriction on variant. To set an ill-formed variant, use a Locale constructor. If there are multiple unicode_variant_subtag, the caller must concatenate them with '-' as separator (ex: "foobar-fibar").</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">builder</td><td>the builder </td></tr>
    <tr><td class="paramname">variant</td><td>the variant, 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 variant; if negative, then the variant need to be null terminated, </td></tr>
  </table>
  </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>
</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>
© 2026 GrazzMean
Beegazpacho


Let’s  Start  Your  Online  Journey  with  Beegazpacho 

Welcome to Beegazpacho,
where creativity meets strategy,
and innovation drives success.


Contact
Now


OUR CLIENTS

WhatsApp-Image-2021-12-06.png
Untitled-design-11.png
niaf-logo.png
20220406-163308-scaled.jpg
karchi-logo.png
20220405-171252.png
20220405-171309.png
20220321-161603.png
20220321-161611.png
20220321-161628.png
20220321-161244.png
20220321-161256.png
20220321-161450.png
20220321-161205.png
20220226-170222.png
20220321-161051.png
20211202-170852.png
Untitled-design-9
pidilite-png-logo-colour
logo-black-e1706125740216-qisosldqhzgcaerhdt6n4t3m4s50jr0iik48z0h5vk
Fraikin-Dayim-logo-1
hpcl-logo-2-1
services

Transforming Ideas into
Success

.01
Digital Marketing

We drive growth through data-driven strategies and cutting-edge techniques.

Learn More

.02
SEO

Improve your online visibility and rank higher on search engines with our expert SEO services.

Learn More

.03
Website Designing

We design websites that are not only visually stunning but also user-centric, ensuring seamless navigation and enhanced user experience.

Learn More

.04
App Development

Our apps are crafted to be intuitive, engaging, and functional, providing your users with an exceptional mobile experience.

Learn More

.05
Social Media Ads

Target the right audience with precision and creativity to maximize engagement and conversions.

Learn More

.06
Google Ads

Maximize ROI with precision-targeted campaigns on Google’s powerful ad platform.

Learn More

.07
Google My Business

Optimize your local presence with strategies that put your business on the map and attract more customers.

Learn More

.08
Graphic Designing

Our designs tell your brand’s story in a visually compelling way.

Learn More

.09
3D Videos

Bring your product to life with immersive and dynamic 3D explainer videos.

Learn More

about BEEGAZPACHO

creating special Things
For special brands

Join the ranks of successful brands by partnering with Beegazpacho

00+

Happy Customer

00+

Continents

Our vision is not just to be a service provider but to be your partner in growth. We see ourselves as an extension of your team, working tirelessly to ensure that your brand not only meets its goals but surpasses them.

Explore
more

Our Recent Work

Crafted with Passion and Precision

Connect now


Web Design
Design, Development & Identity

Logo Design
Design, Development & Identity

Creative Brand design
Design, Development & Identity

Product Design Marketing
Design, Development & Identity

DIGITAL MARKETING
SEO
WEBSITE DESIGNING
APP DEVELOPMENT
SOCIAL MEDIA ADS
GOOGLE ADS
GOOGLE MY BUSINESS
GRAPHIC DESINING
3D VIDEOS
Client Stories

Hear It from Those Who Know Us Best

Our clients’ success stories speak volumes about our commitment to excellence. Don’t just take our word for it—hear directly from the brands we’ve partnered with. Their testimonials highlight our ability to bring visions to life and create a lasting impact on their businesses.

“Beegazpacho feels like an extension of our team. Their content marketing and social media expertise have elevated our brand. They listen, adapt, and always deliver on time. We look forward to continuing this partnership.”

— Sarah Williams

Head of Marketing, GreenPlanet Apparel

“Beegazpacho’s data-driven strategies helped us improve our online ads, optimize our website, and enhance branding. We’ve seen great ROI and increased visibility. Their professionalism is unmatched.”

— Arvind Shah

CEO, InnovateTech Solutions

“Partnering with Beegazpacho has been a game-changer for our brand. Their creative ad campaigns and SEO services have boosted our online presence and significantly increased leads and sales. We couldn’t ask for a better partner!”

— Rina Kapoor

Marketing Director, Luxury Home Interiors

“Beegazpacho feels like an extension of our team. Their content marketing and social media expertise have elevated our brand. They listen, adapt, and always deliver on time. We look forward to continuing this partnership.”

— Sarah Williams

Head of Marketing, GreenPlanet Apparel

“Beegazpacho’s data-driven strategies helped us improve our online ads, optimize our website, and enhance branding. We’ve seen great ROI and increased visibility. Their professionalism is unmatched.”

— Arvind Shah

CEO, InnovateTech Solutions

“Partnering with Beegazpacho has been a game-changer for our brand. Their creative ad campaigns and SEO services have boosted our online presence and significantly increased leads and sales. We couldn’t ask for a better partner!”

— Rina Kapoor

Marketing Director, Luxury Home Interiors