Файловый менеджер - Редактировать - /opt/alt/alt-nodejs20/root/usr/share/doc/alt-nodejs20-libicu-doc/localematcher_8h_source.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/localematcher.h Source File</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="headertitle"> <div class="title">localematcher.h</div> </div> </div><!--header--> <div class="contents"> <a href="localematcher_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// © 2019 and later: Unicode, Inc. and others.</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// License & terms of use: http://www.unicode.org/copyright.html</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// localematcher.h</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// created: 2019may08 Markus W. Scherer</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> </div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#ifndef __LOCALEMATCHER_H__</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#define __LOCALEMATCHER_H__</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "<a class="code" href="utypes_8h.html">unicode/utypes.h</a>"</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#if U_SHOW_CPLUSPLUS_API</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include <optional></span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "<a class="code" href="locid_8h.html">unicode/locid.h</a>"</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="stringpiece_8h.html">unicode/stringpiece.h</a>"</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="uobject_8h.html">unicode/uobject.h</a>"</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="localematcher_8h.html#ac0c6ffd0794fa293563f9e44532d9a74"> 31</a></span> <span class="keyword">enum</span> <a class="code" href="localematcher_8h.html#ac0c6ffd0794fa293563f9e44532d9a74">ULocMatchFavorSubtag</a> {</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="localematcher_8h.html#ac0c6ffd0794fa293563f9e44532d9a74af4ad3847715ae3452831875e0396928d"> 38</a></span>  <a class="code" href="localematcher_8h.html#ac0c6ffd0794fa293563f9e44532d9a74af4ad3847715ae3452831875e0396928d">ULOCMATCH_FAVOR_LANGUAGE</a>,</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="localematcher_8h.html#ac0c6ffd0794fa293563f9e44532d9a74a4f596352386d783df1490eb6ba38713a"> 44</a></span>  <a class="code" href="localematcher_8h.html#ac0c6ffd0794fa293563f9e44532d9a74a4f596352386d783df1490eb6ba38713a">ULOCMATCH_FAVOR_SCRIPT</a></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> };</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor">#ifndef U_IN_DOXYGEN</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="localematcher_8h.html#ac0c6ffd0794fa293563f9e44532d9a74">ULocMatchFavorSubtag</a> <a class="code" href="localematcher_8h.html#ac0c6ffd0794fa293563f9e44532d9a74">ULocMatchFavorSubtag</a>;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="localematcher_8h.html#a6a6d01604c7b22789bff287433b020f2"> 57</a></span> <span class="keyword">enum</span> <a class="code" href="localematcher_8h.html#a6a6d01604c7b22789bff287433b020f2">ULocMatchDemotion</a> {</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="localematcher_8h.html#a6a6d01604c7b22789bff287433b020f2a59f78d1a68b0550b52a1a6720e9357f7"> 63</a></span>  <a class="code" href="localematcher_8h.html#a6a6d01604c7b22789bff287433b020f2a59f78d1a68b0550b52a1a6720e9357f7">ULOCMATCH_DEMOTION_NONE</a>,</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="localematcher_8h.html#a6a6d01604c7b22789bff287433b020f2a382d3e5b743091baa307924a865f5737"> 90</a></span>  <a class="code" href="localematcher_8h.html#a6a6d01604c7b22789bff287433b020f2a382d3e5b743091baa307924a865f5737">ULOCMATCH_DEMOTION_REGION</a></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> };</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="preprocessor">#ifndef U_IN_DOXYGEN</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="localematcher_8h.html#a6a6d01604c7b22789bff287433b020f2">ULocMatchDemotion</a> <a class="code" href="localematcher_8h.html#a6a6d01604c7b22789bff287433b020f2">ULocMatchDemotion</a>;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="localematcher_8h.html#aab5631d903b418f749a3c2f74eaa6455"> 113</a></span> <span class="keyword">enum</span> <a class="code" href="localematcher_8h.html#aab5631d903b418f749a3c2f74eaa6455">ULocMatchDirection</a> {</div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="localematcher_8h.html#aab5631d903b418f749a3c2f74eaa6455a8dacff75d7d8b7342efe6f73627c5c49"> 119</a></span>  <a class="code" href="localematcher_8h.html#aab5631d903b418f749a3c2f74eaa6455a8dacff75d7d8b7342efe6f73627c5c49">ULOCMATCH_DIRECTION_WITH_ONE_WAY</a>,</div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="localematcher_8h.html#aab5631d903b418f749a3c2f74eaa6455a62ced1eb9f15a0ca3a62c071ed227552"> 126</a></span>  <a class="code" href="localematcher_8h.html#aab5631d903b418f749a3c2f74eaa6455a62ced1eb9f15a0ca3a62c071ed227552">ULOCMATCH_DIRECTION_ONLY_TWO_WAY</a></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> };</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="preprocessor">#ifndef U_IN_DOXYGEN</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="localematcher_8h.html#aab5631d903b418f749a3c2f74eaa6455">ULocMatchDirection</a> <a class="code" href="localematcher_8h.html#aab5631d903b418f749a3c2f74eaa6455">ULocMatchDirection</a>;</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="keyword">struct </span><a class="code" href="msgfmt_8h.html#a6c890111dda4b555e2a2ef52178b5129">UHashtable</a>;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> U_NAMESPACE_BEGIN</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> </div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="keyword">struct </span>LSR;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="keyword">class </span>LikelySubtags;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="keyword">class </span>LocaleDistance;</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="keyword">class </span>LocaleLsrIterator;</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="keyword">class </span>UVector;</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div><div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="classicu_1_1LocaleMatcher.html"> 186</a></span> <span class="keyword">class </span><a class="code" href="utypes_8h.html#a559955ec3bc692657c5d8b1c6de8e334">U_COMMON_API</a> <a class="code" href="classicu_1_1LocaleMatcher.html">LocaleMatcher</a> : <span class="keyword">public</span> <a class="code" href="classicu_1_1UMemory.html">UMemory</a> {</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classicu_1_1LocaleMatcher_1_1Result.html"> 194</a></span>  <span class="keyword">class </span><a class="code" href="utypes_8h.html#a559955ec3bc692657c5d8b1c6de8e334">U_COMMON_API</a> <a class="code" href="classicu_1_1LocaleMatcher_1_1Result.html">Result</a> : <span class="keyword">public</span> <a class="code" href="classicu_1_1UMemory.html">UMemory</a> {</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Result.html">Result</a>(<a class="code" href="classicu_1_1LocaleMatcher_1_1Result.html">Result</a> &&src) noexcept;</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  ~<a class="code" href="classicu_1_1LocaleMatcher_1_1Result.html">Result</a>();</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> </div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Result.html">Result</a> &operator=(<a class="code" href="classicu_1_1LocaleMatcher_1_1Result.html">Result</a> &&src) noexcept;</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span> </div><div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="classicu_1_1LocaleMatcher_1_1Result.html#aa7032785df9b02dd300b4af457597609"> 228</a></span>  <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> *<a class="code" href="classicu_1_1LocaleMatcher_1_1Result.html#aa7032785df9b02dd300b4af457597609">getDesiredLocale</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> desiredLocale; }</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span> </div><div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="classicu_1_1LocaleMatcher_1_1Result.html#a4db915fe642705fe1b3119113ee7241f"> 239</a></span>  <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> *<a class="code" href="classicu_1_1LocaleMatcher_1_1Result.html#a4db915fe642705fe1b3119113ee7241f">getSupportedLocale</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> supportedLocale; }</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span> </div><div class="line"><a name="l00248"></a><span class="lineno"><a class="line" href="classicu_1_1LocaleMatcher_1_1Result.html#a6389b8ac083425c85ced07442615b4d9"> 248</a></span>  <span class="keyword">inline</span> int32_t <a class="code" href="classicu_1_1LocaleMatcher_1_1Result.html#a6389b8ac083425c85ced07442615b4d9">getDesiredIndex</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> desiredIndex; }</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> </div><div class="line"><a name="l00260"></a><span class="lineno"><a class="line" href="classicu_1_1LocaleMatcher_1_1Result.html#a1acb467ccfd20071efaea34156bcec83"> 260</a></span>  <span class="keyword">inline</span> int32_t <a class="code" href="classicu_1_1LocaleMatcher_1_1Result.html#a1acb467ccfd20071efaea34156bcec83">getSupportedIndex</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> supportedIndex; }</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> </div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <a class="code" href="classicu_1_1Locale.html">Locale</a> makeResolvedLocale(<a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &errorCode) <span class="keyword">const</span>;</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span> </div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Result.html">Result</a>(<span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> *desired, <span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> *supported,</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  int32_t desIndex, int32_t suppIndex, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> owned) :</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  desiredLocale(desired), supportedLocale(supported),</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  desiredIndex(desIndex), supportedIndex(suppIndex),</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  desiredIsOwned(owned) {}</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span> </div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  Result(<span class="keyword">const</span> Result &other) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  Result &operator=(<span class="keyword">const</span> Result &other) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span> </div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> *desiredLocale;</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> *supportedLocale;</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  int32_t desiredIndex;</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  int32_t supportedIndex;</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> desiredIsOwned;</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span> </div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classicu_1_1LocaleMatcher.html">LocaleMatcher</a>;</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  };</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span> </div><div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="classicu_1_1LocaleMatcher_1_1Builder.html"> 301</a></span>  <span class="keyword">class </span><a class="code" href="utypes_8h.html#a559955ec3bc692657c5d8b1c6de8e334">U_COMMON_API</a> <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> : <span class="keyword">public</span> <a class="code" href="classicu_1_1UMemory.html">UMemory</a> {</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00309"></a><span class="lineno"><a class="line" href="classicu_1_1LocaleMatcher_1_1Builder.html#afb194bfc06a8af52054e2f246fd4a11b"> 309</a></span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html#afb194bfc06a8af52054e2f246fd4a11b">Builder</a>() {}</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span> </div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a>(<a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &&src) noexcept;</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span> </div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  ~<a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a>();</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span> </div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &operator=(<a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &&src) noexcept;</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span> </div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &setSupportedLocalesFromListString(<a class="code" href="classicu_1_1StringPiece.html">StringPiece</a> locales);</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span> </div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &setSupportedLocales(<a class="code" href="classicu_1_1Locale_1_1Iterator.html">Locale::Iterator</a> &locales);</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span> </div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Iter></div><div class="line"><a name="l00374"></a><span class="lineno"><a class="line" href="classicu_1_1LocaleMatcher_1_1Builder.html#a33848726b4628d67b31221a7ab11d403"> 374</a></span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &<a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html#a33848726b4628d67b31221a7ab11d403">setSupportedLocales</a>(Iter begin, Iter end) {</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  <span class="keywordflow">if</span> (<a class="code" href="utypes_8h.html#a4d202200b6aa6f3c965ea370e0c8155f">U_FAILURE</a>(errorCode_)) { <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  clearSupportedLocales();</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  <span class="keywordflow">while</span> (begin != end) {</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  addSupportedLocale(*begin++);</div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  }</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  }</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span> </div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <span class="keyword">template</span><<span class="keyword">typename</span> Iter, <span class="keyword">typename</span> Conv></div><div class="line"><a name="l00399"></a><span class="lineno"><a class="line" href="classicu_1_1LocaleMatcher_1_1Builder.html#a363fed82b3481829a57ccfb0d5554693"> 399</a></span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &<a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html#a363fed82b3481829a57ccfb0d5554693">setSupportedLocalesViaConverter</a>(Iter begin, Iter end, Conv converter) {</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <span class="keywordflow">if</span> (<a class="code" href="utypes_8h.html#a4d202200b6aa6f3c965ea370e0c8155f">U_FAILURE</a>(errorCode_)) { <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  clearSupportedLocales();</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  <span class="keywordflow">while</span> (begin != end) {</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  addSupportedLocale(converter(*begin++));</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  }</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  }</div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span> </div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &addSupportedLocale(<span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> &locale);</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span> </div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &setNoDefaultLocale();</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span> </div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &setDefaultLocale(<span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> *defaultLocale);</div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span> </div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &setFavorSubtag(<a class="code" href="localematcher_8h.html#ac0c6ffd0794fa293563f9e44532d9a74">ULocMatchFavorSubtag</a> subtag);</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span> </div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &setDemotionPerDesiredLocale(<a class="code" href="localematcher_8h.html#a6a6d01604c7b22789bff287433b020f2">ULocMatchDemotion</a> demotion);</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span> </div><div class="line"><a name="l00470"></a><span class="lineno"><a class="line" href="classicu_1_1LocaleMatcher_1_1Builder.html#a60edd55a4625fe082813bf05ccfda3d3"> 470</a></span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &<a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html#a60edd55a4625fe082813bf05ccfda3d3">setDirection</a>(<a class="code" href="localematcher_8h.html#aab5631d903b418f749a3c2f74eaa6455">ULocMatchDirection</a> matchDirection) {</div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  <span class="keywordflow">if</span> (<a class="code" href="utypes_8h.html#a527f2c69e6b2e3b2c53ad8a99fb36711">U_SUCCESS</a>(errorCode_)) {</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  direction_ = matchDirection;</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  }</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  }</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span> </div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &setMaxDistance(<span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> &desired, <span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> &supported);</div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span> </div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> copyErrorTo(<a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &outErrorCode) <span class="keyword">const</span>;</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span> </div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  <a class="code" href="classicu_1_1LocaleMatcher.html">LocaleMatcher</a> build(<a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &errorCode) <span class="keyword">const</span>;</div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span> </div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classicu_1_1LocaleMatcher.html">LocaleMatcher</a>;</div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span> </div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a>(<span class="keyword">const</span> <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &other) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &operator=(<span class="keyword">const</span> <a class="code" href="classicu_1_1LocaleMatcher_1_1Builder.html">Builder</a> &other) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span> </div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  <span class="keywordtype">void</span> clearSupportedLocales();</div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span>  <span class="keywordtype">bool</span> ensureSupportedLocaleVector();</div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span> </div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> errorCode_ = <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9">U_ZERO_ERROR</a>;</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  UVector *supportedLocales_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  int32_t thresholdDistance_ = -1;</div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  <a class="code" href="localematcher_8h.html#a6a6d01604c7b22789bff287433b020f2">ULocMatchDemotion</a> demotion_ = <a class="code" href="localematcher_8h.html#a6a6d01604c7b22789bff287433b020f2a382d3e5b743091baa307924a865f5737">ULOCMATCH_DEMOTION_REGION</a>;</div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  <a class="code" href="classicu_1_1Locale.html">Locale</a> *defaultLocale_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  <span class="keywordtype">bool</span> withDefault_ = <span class="keyword">true</span>;</div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  <a class="code" href="localematcher_8h.html#ac0c6ffd0794fa293563f9e44532d9a74">ULocMatchFavorSubtag</a> favor_ = <a class="code" href="localematcher_8h.html#ac0c6ffd0794fa293563f9e44532d9a74af4ad3847715ae3452831875e0396928d">ULOCMATCH_FAVOR_LANGUAGE</a>;</div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  <a class="code" href="localematcher_8h.html#aab5631d903b418f749a3c2f74eaa6455">ULocMatchDirection</a> direction_ = <a class="code" href="localematcher_8h.html#aab5631d903b418f749a3c2f74eaa6455a8dacff75d7d8b7342efe6f73627c5c49">ULOCMATCH_DIRECTION_WITH_ONE_WAY</a>;</div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  <a class="code" href="classicu_1_1Locale.html">Locale</a> *maxDistanceDesired_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  <a class="code" href="classicu_1_1Locale.html">Locale</a> *maxDistanceSupported_ = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  };</div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span> </div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  <span class="comment">// FYI No public LocaleMatcher constructors in C++; use the Builder.</span></div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span> </div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  <a class="code" href="classicu_1_1LocaleMatcher.html">LocaleMatcher</a>(<a class="code" href="classicu_1_1LocaleMatcher.html">LocaleMatcher</a> &&src) noexcept;</div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span> </div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span>  ~<a class="code" href="classicu_1_1LocaleMatcher.html">LocaleMatcher</a>();</div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span> </div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span>  <a class="code" href="classicu_1_1LocaleMatcher.html">LocaleMatcher</a> &operator=(<a class="code" href="classicu_1_1LocaleMatcher.html">LocaleMatcher</a> &&src) noexcept;</div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span> </div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  <span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> *getBestMatch(<span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> &desiredLocale, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &errorCode) <span class="keyword">const</span>;</div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span> </div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  <span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> *getBestMatch(<a class="code" href="classicu_1_1Locale_1_1Iterator.html">Locale::Iterator</a> &desiredLocales, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &errorCode) <span class="keyword">const</span>;</div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span> </div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span>  <span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> *getBestMatchForListString(<a class="code" href="classicu_1_1StringPiece.html">StringPiece</a> desiredLocaleList, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &errorCode) <span class="keyword">const</span>;</div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span> </div><div class="line"><a name="l00623"></a><span class="lineno"> 623</span>  Result getBestMatchResult(<span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> &desiredLocale, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &errorCode) <span class="keyword">const</span>;</div><div class="line"><a name="l00624"></a><span class="lineno"> 624</span> </div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span>  Result getBestMatchResult(<a class="code" href="classicu_1_1Locale_1_1Iterator.html">Locale::Iterator</a> &desiredLocales, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &errorCode) <span class="keyword">const</span>;</div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span> </div><div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> isMatch(<span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> &desired, <span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> &supported, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &errorCode) <span class="keyword">const</span>;</div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span> </div><div class="line"><a name="l00654"></a><span class="lineno"> 654</span> <span class="preprocessor">#ifndef U_HIDE_INTERNAL_API</span></div><div class="line"><a name="l00655"></a><span class="lineno"> 655</span> </div><div class="line"><a name="l00673"></a><span class="lineno"> 673</span>  <span class="keywordtype">double</span> internalMatch(<span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> &desired, <span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> &supported, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &errorCode) <span class="keyword">const</span>;</div><div class="line"><a name="l00674"></a><span class="lineno"> 674</span> <span class="preprocessor">#endif // U_HIDE_INTERNAL_API</span></div><div class="line"><a name="l00675"></a><span class="lineno"> 675</span> </div><div class="line"><a name="l00676"></a><span class="lineno"> 676</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span>  <a class="code" href="classicu_1_1LocaleMatcher.html">LocaleMatcher</a>(<span class="keyword">const</span> Builder &builder, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &errorCode);</div><div class="line"><a name="l00678"></a><span class="lineno"> 678</span>  <a class="code" href="classicu_1_1LocaleMatcher.html">LocaleMatcher</a>(<span class="keyword">const</span> <a class="code" href="classicu_1_1LocaleMatcher.html">LocaleMatcher</a> &other) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00679"></a><span class="lineno"> 679</span>  <a class="code" href="classicu_1_1LocaleMatcher.html">LocaleMatcher</a> &operator=(<span class="keyword">const</span> <a class="code" href="classicu_1_1LocaleMatcher.html">LocaleMatcher</a> &other) = <span class="keyword">delete</span>;</div><div class="line"><a name="l00680"></a><span class="lineno"> 680</span> </div><div class="line"><a name="l00681"></a><span class="lineno"> 681</span>  int32_t putIfAbsent(<span class="keyword">const</span> LSR &lsr, int32_t i, int32_t suppLength, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &errorCode);</div><div class="line"><a name="l00682"></a><span class="lineno"> 682</span> </div><div class="line"><a name="l00683"></a><span class="lineno"> 683</span>  std::optional<int32_t> getBestSuppIndex(LSR desiredLSR, LocaleLsrIterator *remainingIter, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &errorCode) <span class="keyword">const</span>;</div><div class="line"><a name="l00684"></a><span class="lineno"> 684</span> </div><div class="line"><a name="l00685"></a><span class="lineno"> 685</span>  <span class="keyword">const</span> LikelySubtags &likelySubtags;</div><div class="line"><a name="l00686"></a><span class="lineno"> 686</span>  <span class="keyword">const</span> LocaleDistance &localeDistance;</div><div class="line"><a name="l00687"></a><span class="lineno"> 687</span>  int32_t thresholdDistance;</div><div class="line"><a name="l00688"></a><span class="lineno"> 688</span>  int32_t demotionPerDesiredLocale;</div><div class="line"><a name="l00689"></a><span class="lineno"> 689</span>  <a class="code" href="localematcher_8h.html#ac0c6ffd0794fa293563f9e44532d9a74">ULocMatchFavorSubtag</a> favorSubtag;</div><div class="line"><a name="l00690"></a><span class="lineno"> 690</span>  <a class="code" href="localematcher_8h.html#aab5631d903b418f749a3c2f74eaa6455">ULocMatchDirection</a> direction;</div><div class="line"><a name="l00691"></a><span class="lineno"> 691</span> </div><div class="line"><a name="l00692"></a><span class="lineno"> 692</span>  <span class="comment">// These are in input order.</span></div><div class="line"><a name="l00693"></a><span class="lineno"> 693</span>  <span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> ** supportedLocales;</div><div class="line"><a name="l00694"></a><span class="lineno"> 694</span>  LSR *lsrs;</div><div class="line"><a name="l00695"></a><span class="lineno"> 695</span>  int32_t supportedLocalesLength;</div><div class="line"><a name="l00696"></a><span class="lineno"> 696</span>  <span class="comment">// These are in preference order: 1. Default locale 2. paradigm locales 3. others.</span></div><div class="line"><a name="l00697"></a><span class="lineno"> 697</span>  <a class="code" href="msgfmt_8h.html#a6c890111dda4b555e2a2ef52178b5129">UHashtable</a> *supportedLsrToIndex; <span class="comment">// Map<LSR, Integer></span></div><div class="line"><a name="l00698"></a><span class="lineno"> 698</span>  <span class="comment">// Array versions of the supportedLsrToIndex keys and values.</span></div><div class="line"><a name="l00699"></a><span class="lineno"> 699</span>  <span class="comment">// The distance lookup loops over the supportedLSRs and returns the index of the best match.</span></div><div class="line"><a name="l00700"></a><span class="lineno"> 700</span>  <span class="keyword">const</span> LSR **supportedLSRs;</div><div class="line"><a name="l00701"></a><span class="lineno"> 701</span>  int32_t *supportedIndexes;</div><div class="line"><a name="l00702"></a><span class="lineno"> 702</span>  int32_t supportedLSRsLength;</div><div class="line"><a name="l00703"></a><span class="lineno"> 703</span>  <a class="code" href="classicu_1_1Locale.html">Locale</a> *ownedDefaultLocale;</div><div class="line"><a name="l00704"></a><span class="lineno"> 704</span>  <span class="keyword">const</span> <a class="code" href="classicu_1_1Locale.html">Locale</a> *defaultLocale;</div><div class="line"><a name="l00705"></a><span class="lineno"> 705</span> };</div><div class="line"><a name="l00706"></a><span class="lineno"> 706</span> </div><div class="line"><a name="l00707"></a><span class="lineno"> 707</span> U_NAMESPACE_END</div><div class="line"><a name="l00708"></a><span class="lineno"> 708</span> </div><div class="line"><a name="l00709"></a><span class="lineno"> 709</span> <span class="preprocessor">#endif // U_SHOW_CPLUSPLUS_API</span></div><div class="line"><a name="l00710"></a><span class="lineno"> 710</span> <span class="preprocessor">#endif // __LOCALEMATCHER_H__</span></div><div class="ttc" id="classicu_1_1LocaleMatcher_1_1Result_html_a1acb467ccfd20071efaea34156bcec83"><div class="ttname"><a href="classicu_1_1LocaleMatcher_1_1Result.html#a1acb467ccfd20071efaea34156bcec83">icu::LocaleMatcher::Result::getSupportedIndex</a></div><div class="ttdeci">int32_t getSupportedIndex() const</div><div class="ttdoc">Returns the index of the best-matching supported locale in the constructor’s or builder’s input ord...</div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00260">localematcher.h:260</a></div></div> <div class="ttc" id="msgfmt_8h_html_a6c890111dda4b555e2a2ef52178b5129"><div class="ttname"><a href="msgfmt_8h.html#a6c890111dda4b555e2a2ef52178b5129">UHashtable</a></div><div class="ttdeci">struct UHashtable UHashtable</div><div class="ttdef"><b>Definition:</b> <a href="msgfmt_8h_source.html#l00043">msgfmt.h:43</a></div></div> <div class="ttc" id="localematcher_8h_html_a6a6d01604c7b22789bff287433b020f2a59f78d1a68b0550b52a1a6720e9357f7"><div class="ttname"><a href="localematcher_8h.html#a6a6d01604c7b22789bff287433b020f2a59f78d1a68b0550b52a1a6720e9357f7">ULOCMATCH_DEMOTION_NONE</a></div><div class="ttdoc">All desired locales are treated equally. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00063">localematcher.h:63</a></div></div> <div class="ttc" id="classicu_1_1LocaleMatcher_1_1Builder_html_a363fed82b3481829a57ccfb0d5554693"><div class="ttname"><a href="classicu_1_1LocaleMatcher_1_1Builder.html#a363fed82b3481829a57ccfb0d5554693">icu::LocaleMatcher::Builder::setSupportedLocalesViaConverter</a></div><div class="ttdeci">Builder & setSupportedLocalesViaConverter(Iter begin, Iter end, Conv converter)</div><div class="ttdoc">Copies the supported locales from the begin/end range, preserving iteration order. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00399">localematcher.h:399</a></div></div> <div class="ttc" id="utypes_8h_html_a527f2c69e6b2e3b2c53ad8a99fb36711"><div class="ttname"><a href="utypes_8h.html#a527f2c69e6b2e3b2c53ad8a99fb36711">U_SUCCESS</a></div><div class="ttdeci">#define U_SUCCESS(x)</div><div class="ttdoc">Does the error code indicate success? </div><div class="ttdef"><b>Definition:</b> <a href="utypes_8h_source.html#l00822">utypes.h:822</a></div></div> <div class="ttc" id="utypes_8h_html_a4d202200b6aa6f3c965ea370e0c8155f"><div class="ttname"><a href="utypes_8h.html#a4d202200b6aa6f3c965ea370e0c8155f">U_FAILURE</a></div><div class="ttdeci">#define U_FAILURE(x)</div><div class="ttdoc">Does the error code indicate a failure? </div><div class="ttdef"><b>Definition:</b> <a href="utypes_8h_source.html#l00827">utypes.h:827</a></div></div> <div class="ttc" id="localematcher_8h_html_a6a6d01604c7b22789bff287433b020f2"><div class="ttname"><a href="localematcher_8h.html#a6a6d01604c7b22789bff287433b020f2">ULocMatchDemotion</a></div><div class="ttdeci">ULocMatchDemotion</div><div class="ttdoc">Builder option for whether all desired locales are treated equally or earlier ones are preferred...</div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00057">localematcher.h:57</a></div></div> <div class="ttc" id="localematcher_8h_html_ac0c6ffd0794fa293563f9e44532d9a74a4f596352386d783df1490eb6ba38713a"><div class="ttname"><a href="localematcher_8h.html#ac0c6ffd0794fa293563f9e44532d9a74a4f596352386d783df1490eb6ba38713a">ULOCMATCH_FAVOR_SCRIPT</a></div><div class="ttdoc">Makes script differences matter relatively more than language differences. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00044">localematcher.h:44</a></div></div> <div class="ttc" id="localematcher_8h_html_aab5631d903b418f749a3c2f74eaa6455a62ced1eb9f15a0ca3a62c071ed227552"><div class="ttname"><a href="localematcher_8h.html#aab5631d903b418f749a3c2f74eaa6455a62ced1eb9f15a0ca3a62c071ed227552">ULOCMATCH_DIRECTION_ONLY_TWO_WAY</a></div><div class="ttdoc">Locale matching limited to two-way matches including e.g. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00126">localematcher.h:126</a></div></div> <div class="ttc" id="classicu_1_1LocaleMatcher_1_1Builder_html_a60edd55a4625fe082813bf05ccfda3d3"><div class="ttname"><a href="classicu_1_1LocaleMatcher_1_1Builder.html#a60edd55a4625fe082813bf05ccfda3d3">icu::LocaleMatcher::Builder::setDirection</a></div><div class="ttdeci">Builder & setDirection(ULocMatchDirection matchDirection)</div><div class="ttdoc">Option for whether to include or ignore one-way (fallback) match data. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00470">localematcher.h:470</a></div></div> <div class="ttc" id="classicu_1_1LocaleMatcher_1_1Builder_html_a33848726b4628d67b31221a7ab11d403"><div class="ttname"><a href="classicu_1_1LocaleMatcher_1_1Builder.html#a33848726b4628d67b31221a7ab11d403">icu::LocaleMatcher::Builder::setSupportedLocales</a></div><div class="ttdeci">Builder & setSupportedLocales(Iter begin, Iter end)</div><div class="ttdoc">Copies the supported locales from the begin/end range, preserving iteration order. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00374">localematcher.h:374</a></div></div> <div class="ttc" id="classicu_1_1LocaleMatcher_1_1Result_html_aa7032785df9b02dd300b4af457597609"><div class="ttname"><a href="classicu_1_1LocaleMatcher_1_1Result.html#aa7032785df9b02dd300b4af457597609">icu::LocaleMatcher::Result::getDesiredLocale</a></div><div class="ttdeci">const Locale * getDesiredLocale() const</div><div class="ttdoc">Returns the best-matching desired locale. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00228">localematcher.h:228</a></div></div> <div class="ttc" id="utypes_8h_html_a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9"><div class="ttname"><a href="utypes_8h.html#a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9">U_ZERO_ERROR</a></div><div class="ttdoc">No error, no warning. </div><div class="ttdef"><b>Definition:</b> <a href="utypes_8h_source.html#l00544">utypes.h:544</a></div></div> <div class="ttc" id="localematcher_8h_html_a6a6d01604c7b22789bff287433b020f2a382d3e5b743091baa307924a865f5737"><div class="ttname"><a href="localematcher_8h.html#a6a6d01604c7b22789bff287433b020f2a382d3e5b743091baa307924a865f5737">ULOCMATCH_DEMOTION_REGION</a></div><div class="ttdoc">Earlier desired locales are preferred. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00090">localematcher.h:90</a></div></div> <div class="ttc" id="classicu_1_1Locale_1_1Iterator_html"><div class="ttname"><a href="classicu_1_1Locale_1_1Iterator.html">icu::Locale::Iterator</a></div><div class="ttdoc">A Locale iterator interface similar to a Java Iterator<Locale>. </div><div class="ttdef"><b>Definition:</b> <a href="locid_8h_source.html#l01035">locid.h:1035</a></div></div> <div class="ttc" id="stringpiece_8h_html"><div class="ttname"><a href="stringpiece_8h.html">stringpiece.h</a></div><div class="ttdoc">C++ API: StringPiece: Read-only byte string wrapper class. </div></div> <div class="ttc" id="localematcher_8h_html_aab5631d903b418f749a3c2f74eaa6455a8dacff75d7d8b7342efe6f73627c5c49"><div class="ttname"><a href="localematcher_8h.html#aab5631d903b418f749a3c2f74eaa6455a8dacff75d7d8b7342efe6f73627c5c49">ULOCMATCH_DIRECTION_WITH_ONE_WAY</a></div><div class="ttdoc">Locale matching includes one-way matches such as Breton→French. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00119">localematcher.h:119</a></div></div> <div class="ttc" id="localematcher_8h_html_ac0c6ffd0794fa293563f9e44532d9a74"><div class="ttname"><a href="localematcher_8h.html#ac0c6ffd0794fa293563f9e44532d9a74">ULocMatchFavorSubtag</a></div><div class="ttdeci">ULocMatchFavorSubtag</div><div class="ttdoc">Builder option for whether the language subtag or the script subtag is most important. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00031">localematcher.h:31</a></div></div> <div class="ttc" id="classicu_1_1LocaleMatcher_html"><div class="ttname"><a href="classicu_1_1LocaleMatcher.html">icu::LocaleMatcher</a></div><div class="ttdoc">Immutable class that picks the best match between a user&#39;s desired locales and an application&#39;s suppo...</div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00186">localematcher.h:186</a></div></div> <div class="ttc" id="classicu_1_1LocaleMatcher_1_1Builder_html_afb194bfc06a8af52054e2f246fd4a11b"><div class="ttname"><a href="classicu_1_1LocaleMatcher_1_1Builder.html#afb194bfc06a8af52054e2f246fd4a11b">icu::LocaleMatcher::Builder::Builder</a></div><div class="ttdeci">Builder()</div><div class="ttdoc">Constructs a builder used in chaining parameters for building a LocaleMatcher. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00309">localematcher.h:309</a></div></div> <div class="ttc" id="localematcher_8h_html_aab5631d903b418f749a3c2f74eaa6455"><div class="ttname"><a href="localematcher_8h.html#aab5631d903b418f749a3c2f74eaa6455">ULocMatchDirection</a></div><div class="ttdeci">ULocMatchDirection</div><div class="ttdoc">Builder option for whether to include or ignore one-way (fallback) match data. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00113">localematcher.h:113</a></div></div> <div class="ttc" id="classicu_1_1LocaleMatcher_1_1Result_html_a6389b8ac083425c85ced07442615b4d9"><div class="ttname"><a href="classicu_1_1LocaleMatcher_1_1Result.html#a6389b8ac083425c85ced07442615b4d9">icu::LocaleMatcher::Result::getDesiredIndex</a></div><div class="ttdeci">int32_t getDesiredIndex() const</div><div class="ttdoc">Returns the index of the best-matching desired locale in the input Iterable order. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00248">localematcher.h:248</a></div></div> <div class="ttc" id="classicu_1_1LocaleMatcher_1_1Result_html_a4db915fe642705fe1b3119113ee7241f"><div class="ttname"><a href="classicu_1_1LocaleMatcher_1_1Result.html#a4db915fe642705fe1b3119113ee7241f">icu::LocaleMatcher::Result::getSupportedLocale</a></div><div class="ttdeci">const Locale * getSupportedLocale() const</div><div class="ttdoc">Returns the best-matching supported locale. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00239">localematcher.h:239</a></div></div> <div class="ttc" id="classicu_1_1LocaleMatcher_1_1Result_html"><div class="ttname"><a href="classicu_1_1LocaleMatcher_1_1Result.html">icu::LocaleMatcher::Result</a></div><div class="ttdoc">Data for the best-matching pair of a desired and a supported locale. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00194">localematcher.h:194</a></div></div> <div class="ttc" id="uobject_8h_html"><div class="ttname"><a href="uobject_8h.html">uobject.h</a></div><div class="ttdoc">C++ API: Common ICU base class UObject. </div></div> <div class="ttc" id="utypes_8h_html_a3343c1c8a8377277046774691c98d78c"><div class="ttname"><a href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a></div><div class="ttdeci">UErrorCode</div><div class="ttdoc">Standard ICU4C error code type, a substitute for exceptions. </div><div class="ttdef"><b>Definition:</b> <a href="utypes_8h_source.html#l00509">utypes.h:509</a></div></div> <div class="ttc" id="locid_8h_html"><div class="ttname"><a href="locid_8h.html">locid.h</a></div><div class="ttdoc">C++ API: Locale ID object. </div></div> <div class="ttc" id="localematcher_8h_html_ac0c6ffd0794fa293563f9e44532d9a74af4ad3847715ae3452831875e0396928d"><div class="ttname"><a href="localematcher_8h.html#ac0c6ffd0794fa293563f9e44532d9a74af4ad3847715ae3452831875e0396928d">ULOCMATCH_FAVOR_LANGUAGE</a></div><div class="ttdoc">Language differences are most important, then script differences, then region differences. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00038">localematcher.h:38</a></div></div> <div class="ttc" id="utypes_8h_html"><div class="ttname"><a href="utypes_8h.html">utypes.h</a></div><div class="ttdoc">Basic definitions for ICU, for both C and C++ APIs. </div></div> <div class="ttc" id="utypes_8h_html_a559955ec3bc692657c5d8b1c6de8e334"><div class="ttname"><a href="utypes_8h.html#a559955ec3bc692657c5d8b1c6de8e334">U_COMMON_API</a></div><div class="ttdeci">#define U_COMMON_API</div><div class="ttdoc">Set to export library symbols from inside the common library, and to import them from outside...</div><div class="ttdef"><b>Definition:</b> <a href="utypes_8h_source.html#l00315">utypes.h:315</a></div></div> <div class="ttc" id="classicu_1_1StringPiece_html"><div class="ttname"><a href="classicu_1_1StringPiece.html">icu::StringPiece</a></div><div class="ttdoc">A string-like object that points to a sized piece of memory. </div><div class="ttdef"><b>Definition:</b> <a href="stringpiece_8h_source.html#l00061">stringpiece.h:61</a></div></div> <div class="ttc" id="classicu_1_1LocaleMatcher_1_1Builder_html"><div class="ttname"><a href="classicu_1_1LocaleMatcher_1_1Builder.html">icu::LocaleMatcher::Builder</a></div><div class="ttdoc">LocaleMatcher builder. </div><div class="ttdef"><b>Definition:</b> <a href="localematcher_8h_source.html#l00301">localematcher.h:301</a></div></div> <div class="ttc" id="classicu_1_1UMemory_html"><div class="ttname"><a href="classicu_1_1UMemory.html">icu::UMemory</a></div><div class="ttdoc">UMemory is the common ICU base class. </div><div class="ttdef"><b>Definition:</b> <a href="uobject_8h_source.html#l00115">uobject.h:115</a></div></div> <div class="ttc" id="umachine_8h_html_a349ef00011f20ccd1d3b424445681aa5"><div class="ttname"><a href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a></div><div class="ttdeci">int8_t UBool</div><div class="ttdoc">The ICU boolean type, a signed-byte integer. </div><div class="ttdef"><b>Definition:</b> <a href="umachine_8h_source.html#l00269">umachine.h:269</a></div></div> <div class="ttc" id="classicu_1_1Locale_html"><div class="ttname"><a href="classicu_1_1Locale.html">icu::Locale</a></div><div class="ttdoc">A Locale object represents a specific geographical, political, or cultural region. </div><div class="ttdef"><b>Definition:</b> <a href="locid_8h_source.html#l00198">locid.h:198</a></div></div> </div><!-- fragment --></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
|
Настройка