Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > f51238514e2abe817779ad2fe01b0759 > files > 86

icu-doc-4.4-2.1mdv2010.2.i586.rpm

<!-- 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: DateIntervalInfo Class Reference</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.1 -->
<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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><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="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&nbsp;Structure&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>DateIntervalInfo Class Reference</h1><!-- doxytag: class="DateIntervalInfo" --><!-- doxytag: inherits="UObject" -->
<p><a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval...">DateIntervalInfo</a> is a public class for encapsulating localizable date time interval patterns.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="dtitvinf_8h_source.html">dtitvinf.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for DateIntervalInfo:</div>
<div class="dynsection">
 <div class="center">
  <img src="classDateIntervalInfo.gif" usemap="#DateIntervalInfo_map" alt=""/>
  <map id="DateIntervalInfo_map" name="DateIntervalInfo_map">
<area href="classUObject.html" alt="UObject" shape="rect" coords="0,56,101,80"/>
<area href="classUMemory.html" alt="UMemory" shape="rect" coords="0,0,101,24"/>
</map>
 </div>
</div>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom">{ <b>kMaxIntervalPatternIndex</b> =  kIPI_MAX_INDEX
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Max index for stored interval patterns. </p>
 <a href="classDateIntervalInfo.html#a63a587f73c2b266e75c41ae7657bd315">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalInfo.html#ae87f68112765188129147222d9383b78">DateIntervalInfo</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor.  <a href="#ae87f68112765188129147222d9383b78"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalInfo.html#a10f7a11483222b40d3731869dcee09e7">DateIntervalInfo</a> (const <a class="el" href="classLocale.html">Locale</a> &amp;locale, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval...">DateIntervalInfo</a> for the given locale,.  <a href="#a10f7a11483222b40d3731869dcee09e7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalInfo.html#aa4f36faeb7c5de30a0fb6ac5a5399e4e">DateIntervalInfo</a> (const <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor.  <a href="#aa4f36faeb7c5de30a0fb6ac5a5399e4e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalInfo.html#ad63f6180e37eec9fb09fac3d3cef5a37">operator=</a> (const <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assignment operator.  <a href="#ad63f6180e37eec9fb09fac3d3cef5a37"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalInfo.html#addfc7c0a258f9ecd3b265dfca9b4f5ee">clone</a> (void) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Clone this object polymorphically.  <a href="#addfc7c0a258f9ecd3b265dfca9b4f5ee"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalInfo.html#a9630b09cae2d2cc7dcf16e9c506e252b">~DateIntervalInfo</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#a9630b09cae2d2cc7dcf16e9c506e252b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalInfo.html#a6e466e574e1de3819b88c3ecb3e95823">operator==</a> (const <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> &amp;other) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return true if another object is semantically equal to this one.  <a href="#a6e466e574e1de3819b88c3ecb3e95823"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalInfo.html#af94119951ed7cc39ff2f85434d1ce717">operator!=</a> (const <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> &amp;other) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return true if another object is semantically unequal to this one.  <a href="#af94119951ed7cc39ff2f85434d1ce717"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalInfo.html#a4029a4e61d6a507f6486b5db36c82faa">setIntervalPattern</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;skeleton, <a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> lrgDiffCalUnit, const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;intervalPattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provides a way for client to build interval patterns.  <a href="#a4029a4e61d6a507f6486b5db36c82faa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalInfo.html#a053256243be8d0ae95f1af7976912831">getIntervalPattern</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;skeleton, <a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a> field, <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;result, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the interval pattern given skeleton and the largest different calendar field.  <a href="#a053256243be8d0ae95f1af7976912831"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalInfo.html#a5acf0d6cb618d16c8db47b9abb5e81e4">getFallbackIntervalPattern</a> (<a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;result) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the fallback interval pattern.  <a href="#a5acf0d6cb618d16c8db47b9abb5e81e4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalInfo.html#a9c185c5f2ce2cbdde470656ebeb78963">setFallbackIntervalPattern</a> (const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;fallbackPattern, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;status)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Re-set the fallback interval pattern.  <a href="#a9c185c5f2ce2cbdde470656ebeb78963"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalInfo.html#a659cb97a28e04827678ae318dc541730">getDefaultOrder</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get default order -- whether the first date in pattern is later date or not.  <a href="#a659cb97a28e04827678ae318dc541730"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalInfo.html#a5eb7f85cbba5dca2294730ba0e949383">getDynamicClassID</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for the actual class.  <a href="#a5eb7f85cbba5dca2294730ba0e949383"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalInfo.html#aec3f28eb4e1ebf686ea77a60a6749034">getStaticClassID</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for this class.  <a href="#aec3f28eb4e1ebf686ea77a60a6749034"></a><br/></td></tr>
<tr><td colspan="2"><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateIntervalInfo.html#a9acb9821e8fddc1337e8f91705b002e2">DateIntervalFormat</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent...">DateIntervalFormat</a> will need access to getBestSkeleton(), parseSkeleton(), enum IntervalPatternIndex, and calendarFieldToPatternIndex().  <a href="#a9acb9821e8fddc1337e8f91705b002e2"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p><a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval...">DateIntervalInfo</a> is a public class for encapsulating localizable date time interval patterns. </p>
<p>It is used by <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent...">DateIntervalFormat</a>.</p>
<p>For most users, ordinary use of <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent...">DateIntervalFormat</a> does not need to create <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval...">DateIntervalInfo</a> object directly. <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent...">DateIntervalFormat</a> will take care of it when creating a date interval formatter when user pass in skeleton and locale.</p>
<p>For power users, who want to create their own date interval patterns, or want to re-set date interval patterns, they could do so by directly creating <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval...">DateIntervalInfo</a> and manupulating it.</p>
<p>Logically, the interval patterns are mappings from (skeleton, the_largest_different_calendar_field) to (date_interval_pattern).</p>
<p>A skeleton </p>
<ol>
<li>
only keeps the field pattern letter and ignores all other parts in a pattern, such as space, punctuations, and string literals. </li>
<li>
hides the order of fields. </li>
<li>
<p class="startli">might hide a field's pattern letter length.</p>
<p>For those non-digit calendar fields, the pattern letter length is important, such as MMM, MMMM, and MMMMM; EEE and EEEE, and the field's pattern letter length is honored.</p>
<p class="endli">For the digit calendar fields, such as M or MM, d or dd, yy or yyyy, the field pattern length is ignored and the best match, which is defined in date time patterns, will be returned without honor the field pattern letter length in skeleton. </p>
</li>
</ol>
<p>The calendar fields we support for interval formatting are: year, month, date, day-of-week, am-pm, hour, hour-of-day, and minute. Those calendar fields can be defined in the following order: year &gt; month &gt; date &gt; am-pm &gt; hour &gt; minute</p>
<p>The largest different calendar fields between 2 calendars is the first different calendar field in above order.</p>
<p>For example: the largest different calendar fields between "Jan 10, 2007" and "Feb 20, 2008" is year.</p>
<p>There is a set of pre-defined static skeleton strings. There are pre-defined interval patterns for those pre-defined skeletons in locales' resource files. For example, for a skeleton UDAT_YEAR_ABBR_MONTH_DAY, which is "yMMMd", in en_US, if the largest different calendar field between date1 and date2 is "year", the date interval pattern is "MMM d, yyyy - MMM d, yyyy", such as "Jan 10, 2007 - Jan 10, 2008". If the largest different calendar field between date1 and date2 is "month", the date interval pattern is "MMM d - MMM d, yyyy", such as "Jan 10 - Feb 10, 2007". If the largest different calendar field between date1 and date2 is "day", the date interval pattern is "MMM d-d, yyyy", such as "Jan 10-20, 2007".</p>
<p>For date skeleton, the interval patterns when year, or month, or date is different are defined in resource files. For time skeleton, the interval patterns when am/pm, or hour, or minute is different are defined in resource files.</p>
<p>There are 2 dates in interval pattern. For most locales, the first date in an interval pattern is the earlier date. There might be a locale in which the first date in an interval pattern is the later date. We use fallback format for the default order for the locale. For example, if the fallback format is "{0} - {1}", it means the first date in the interval pattern for this locale is earlier date. If the fallback format is "{1} - {0}", it means the first date is the later date. For a particular interval pattern, the default order can be overriden by prefixing "latestFirst:" or "earliestFirst:" to the interval pattern. For example, if the fallback format is "{0}-{1}", but for skeleton "yMMMd", the interval pattern when day is different is "latestFirst:d-d MMM yy", it means by default, the first date in interval pattern is the earlier date. But for skeleton "yMMMd", when day is different, the first date in "d-d MMM yy" is the later date.</p>
<p>The recommended way to create a <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent...">DateIntervalFormat</a> object is to pass in the locale. By using a <a class="el" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a> parameter, the <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent...">DateIntervalFormat</a> object is initialized with the pre-defined interval patterns for a given or default locale. </p>
<p>Users can also create <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent...">DateIntervalFormat</a> object by supplying their own interval patterns. It provides flexibility for power users.</p>
<p>After a <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval...">DateIntervalInfo</a> object is created, clients may modify the interval patterns using setIntervalPattern function as so desired. Currently, users can only set interval patterns when the following calendar fields are different: ERA, YEAR, MONTH, DATE, DAY_OF_MONTH, DAY_OF_WEEK, AM_PM, HOUR, HOUR_OF_DAY, and MINUTE. Interval patterns when other calendar fields are different is not supported. </p>
<p><a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval...">DateIntervalInfo</a> objects are cloneable. When clients obtain a <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval...">DateIntervalInfo</a> object, they can feel free to modify it as necessary. </p>
<p><a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval...">DateIntervalInfo</a> are not expected to be subclassed. Data for a calendar is loaded out of resource bundles. To ICU 4.0, date interval patterns are only supported in Gregorian calendar. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002562">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

<p>Definition at line <a class="el" href="dtitvinf_8h_source.html#l00158">158</a> of file <a class="el" href="dtitvinf_8h_source.html">dtitvinf.h</a>.</p>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a63a587f73c2b266e75c41ae7657bd315"></a><!-- doxytag: member="DateIntervalInfo::@22" ref="a63a587f73c2b266e75c41ae7657bd315" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">anonymous enum</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Max index for stored interval patterns. </p>
<dl class="internal"><dt><b>Internal:</b></dt><dd>Do not use. This API is for internal use only. ICU 4.4 </dd></dl>

<p>Definition at line <a class="el" href="dtitvinf_8h_source.html#l00368">368</a> of file <a class="el" href="dtitvinf_8h_source.html">dtitvinf.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ae87f68112765188129147222d9383b78"></a><!-- doxytag: member="DateIntervalInfo::DateIntervalInfo" ref="ae87f68112765188129147222d9383b78" args="(UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DateIntervalInfo::DateIntervalInfo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Default constructor. </p>
<p>It does not initialize any interval patterns except that it initialize default fall-back pattern as "{0} - {1}", which can be reset by <a class="el" href="classDateIntervalInfo.html#a9c185c5f2ce2cbdde470656ebeb78963" title="Re-set the fallback interval pattern.">setFallbackIntervalPattern()</a>. It should be followed by <a class="el" href="classDateIntervalInfo.html#a9c185c5f2ce2cbdde470656ebeb78963" title="Re-set the fallback interval pattern.">setFallbackIntervalPattern()</a> and <a class="el" href="classDateIntervalInfo.html#a4029a4e61d6a507f6486b5db36c82faa" title="Provides a way for client to build interval patterns.">setIntervalPattern()</a>, and is recommended to be used only for power users who wants to create their own interval patterns and use them to create date interval formatter. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>output param set to success/failure code on exit </td></tr>
  </table>
  </dd>
</dl>
<dl class="internal"><dt><b><a class="el" href="internal.html#_internal000286">Internal:</a></b></dt><dd>Do not use. This API is for internal use only. ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a10f7a11483222b40d3731869dcee09e7"></a><!-- doxytag: member="DateIntervalInfo::DateIntervalInfo" ref="a10f7a11483222b40d3731869dcee09e7" args="(const Locale &amp;locale, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DateIntervalInfo::DateIntervalInfo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classLocale.html">Locale</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>locale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval...">DateIntervalInfo</a> for the given locale,. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>locale</em>&nbsp;</td><td>the interval patterns are loaded from the Gregorian calendar data in this locale. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>output param set to success/failure code on exit </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002563">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aa4f36faeb7c5de30a0fb6ac5a5399e4e"></a><!-- doxytag: member="DateIntervalInfo::DateIntervalInfo" ref="aa4f36faeb7c5de30a0fb6ac5a5399e4e" args="(const DateIntervalInfo &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DateIntervalInfo::DateIntervalInfo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> &amp;&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Copy constructor. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002564">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a9630b09cae2d2cc7dcf16e9c506e252b"></a><!-- doxytag: member="DateIntervalInfo::~DateIntervalInfo" ref="a9630b09cae2d2cc7dcf16e9c506e252b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual DateIntervalInfo::~DateIntervalInfo </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>
<p>It is virtual to be safe, but it is not designed to be subclassed. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002567">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="addfc7c0a258f9ecd3b265dfca9b4f5ee"></a><!-- doxytag: member="DateIntervalInfo::clone" ref="addfc7c0a258f9ecd3b265dfca9b4f5ee" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a>* DateIntervalInfo::clone </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Clone this object polymorphically. </p>
<p>The caller owns the result and should delete it when done. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>a copy of the object </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002566">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a659cb97a28e04827678ae318dc541730"></a><!-- doxytag: member="DateIntervalInfo::getDefaultOrder" ref="a659cb97a28e04827678ae318dc541730" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> DateIntervalInfo::getDefaultOrder </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get default order -- whether the first date in pattern is later date or not. </p>
<p>return default date ordering in interval pattern. TRUE if the first date in pattern is later date, FALSE otherwise. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002574">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a5eb7f85cbba5dca2294730ba0e949383"></a><!-- doxytag: member="DateIntervalInfo::getDynamicClassID" ref="a5eb7f85cbba5dca2294730ba0e949383" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> DateIntervalInfo::getDynamicClassID </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>ICU "poor man's RTTI", returns a UClassID for the actual class. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002575">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

<p>Implements <a class="el" href="classUObject.html#a9b1acc95efd89cb86ec31f2dc947a262">UObject</a>.</p>

</div>
</div>
<a class="anchor" id="a5acf0d6cb618d16c8db47b9abb5e81e4"></a><!-- doxytag: member="DateIntervalInfo::getFallbackIntervalPattern" ref="a5acf0d6cb618d16c8db47b9abb5e81e4" args="(UnicodeString &amp;result) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DateIntervalInfo::getFallbackIntervalPattern </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>result</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the fallback interval pattern. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>output param to receive the pattern </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to 'result' </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002572">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a053256243be8d0ae95f1af7976912831"></a><!-- doxytag: member="DateIntervalInfo::getIntervalPattern" ref="a053256243be8d0ae95f1af7976912831" args="(const UnicodeString &amp;skeleton, UCalendarDateFields field, UnicodeString &amp;result, UErrorCode &amp;status) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>&amp; DateIntervalInfo::getIntervalPattern </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>skeleton</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>field</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the interval pattern given skeleton and the largest different calendar field. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>skeleton</em>&nbsp;</td><td>the skeleton </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>field</em>&nbsp;</td><td>the largest different calendar field </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>result</em>&nbsp;</td><td>output param to receive the pattern </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>output param set to success/failure code on exit </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a reference to 'result' </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002571">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="aec3f28eb4e1ebf686ea77a60a6749034"></a><!-- doxytag: member="DateIntervalInfo::getStaticClassID" ref="aec3f28eb4e1ebf686ea77a60a6749034" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> DateIntervalInfo::getStaticClassID </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>ICU "poor man's RTTI", returns a UClassID for this class. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002576">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="af94119951ed7cc39ff2f85434d1ce717"></a><!-- doxytag: member="DateIntervalInfo::operator!=" ref="af94119951ed7cc39ff2f85434d1ce717" args="(const DateIntervalInfo &amp;other) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> DateIntervalInfo::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>other</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return true if another object is semantically unequal to this one. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>other</em>&nbsp;</td><td>the <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval...">DateIntervalInfo</a> object to be compared with. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if other is semantically unequal to this. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002569">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

<p>Definition at line <a class="el" href="dtitvinf_8h_source.html#l00516">516</a> of file <a class="el" href="dtitvinf_8h_source.html">dtitvinf.h</a>.</p>

<p>References <a class="el" href="classDateIntervalInfo.html#a6e466e574e1de3819b88c3ecb3e95823">operator==()</a>.</p>

</div>
</div>
<a class="anchor" id="ad63f6180e37eec9fb09fac3d3cef5a37"></a><!-- doxytag: member="DateIntervalInfo::operator=" ref="ad63f6180e37eec9fb09fac3d3cef5a37" args="(const DateIntervalInfo &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a>&amp; DateIntervalInfo::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> &amp;&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Assignment operator. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002565">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a6e466e574e1de3819b88c3ecb3e95823"></a><!-- doxytag: member="DateIntervalInfo::operator==" ref="a6e466e574e1de3819b88c3ecb3e95823" args="(const DateIntervalInfo &amp;other) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> DateIntervalInfo::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classDateIntervalInfo.html">DateIntervalInfo</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>other</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return true if another object is semantically equal to this one. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>other</em>&nbsp;</td><td>the <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval...">DateIntervalInfo</a> object to be compared with. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if other is semantically equal to this. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002568">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

<p>Referenced by <a class="el" href="dtitvinf_8h_source.html#l00516">operator!=()</a>.</p>

</div>
</div>
<a class="anchor" id="a9c185c5f2ce2cbdde470656ebeb78963"></a><!-- doxytag: member="DateIntervalInfo::setFallbackIntervalPattern" ref="a9c185c5f2ce2cbdde470656ebeb78963" args="(const UnicodeString &amp;fallbackPattern, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DateIntervalInfo::setFallbackIntervalPattern </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>fallbackPattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Re-set the fallback interval pattern. </p>
<p>In construction, default fallback pattern is set as "{0} - {1}". And constructor taking locale as parameter will set the fallback pattern as what defined in the locale resource file.</p>
<p>This method provides a way for user to replace the fallback pattern.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>fallbackPattern</em>&nbsp;</td><td>fall-back interval pattern. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>output param set to success/failure code on exit </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002573">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<a class="anchor" id="a4029a4e61d6a507f6486b5db36c82faa"></a><!-- doxytag: member="DateIntervalInfo::setIntervalPattern" ref="a4029a4e61d6a507f6486b5db36c82faa" args="(const UnicodeString &amp;skeleton, UCalendarDateFields lrgDiffCalUnit, const UnicodeString &amp;intervalPattern, UErrorCode &amp;status)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DateIntervalInfo::setIntervalPattern </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>skeleton</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912">UCalendarDateFields</a>&nbsp;</td>
          <td class="paramname"> <em>lrgDiffCalUnit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classUnicodeString.html">UnicodeString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>intervalPattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>status</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides a way for client to build interval patterns. </p>
<p>User could construct <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval...">DateIntervalInfo</a> by providing a list of skeletons and their patterns. </p>
<p>For example: </p>
<pre>
 UErrorCode status = U_ZERO_ERROR;
 <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval...">DateIntervalInfo</a> dIntervalInfo = new <a class="el" href="classDateIntervalInfo.html#ae87f68112765188129147222d9383b78" title="Default constructor.">DateIntervalInfo()</a>;
 dIntervalInfo-&gt;setFallbackIntervalPattern("{0} ~ {1}");
 dIntervalInfo-&gt;setIntervalPattern("yMd", UCAL_YEAR, "'from' yyyy-M-d 'to' yyyy-M-d", status); 
 dIntervalInfo-&gt;setIntervalPattern("yMMMd", UCAL_MONTH, "'from' yyyy MMM d 'to' MMM d", status);
 dIntervalInfo-&gt;setIntervalPattern("yMMMd", UCAL_DAY, "yyyy MMM d-d", status, status);
 </pre><p>Restriction: Currently, users can only set interval patterns when the following calendar fields are different: ERA, YEAR, MONTH, DATE, DAY_OF_MONTH, DAY_OF_WEEK, AM_PM, HOUR, HOUR_OF_DAY, and MINUTE. Interval patterns when other calendar fields are different are not supported.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>skeleton</em>&nbsp;</td><td>the skeleton on which interval pattern based </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>lrgDiffCalUnit</em>&nbsp;</td><td>the largest different calendar unit. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>intervalPattern</em>&nbsp;</td><td>the interval pattern on the largest different calendar unit. For example, if lrgDiffCalUnit is "year", the interval pattern for en_US when year is different could be "'from' yyyy 'to' yyyy". </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>status</em>&nbsp;</td><td>output param set to success/failure code on exit </td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable002570">Stable:</a></b></dt><dd>ICU 4.0 </dd></dl>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a9acb9821e8fddc1337e8f91705b002e2"></a><!-- doxytag: member="DateIntervalInfo::DateIntervalFormat" ref="a9acb9821e8fddc1337e8f91705b002e2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="classDateIntervalFormat.html">DateIntervalFormat</a><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent...">DateIntervalFormat</a> will need access to getBestSkeleton(), parseSkeleton(), enum IntervalPatternIndex, and calendarFieldToPatternIndex(). </p>
<p>Instead of making above public, make <a class="el" href="classDateIntervalFormat.html" title="DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent...">DateIntervalFormat</a> a friend of <a class="el" href="classDateIntervalInfo.html" title="DateIntervalInfo is a public class for encapsulating localizable date time interval...">DateIntervalInfo</a>. </p>

<p>Definition at line <a class="el" href="dtitvinf_8h_source.html#l00345">345</a> of file <a class="el" href="dtitvinf_8h_source.html">dtitvinf.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="dtitvinf_8h_source.html">dtitvinf.h</a></li>
</ul>
</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">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</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 size="1"/><address style="text-align: right;"><small>Generated on 16 Mar 2010 for ICU 4.4 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>