<!-- This comment will put IE 6, 7 and 8 in quirks mode --> <!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"/> <title>ICU 4.4.1: ulocdata.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javaScript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body onload='searchBox.OnSelectItem(0);'> <!-- Generated by Doxygen 1.6.2-20100208 --> <script type="text/javascript"><!-- var searchBox = new SearchBox("searchBox", "search",false,'Search'); --></script> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <img id="MSearchSelect" src="search/search.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </div> </li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <h1>ulocdata.h</h1><a href="ulocdata_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment">******************************************************************************</span> <a name="l00003"></a>00003 <span class="comment">* *</span> <a name="l00004"></a>00004 <span class="comment">* Copyright (C) 2003-2010, International Business Machines *</span> <a name="l00005"></a>00005 <span class="comment">* Corporation and others. All Rights Reserved. *</span> <a name="l00006"></a>00006 <span class="comment">* *</span> <a name="l00007"></a>00007 <span class="comment">******************************************************************************</span> <a name="l00008"></a>00008 <span class="comment">* file name: ulocdata.h</span> <a name="l00009"></a>00009 <span class="comment">* encoding: US-ASCII</span> <a name="l00010"></a>00010 <span class="comment">* tab size: 8 (not used)</span> <a name="l00011"></a>00011 <span class="comment">* indentation:4</span> <a name="l00012"></a>00012 <span class="comment">*</span> <a name="l00013"></a>00013 <span class="comment">* created on: 2003Oct21</span> <a name="l00014"></a>00014 <span class="comment">* created by: Ram Viswanadha</span> <a name="l00015"></a>00015 <span class="comment">*/</span> <a name="l00016"></a>00016 <a name="l00017"></a>00017 <span class="preprocessor">#ifndef __ULOCDATA_H__</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __ULOCDATA_H__</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="ures_8h.html" title="C API: Resource Bundle.">unicode/ures.h</a>"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="uloc_8h.html" title="C API: Locale.">unicode/uloc.h</a>"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="uset_8h.html" title="C API: Unicode Set.">unicode/uset.h</a>"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="localpointer_8h.html" title="C++ API: &quot;Smart pointers&quot; for use with and in ICU4C C++ code.">unicode/localpointer.h</a>"</span> <a name="l00024"></a>00024 <a name="l00031"></a>00031 <span class="keyword">struct </span><a class="code" href="ulocdata_8h.html#a11b0b31a90a3f88fe6cf285f549365ac" title="A locale data object.">ULocaleData</a>; <a name="l00032"></a>00032 <a name="l00034"></a><a class="code" href="ulocdata_8h.html#a11b0b31a90a3f88fe6cf285f549365ac">00034</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="ulocdata_8h.html#a11b0b31a90a3f88fe6cf285f549365ac" title="A locale data object.">ULocaleData</a> <a class="code" href="ulocdata_8h.html#a11b0b31a90a3f88fe6cf285f549365ac" title="A locale data object.">ULocaleData</a>; <a name="l00035"></a>00035 <a name="l00036"></a>00036 <a name="l00037"></a>00037 <a name="l00041"></a><a class="code" href="ulocdata_8h.html#ab4e9cbcc23972244e20d4d6f599fc8d3">00041</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="ulocdata_8h.html#ab4e9cbcc23972244e20d4d6f599fc8d3" title="The possible types of exemplar character sets.">ULocaleDataExemplarSetType</a> { <a name="l00042"></a>00042 ULOCDATA_ES_STANDARD=0, <span class="comment">/* Basic set */</span> <a name="l00043"></a>00043 ULOCDATA_ES_AUXILIARY=1, <span class="comment">/* Auxiliary set */</span> <a name="l00044"></a>00044 ULOCDATA_ES_COUNT=2 <a name="l00045"></a>00045 } <a class="code" href="ulocdata_8h.html#ab4e9cbcc23972244e20d4d6f599fc8d3" title="The possible types of exemplar character sets.">ULocaleDataExemplarSetType</a>; <a name="l00046"></a>00046 <a name="l00050"></a><a class="code" href="ulocdata_8h.html#a2de6cb7db4865c46fd28fdd1d31fbfdf">00050</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="ulocdata_8h.html#a2de6cb7db4865c46fd28fdd1d31fbfdf" title="The possible types of delimiters.">ULocaleDataDelimiterType</a> { <a name="l00051"></a>00051 ULOCDATA_QUOTATION_START = 0, <span class="comment">/* Quotation start */</span> <a name="l00052"></a>00052 ULOCDATA_QUOTATION_END = 1, <span class="comment">/* Quotation end */</span> <a name="l00053"></a>00053 ULOCDATA_ALT_QUOTATION_START = 2, <span class="comment">/* Alternate quotation start */</span> <a name="l00054"></a>00054 ULOCDATA_ALT_QUOTATION_END = 3, <span class="comment">/* Alternate quotation end */</span> <a name="l00055"></a>00055 ULOCDATA_DELIMITER_COUNT = 4 <a name="l00056"></a>00056 } <a class="code" href="ulocdata_8h.html#a2de6cb7db4865c46fd28fdd1d31fbfdf" title="The possible types of delimiters.">ULocaleDataDelimiterType</a>; <a name="l00057"></a>00057 <a name="l00066"></a>00066 <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <a class="code" href="ulocdata_8h.html#a11b0b31a90a3f88fe6cf285f549365ac" title="A locale data object.">ULocaleData</a>* <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> <a name="l00067"></a>00067 <a class="code" href="ulocdata_8h.html#aea69205230937829cc6c7bea014be082" title="Opens a locale data object for the given locale.">ulocdata_open</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *localeID, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> *status); <a name="l00068"></a>00068 <a name="l00075"></a>00075 <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> <a name="l00076"></a>00076 <a class="code" href="ulocdata_8h.html#a0a6caec3e82bfb44fac63f2001d212e3" title="Closes a locale data object.">ulocdata_close</a>(<a class="code" href="ulocdata_8h.html#a11b0b31a90a3f88fe6cf285f549365ac" title="A locale data object.">ULocaleData</a> *uld); <a name="l00077"></a>00077 <a name="l00078"></a>00078 <span class="preprocessor">#if U_SHOW_CPLUSPLUS_API</span> <a name="l00079"></a>00079 <span class="preprocessor"></span> <a name="l00080"></a>00080 <a class="code" href="uversion_8h.html#a7d9374e037299886d4192b763b4c5e8b" title="This is used to begin a declaration of a public ICU C++ API.">U_NAMESPACE_BEGIN</a> <a name="l00081"></a>00081 <a name="l00091"></a>00091 U_DEFINE_LOCAL_OPEN_POINTER(LocalULocaleDataPointer, <a class="code" href="ulocdata_8h.html#a11b0b31a90a3f88fe6cf285f549365ac" title="A locale data object.">ULocaleData</a>, <a class="code" href="ulocdata_8h.html#a0a6caec3e82bfb44fac63f2001d212e3" title="Closes a locale data object.">ulocdata_close</a>); <a name="l00092"></a>00092 <a name="l00093"></a>00093 <a class="code" href="uversion_8h.html#a3da1f00f3b02976ac53c014a3e4c0933" title="This is used to end a declaration of a public ICU C++ API.">U_NAMESPACE_END</a> <a name="l00094"></a>00094 <a name="l00095"></a>00095 <span class="preprocessor">#endif</span> <a name="l00096"></a>00096 <span class="preprocessor"></span> <a name="l00108"></a>00108 <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> <a name="l00109"></a>00109 <a class="code" href="ulocdata_8h.html#a981dc2b89f2762c0a4bfb915e6eed7c1" title="Sets the &quot;no Substitute&quot; attribute of the locale data object.">ulocdata_setNoSubstitute</a>(<a class="code" href="ulocdata_8h.html#a11b0b31a90a3f88fe6cf285f549365ac" title="A locale data object.">ULocaleData</a> *uld, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> setting); <a name="l00110"></a>00110 <a name="l00122"></a>00122 <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> <a name="l00123"></a>00123 <a class="code" href="ulocdata_8h.html#abd240a9bedda031ff8427adb1595d881" title="Retrieves the current &quot;no Substitute&quot; value of the locale data object.">ulocdata_getNoSubstitute</a>(<a class="code" href="ulocdata_8h.html#a11b0b31a90a3f88fe6cf285f549365ac" title="A locale data object.">ULocaleData</a> *uld); <a name="l00124"></a>00124 <a name="l00150"></a>00150 <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <a class="code" href="ucnv_8h.html#adce3fef7c15d7c78196bf977ac96ec9c">USet</a>* <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> <a name="l00151"></a>00151 <a class="code" href="ulocdata_8h.html#ae8930500be4571878f16aef1cf731cc1" title="Returns the set of exemplar characters for a locale.">ulocdata_getExemplarSet</a>(<a class="code" href="ulocdata_8h.html#a11b0b31a90a3f88fe6cf285f549365ac" title="A locale data object.">ULocaleData</a> *uld, <a class="code" href="ucnv_8h.html#adce3fef7c15d7c78196bf977ac96ec9c">USet</a> *fillIn, <a name="l00152"></a>00152 uint32_t options, <a class="code" href="ulocdata_8h.html#ab4e9cbcc23972244e20d4d6f599fc8d3" title="The possible types of exemplar character sets.">ULocaleDataExemplarSetType</a> extype, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> *status); <a name="l00153"></a>00153 <a name="l00167"></a>00167 <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> int32_t <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> <a name="l00168"></a>00168 <a class="code" href="ulocdata_8h.html#aed210881dffb9872c379b50c54681495" title="Returns one of the delimiter strings associated with a locale.">ulocdata_getDelimiter</a>(<a class="code" href="ulocdata_8h.html#a11b0b31a90a3f88fe6cf285f549365ac" title="A locale data object.">ULocaleData</a> *uld, <a class="code" href="ulocdata_8h.html#a2de6cb7db4865c46fd28fdd1d31fbfdf" title="The possible types of delimiters.">ULocaleDataDelimiterType</a> type, <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a> *result, int32_t resultLength, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> *status); <a name="l00169"></a>00169 <a name="l00174"></a><a class="code" href="ulocdata_8h.html#a4e0915410e83194840c04a67909c9690">00174</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="ulocdata_8h.html#a4e0915410e83194840c04a67909c9690" title="Enumeration for representing the measurement systems.">UMeasurementSystem</a> { <a name="l00175"></a>00175 UMS_SI, <a name="l00176"></a><a class="code" href="ulocdata_8h.html#a4e0915410e83194840c04a67909c9690a8c9afbdc89682e1e9f8da106a266b90b">00176</a> <a class="code" href="ulocdata_8h.html#a4e0915410e83194840c04a67909c9690a8c9afbdc89682e1e9f8da106a266b90b" title="Measurement system specified by SI otherwise known as Metric system.">UMS_US</a>, <a name="l00177"></a><a class="code" href="ulocdata_8h.html#a4e0915410e83194840c04a67909c9690ad1d78d4e783b7f47e43d3caf52870d5f">00177</a> <a class="code" href="ulocdata_8h.html#a4e0915410e83194840c04a67909c9690ad1d78d4e783b7f47e43d3caf52870d5f" title="Measurement system followed in the United States of America.">UMS_LIMIT</a> <a name="l00178"></a>00178 } <a class="code" href="ulocdata_8h.html#a4e0915410e83194840c04a67909c9690" title="Enumeration for representing the measurement systems.">UMeasurementSystem</a>; <a name="l00179"></a>00179 <a name="l00190"></a>00190 <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <a class="code" href="ulocdata_8h.html#a4e0915410e83194840c04a67909c9690" title="Enumeration for representing the measurement systems.">UMeasurementSystem</a> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> <a name="l00191"></a>00191 <a class="code" href="ulocdata_8h.html#a7abb69df19b1080b76fcc26ec0ea0978" title="Returns the measurement system used in the locale specified by the localeID.">ulocdata_getMeasurementSystem</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *localeID, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> *status); <a name="l00192"></a>00192 <a name="l00209"></a>00209 <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> <a name="l00210"></a>00210 <a class="code" href="ulocdata_8h.html#ac15cb36151248a1e0376380dea8bd722" title="Returns the element gives the normal business letter size, and customary units.">ulocdata_getPaperSize</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *localeID, int32_t *height, int32_t *width, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> *status); <a name="l00211"></a>00211 <a name="l00218"></a>00218 <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> <span class="keywordtype">void</span> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> <a name="l00219"></a>00219 <a class="code" href="ulocdata_8h.html#af50ca74fc2c0a249cd280f47c217dc88" title="Return the current CLDR version used by the library.">ulocdata_getCLDRVersion</a>(<a class="code" href="uversion_8h.html#a61caef96ba86d8e86a4031925ea44e94" title="The binary form of a version on ICU APIs is an array of 4 uint8_t.">UVersionInfo</a> versionArray, <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> *status); <a name="l00220"></a>00220 <a name="l00236"></a>00236 <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> int32_t <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> <a name="l00237"></a>00237 <a class="code" href="ulocdata_8h.html#af34138299c7b30537e410b284db88c8e" title="Returns locale display pattern associated with a locale.">ulocdata_getLocaleDisplayPattern</a>(<a class="code" href="ulocdata_8h.html#a11b0b31a90a3f88fe6cf285f549365ac" title="A locale data object.">ULocaleData</a> *uld, <a name="l00238"></a>00238 <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a> *pattern, <a name="l00239"></a>00239 int32_t patternCapacity, <a name="l00240"></a>00240 <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> *status); <a name="l00241"></a>00241 <a name="l00242"></a>00242 <a name="l00258"></a>00258 <a class="code" href="umachine_8h.html#af3e3799716eaa41e3f49c7bf18c62b98" title="This is used to declare a function as a stable public ICU C API.">U_STABLE</a> int32_t <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> <a name="l00259"></a>00259 <a class="code" href="ulocdata_8h.html#a277f2bcec4a598b3c55af715ea9c06b5" title="Returns locale separator associated with a locale.">ulocdata_getLocaleSeparator</a>(<a class="code" href="ulocdata_8h.html#a11b0b31a90a3f88fe6cf285f549365ac" title="A locale data object.">ULocaleData</a> *uld, <a name="l00260"></a>00260 <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a> *separator, <a name="l00261"></a>00261 int32_t separatorCapacity, <a name="l00262"></a>00262 <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> *status); <a name="l00263"></a>00263 <span class="preprocessor">#endif</span> </pre></div></div> <!--- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Defines</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address> </body> </html>