<!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.11"/> <title>ICU 58.2: uversion.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">ICU 58.2  <span id="projectnumber">58.2</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.11 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <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="namespaces.html"><span>Namespaces</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> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_b2f33c71d4aa5e7af42a1ca61ff5af1b.html">source</a></li><li class="navelem"><a class="el" href="dir_30087b5439e04c85304dbcf15650710b.html">common</a></li><li class="navelem"><a class="el" href="dir_8bf9c54ed6ca2fd1e2117fb037e4ad06.html">unicode</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#define-members">Macros</a> | <a href="#typedef-members">Typedefs</a> | <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">uversion.h File Reference</div> </div> </div><!--header--> <div class="contents"> <p>C API: API for accessing ICU version numbers. <a href="#details">More...</a></p> <div class="textblock"><code>#include "<a class="el" href="umachine_8h_source.html">unicode/umachine.h</a>"</code><br /> <code>#include "<a class="el" href="uvernum_8h_source.html">unicode/uvernum.h</a>"</code><br /> </div> <p><a href="uversion_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="define-members"></a> Macros</h2></td></tr> <tr class="memitem:a8855561449c5835245f330ce18b4f781"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="uversion_8h.html#a8855561449c5835245f330ce18b4f781">U_COPYRIGHT_STRING_LENGTH</a>   128</td></tr> <tr class="memdesc:a8855561449c5835245f330ce18b4f781"><td class="mdescLeft"> </td><td class="mdescRight">Maximum length of the copyright string. <a href="#a8855561449c5835245f330ce18b4f781">More...</a><br /></td></tr> <tr class="separator:a8855561449c5835245f330ce18b4f781"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acf6cc6b794656998aaaba2ab03f29baf"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="uversion_8h.html#acf6cc6b794656998aaaba2ab03f29baf">U_MAX_VERSION_LENGTH</a>   4</td></tr> <tr class="memdesc:acf6cc6b794656998aaaba2ab03f29baf"><td class="mdescLeft"> </td><td class="mdescRight">An ICU version consists of up to 4 numbers from 0..255. <a href="#acf6cc6b794656998aaaba2ab03f29baf">More...</a><br /></td></tr> <tr class="separator:acf6cc6b794656998aaaba2ab03f29baf"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7d52298e2afe0f592cf53023d20c31e5"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="uversion_8h.html#a7d52298e2afe0f592cf53023d20c31e5">U_VERSION_DELIMITER</a>   '.'</td></tr> <tr class="memdesc:a7d52298e2afe0f592cf53023d20c31e5"><td class="mdescLeft"> </td><td class="mdescRight">In a string, ICU version fields are delimited by dots. <a href="#a7d52298e2afe0f592cf53023d20c31e5">More...</a><br /></td></tr> <tr class="separator:a7d52298e2afe0f592cf53023d20c31e5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af204c175920d1e8b82b1042447194977"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="uversion_8h.html#af204c175920d1e8b82b1042447194977">U_MAX_VERSION_STRING_LENGTH</a>   20</td></tr> <tr class="memdesc:af204c175920d1e8b82b1042447194977"><td class="mdescLeft"> </td><td class="mdescRight">The maximum length of an ICU version string. <a href="#af204c175920d1e8b82b1042447194977">More...</a><br /></td></tr> <tr class="separator:af204c175920d1e8b82b1042447194977"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7d9374e037299886d4192b763b4c5e8b"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="uversion_8h.html#a7d9374e037299886d4192b763b4c5e8b">U_NAMESPACE_BEGIN</a></td></tr> <tr class="memdesc:a7d9374e037299886d4192b763b4c5e8b"><td class="mdescLeft"> </td><td class="mdescRight">This is used to begin a declaration of a public ICU C++ API. <a href="#a7d9374e037299886d4192b763b4c5e8b">More...</a><br /></td></tr> <tr class="separator:a7d9374e037299886d4192b763b4c5e8b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3da1f00f3b02976ac53c014a3e4c0933"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="uversion_8h.html#a3da1f00f3b02976ac53c014a3e4c0933">U_NAMESPACE_END</a></td></tr> <tr class="memdesc:a3da1f00f3b02976ac53c014a3e4c0933"><td class="mdescLeft"> </td><td class="mdescRight">This is used to end a declaration of a public ICU C++ API. <a href="#a3da1f00f3b02976ac53c014a3e4c0933">More...</a><br /></td></tr> <tr class="separator:a3da1f00f3b02976ac53c014a3e4c0933"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa0c93141ff345327f966fda6c3a2366f"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="uversion_8h.html#aa0c93141ff345327f966fda6c3a2366f">U_NAMESPACE_USE</a></td></tr> <tr class="memdesc:aa0c93141ff345327f966fda6c3a2366f"><td class="mdescLeft"> </td><td class="mdescRight">This is used to specify that the rest of the code uses the public ICU C++ API namespace. <a href="#aa0c93141ff345327f966fda6c3a2366f">More...</a><br /></td></tr> <tr class="separator:aa0c93141ff345327f966fda6c3a2366f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a398d471a6b925791d52b72d7bb700bdd"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="uversion_8h.html#a398d471a6b925791d52b72d7bb700bdd">U_NAMESPACE_QUALIFIER</a></td></tr> <tr class="memdesc:a398d471a6b925791d52b72d7bb700bdd"><td class="mdescLeft"> </td><td class="mdescRight">This is used to qualify that a function or class is part of the public ICU C++ API namespace. <a href="#a398d471a6b925791d52b72d7bb700bdd">More...</a><br /></td></tr> <tr class="separator:a398d471a6b925791d52b72d7bb700bdd"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a> Typedefs</h2></td></tr> <tr class="memitem:a61caef96ba86d8e86a4031925ea44e94"><td class="memItemLeft" align="right" valign="top">typedef uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="uversion_8h.html#a61caef96ba86d8e86a4031925ea44e94">UVersionInfo</a>[<a class="el" href="uversion_8h.html#acf6cc6b794656998aaaba2ab03f29baf">U_MAX_VERSION_LENGTH</a>]</td></tr> <tr class="memdesc:a61caef96ba86d8e86a4031925ea44e94"><td class="mdescLeft"> </td><td class="mdescRight">The binary form of a version on ICU APIs is an array of 4 uint8_t. <a href="#a61caef96ba86d8e86a4031925ea44e94">More...</a><br /></td></tr> <tr class="separator:a61caef96ba86d8e86a4031925ea44e94"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:a358c6faf63bf23f51fc5153351866c95"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="uversion_8h.html#a358c6faf63bf23f51fc5153351866c95">u_versionFromString</a> (<a class="el" href="uversion_8h.html#a61caef96ba86d8e86a4031925ea44e94">UVersionInfo</a> versionArray, const char *versionString)</td></tr> <tr class="memdesc:a358c6faf63bf23f51fc5153351866c95"><td class="mdescLeft"> </td><td class="mdescRight">Parse a string with dotted-decimal version information and fill in a UVersionInfo structure with the result. <a href="#a358c6faf63bf23f51fc5153351866c95">More...</a><br /></td></tr> <tr class="separator:a358c6faf63bf23f51fc5153351866c95"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afd8b49a4f07e049445f8891ae0aa6add"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="uversion_8h.html#afd8b49a4f07e049445f8891ae0aa6add">u_versionFromUString</a> (<a class="el" href="uversion_8h.html#a61caef96ba86d8e86a4031925ea44e94">UVersionInfo</a> versionArray, const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *versionString)</td></tr> <tr class="memdesc:afd8b49a4f07e049445f8891ae0aa6add"><td class="mdescLeft"> </td><td class="mdescRight">Parse a Unicode string with dotted-decimal version information and fill in a UVersionInfo structure with the result. <a href="#afd8b49a4f07e049445f8891ae0aa6add">More...</a><br /></td></tr> <tr class="separator:afd8b49a4f07e049445f8891ae0aa6add"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a380cb5fc925e9aec904c5052a5321182"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="uversion_8h.html#a380cb5fc925e9aec904c5052a5321182">u_versionToString</a> (const <a class="el" href="uversion_8h.html#a61caef96ba86d8e86a4031925ea44e94">UVersionInfo</a> versionArray, char *versionString)</td></tr> <tr class="memdesc:a380cb5fc925e9aec904c5052a5321182"><td class="mdescLeft"> </td><td class="mdescRight">Write a string with dotted-decimal version information according to the input UVersionInfo. <a href="#a380cb5fc925e9aec904c5052a5321182">More...</a><br /></td></tr> <tr class="separator:a380cb5fc925e9aec904c5052a5321182"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afcdc1acb19210765c232f93da732e22e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="uversion_8h.html#afcdc1acb19210765c232f93da732e22e">u_getVersion</a> (<a class="el" href="uversion_8h.html#a61caef96ba86d8e86a4031925ea44e94">UVersionInfo</a> versionArray)</td></tr> <tr class="memdesc:afcdc1acb19210765c232f93da732e22e"><td class="mdescLeft"> </td><td class="mdescRight">Gets the ICU release version. <a href="#afcdc1acb19210765c232f93da732e22e">More...</a><br /></td></tr> <tr class="separator:afcdc1acb19210765c232f93da732e22e"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>C API: API for accessing ICU version numbers. </p> <p>Definition in file <a class="el" href="uversion_8h_source.html">uversion.h</a>.</p> </div><h2 class="groupheader">Macro Definition Documentation</h2> <a class="anchor" id="a8855561449c5835245f330ce18b4f781"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define U_COPYRIGHT_STRING_LENGTH   128</td> </tr> </table> </div><div class="memdoc"> <p>Maximum length of the copyright string. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable003005">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> <p>Definition at line <a class="el" href="uversion_8h_source.html#l00038">38</a> of file <a class="el" href="uversion_8h_source.html">uversion.h</a>.</p> </div> </div> <a class="anchor" id="acf6cc6b794656998aaaba2ab03f29baf"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define U_MAX_VERSION_LENGTH   4</td> </tr> </table> </div><div class="memdoc"> <p>An ICU version consists of up to 4 numbers from 0..255. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable003006">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> <p>Definition at line <a class="el" href="uversion_8h_source.html#l00043">43</a> of file <a class="el" href="uversion_8h_source.html">uversion.h</a>.</p> </div> </div> <a class="anchor" id="af204c175920d1e8b82b1042447194977"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define U_MAX_VERSION_STRING_LENGTH   20</td> </tr> </table> </div><div class="memdoc"> <p>The maximum length of an ICU version string. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable003008">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> <p>Definition at line <a class="el" href="uversion_8h_source.html#l00053">53</a> of file <a class="el" href="uversion_8h_source.html">uversion.h</a>.</p> </div> </div> <a class="anchor" id="a7d9374e037299886d4192b763b4c5e8b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define U_NAMESPACE_BEGIN</td> </tr> </table> </div><div class="memdoc"> <p>This is used to begin a declaration of a public ICU C++ API. </p> <p>When not compiling for C++, it does nothing. When compiling for C++, it begins an extern "C++" linkage block (to protect against cases in which an external client includes ICU header files inside an extern "C" linkage block).</p> <p>It also begins a versioned-ICU-namespace block. </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable003010">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> <p>Definition at line <a class="el" href="uversion_8h_source.html#l00131">131</a> of file <a class="el" href="uversion_8h_source.html">uversion.h</a>.</p> </div> </div> <a class="anchor" id="a3da1f00f3b02976ac53c014a3e4c0933"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define U_NAMESPACE_END</td> </tr> </table> </div><div class="memdoc"> <p>This is used to end a declaration of a public ICU C++ API. </p> <p>When not compiling for C++, it does nothing. When compiling for C++, it ends the extern "C++" block begun by U_NAMESPACE_BEGIN.</p> <p>It also ends the versioned-ICU-namespace block begun by U_NAMESPACE_BEGIN. </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable003011">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> <p>Definition at line <a class="el" href="uversion_8h_source.html#l00132">132</a> of file <a class="el" href="uversion_8h_source.html">uversion.h</a>.</p> <p>Referenced by <a class="el" href="bytestream_8h_source.html#l00247">icu::StringByteSink< StringClass >::Append()</a>, <a class="el" href="rep_8h_source.html#l00255">icu::Replaceable::char32At()</a>, <a class="el" href="ucharstriebuilder_8h_source.html#l00124">icu::UCharsTrieBuilder::clear()</a>, <a class="el" href="scientificnumberformatter_8h_source.html#l00120">icu::ScientificNumberFormatter::clone()</a>, <a class="el" href="normlzr_8h_source.html#l00795">icu::Normalizer::compare()</a>, <a class="el" href="locdspnm_8h_source.html#l00198">icu::LocaleDisplayNames::createInstance()</a>, <a class="el" href="normalizer2_8h_source.html#l00457">icu::FilteredNormalizer2::FilteredNormalizer2()</a>, <a class="el" href="fmtable_8h_source.html#l00753">icu::Formattable::fromUFormattable()</a>, <a class="el" href="smpdtfmt_8h_source.html#l01610">icu::SimpleDateFormat::get2DigitYearStart()</a>, <a class="el" href="msgfmt_8h_source.html#l00480">icu::MessageFormat::getApostropheMode()</a>, <a class="el" href="sortkey_8h_source.html#l00330">icu::CollationKey::getByteArray()</a>, <a class="el" href="usetiter_8h_source.html#l00313">icu::UnicodeSetIterator::getCodepointEnd()</a>, <a class="el" href="dcfmtsym_8h_source.html#l00495">icu::DecimalFormatSymbols::getCurrencyPattern()</a>, <a class="el" href="currunit_8h_source.html#l00105">icu::CurrencyUnit::getISOCurrency()</a>, <a class="el" href="curramt_8h_source.html#l00125">icu::CurrencyAmount::getISOCurrency()</a>, <a class="el" href="ParagraphLayout_8h_source.html#l00722">icu::ParagraphLayout::VisualRun::getLeading()</a>, <a class="el" href="chariter_8h_source.html#l00719">icu::CharacterIterator::getLength()</a>, <a class="el" href="simpletz_8h_source.html#l00921">icu::SimpleTimeZone::getOffset()</a>, <a class="el" href="simpleformatter_8h_source.html#l00262">icu::SimpleFormatter::getTextWithNoArguments()</a>, <a class="el" href="measure_8h_source.html#l00154">icu::Measure::getUnit()</a>, <a class="el" href="bytestrie_8h_source.html#l00316">icu::BytesTrie::Iterator::getValue()</a>, <a class="el" href="ucharstrie_8h_source.html#l00330">icu::UCharsTrie::Iterator::getValue()</a>, <a class="el" href="errorcode_8h_source.html#l00134">icu::ErrorCode::handleFailure()</a>, <a class="el" href="messagepattern_8h_source.html#l00813">icu::MessagePattern::Part::hashCode()</a>, <a class="el" href="locid_8h_source.html#l00808">icu::Locale::isBogus()</a>, <a class="el" href="brkiter_8h_source.html#l00653">icu::BreakIterator::isBufferClone()</a>, <a class="el" href="coleitr_8h_source.html#l00397">icu::CollationElementIterator::isIgnorable()</a>, <a class="el" href="numfmt_8h_source.html#l01170">icu::NumberFormat::isLenient()</a>, <a class="el" href="rbnf_8h_source.html#l01061">icu::RuleBasedNumberFormat::isLenient()</a>, <a class="el" href="idna_8h_source.html#l00301">icu::IDNAInfo::isTransitionalDifferent()</a>, <a class="el" href="measunit_8h_source.html#l00086">icu::MeasureUnit::operator!=()</a>, <a class="el" href="fpositer_8h_source.html#l00092">icu::FieldPositionIterator::operator!=()</a>, <a class="el" href="currpinf_8h_source.html#l00254">icu::CurrencyPluralInfo::operator!=()</a>, <a class="el" href="tmutamt_8h_source.html#l00160">icu::TimeUnitAmount::operator!=()</a>, <a class="el" href="dtintrv_8h_source.html#l00153">icu::DateInterval::operator!=()</a>, <a class="el" href="format_8h_source.html#l00121">icu::Format::operator!=()</a>, <a class="el" href="tmutfmt_8h_source.html#l00238">icu::TimeUnitFormat::operator!=()</a>, <a class="el" href="fieldpos_8h_source.html#l00284">icu::FieldPosition::operator!=()</a>, <a class="el" href="stringpiece_8h_source.html#l00220">icu::operator!=()</a>, <a class="el" href="dtitvinf_8h_source.html#l00512">icu::DateIntervalInfo::operator!=()</a>, <a class="el" href="search_8h_source.html#l00568">icu::SearchIterator::operator!=()</a>, <a class="el" href="rbbi_8h_source.html#l00726">icu::RuleBasedBreakIterator::operator!=()</a>, <a class="el" href="dtitvfmt_8h_source.html#l01037">icu::DateIntervalFormat::operator!=()</a>, <a class="el" href="plurrule_8h_source.html#l00476">icu::PluralRules::operator!=()</a>, <a class="el" href="translit_8h_source.html#l01333">icu::Transliterator::pointerToken()</a>, <a class="el" href="tblcoll_8h_source.html#l00784">icu::RuleBasedCollator::rbcFromUCollator()</a>, <a class="el" href="unistr_8h_source.html#l04651">icu::UnicodeString::reverse()</a>, <a class="el" href="parsepos_8h_source.html#l00226">icu::ParsePosition::setErrorIndex()</a>, <a class="el" href="timezone_8h_source.html#l00956">icu::TimeZone::setID()</a>, <a class="el" href="uniset_8h_source.html#l01703">icu::UnicodeSet::spanBack()</a>, <a class="el" href="appendable_8h_source.html#l00160">icu::UnicodeStringAppendable::UnicodeStringAppendable()</a>, <a class="el" href="ures_8h_source.html#l00879">icu::ures_getUnicodeStringByKey()</a>, <a class="el" href="RunArrays_8h_source.html#l00671">icu::ValueRuns::ValueRuns()</a>, and <a class="el" href="calendar_8h_source.html#l02541">icu::Calendar::weekNumber()</a>.</p> </div> </div> <a class="anchor" id="a398d471a6b925791d52b72d7bb700bdd"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define U_NAMESPACE_QUALIFIER</td> </tr> </table> </div><div class="memdoc"> <p>This is used to qualify that a function or class is part of the public ICU C++ API namespace. </p> <p>This macro is unnecessary since ICU 49 requires namespace support. You can just use "icu::" instead. </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable003013">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> <p>Definition at line <a class="el" href="uversion_8h_source.html#l00134">134</a> of file <a class="el" href="uversion_8h_source.html">uversion.h</a>.</p> </div> </div> <a class="anchor" id="aa0c93141ff345327f966fda6c3a2366f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define U_NAMESPACE_USE</td> </tr> </table> </div><div class="memdoc"> <p>This is used to specify that the rest of the code uses the public ICU C++ API namespace. </p> <p>This is invoked by default; we recommend that you turn it off: See the "Recommended Build Options" section of the ICU4C readme (<a href="http://source.icu-project.org/repos/icu/icu/trunk/readme.html#RecBuild">http://source.icu-project.org/repos/icu/icu/trunk/readme.html#RecBuild</a>) </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable003012">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> <p>Definition at line <a class="el" href="uversion_8h_source.html#l00133">133</a> of file <a class="el" href="uversion_8h_source.html">uversion.h</a>.</p> </div> </div> <a class="anchor" id="a7d52298e2afe0f592cf53023d20c31e5"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define U_VERSION_DELIMITER   '.'</td> </tr> </table> </div><div class="memdoc"> <p>In a string, ICU version fields are delimited by dots. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable003007">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> <p>Definition at line <a class="el" href="uversion_8h_source.html#l00048">48</a> of file <a class="el" href="uversion_8h_source.html">uversion.h</a>.</p> </div> </div> <h2 class="groupheader">Typedef Documentation</h2> <a class="anchor" id="a61caef96ba86d8e86a4031925ea44e94"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef uint8_t UVersionInfo[<a class="el" href="uversion_8h.html#acf6cc6b794656998aaaba2ab03f29baf">U_MAX_VERSION_LENGTH</a>]</td> </tr> </table> </div><div class="memdoc"> <p>The binary form of a version on ICU APIs is an array of 4 uint8_t. </p> <p>To compare two versions, use memcmp(v1,v2,sizeof(UVersionInfo)). </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable003009">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> <p>Definition at line <a class="el" href="uversion_8h_source.html#l00059">59</a> of file <a class="el" href="uversion_8h_source.html">uversion.h</a>.</p> </div> </div> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="afcdc1acb19210765c232f93da732e22e"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void u_getVersion </td> <td>(</td> <td class="paramtype"><a class="el" href="uversion_8h.html#a61caef96ba86d8e86a4031925ea44e94">UVersionInfo</a> </td> <td class="paramname"><em>versionArray</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Gets the ICU release version. </p> <p>The version array stores the version information for ICU. For example, release "1.3.31.2" is then represented as 0x01031F02. Definition of this function lives in putil.c</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">versionArray</td><td>the version # information, the result will be filled in </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable003017">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <a class="anchor" id="a358c6faf63bf23f51fc5153351866c95"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void u_versionFromString </td> <td>(</td> <td class="paramtype"><a class="el" href="uversion_8h.html#a61caef96ba86d8e86a4031925ea44e94">UVersionInfo</a> </td> <td class="paramname"><em>versionArray</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"><em>versionString</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Parse a string with dotted-decimal version information and fill in a UVersionInfo structure with the result. </p> <p>Definition of this function lives in putil.c</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">versionArray</td><td>The destination structure for the version information. </td></tr> <tr><td class="paramname">versionString</td><td>A string with dotted-decimal version information, with up to four non-negative number fields with values of up to 255 each. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable003014">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> </div> </div> <a class="anchor" id="afd8b49a4f07e049445f8891ae0aa6add"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void u_versionFromUString </td> <td>(</td> <td class="paramtype"><a class="el" href="uversion_8h.html#a61caef96ba86d8e86a4031925ea44e94">UVersionInfo</a> </td> <td class="paramname"><em>versionArray</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> * </td> <td class="paramname"><em>versionString</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Parse a Unicode string with dotted-decimal version information and fill in a UVersionInfo structure with the result. </p> <p>Definition of this function lives in putil.c</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">versionArray</td><td>The destination structure for the version information. </td></tr> <tr><td class="paramname">versionString</td><td>A Unicode string with dotted-decimal version information, with up to four non-negative number fields with values of up to 255 each. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable003015">Stable:</a></b></dt><dd>ICU 4.2 </dd></dl> </div> </div> <a class="anchor" id="a380cb5fc925e9aec904c5052a5321182"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void u_versionToString </td> <td>(</td> <td class="paramtype">const <a class="el" href="uversion_8h.html#a61caef96ba86d8e86a4031925ea44e94">UVersionInfo</a> </td> <td class="paramname"><em>versionArray</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char * </td> <td class="paramname"><em>versionString</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Write a string with dotted-decimal version information according to the input UVersionInfo. </p> <p>Definition of this function lives in putil.c</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">versionArray</td><td>The version information to be written as a string. </td></tr> <tr><td class="paramname">versionString</td><td>A string buffer that will be filled in with a string corresponding to the numeric version information in versionArray. The buffer size must be at least U_MAX_VERSION_STRING_LENGTH. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable003016">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> </div> </div> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.11 </small></address> </body> </html>