<!-- 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: smpdtfmt.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>smpdtfmt.h</h1><a href="smpdtfmt_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">* Copyright (C) 1997-2010, International Business Machines Corporation and</span> <a name="l00003"></a>00003 <span class="comment">* others. All Rights Reserved.</span> <a name="l00004"></a>00004 <span class="comment">*******************************************************************************</span> <a name="l00005"></a>00005 <span class="comment">*</span> <a name="l00006"></a>00006 <span class="comment">* File SMPDTFMT.H</span> <a name="l00007"></a>00007 <span class="comment">*</span> <a name="l00008"></a>00008 <span class="comment">* Modification History:</span> <a name="l00009"></a>00009 <span class="comment">*</span> <a name="l00010"></a>00010 <span class="comment">* Date Name Description</span> <a name="l00011"></a>00011 <span class="comment">* 02/19/97 aliu Converted from java.</span> <a name="l00012"></a>00012 <span class="comment">* 07/09/97 helena Make ParsePosition into a class.</span> <a name="l00013"></a>00013 <span class="comment">* 07/21/98 stephen Added GMT_PLUS, GMT_MINUS</span> <a name="l00014"></a>00014 <span class="comment">* Changed setTwoDigitStartDate to set2DigitYearStart</span> <a name="l00015"></a>00015 <span class="comment">* Changed getTwoDigitStartDate to get2DigitYearStart</span> <a name="l00016"></a>00016 <span class="comment">* Removed subParseLong</span> <a name="l00017"></a>00017 <span class="comment">* Removed getZoneIndex (added in DateFormatSymbols)</span> <a name="l00018"></a>00018 <span class="comment">* 06/14/99 stephen Removed fgTimeZoneDataSuffix</span> <a name="l00019"></a>00019 <span class="comment">* 10/14/99 aliu Updated class doc to describe 2-digit year parsing</span> <a name="l00020"></a>00020 <span class="comment">* {j28 4182066}.</span> <a name="l00021"></a>00021 <span class="comment">*******************************************************************************</span> <a name="l00022"></a>00022 <span class="comment">*/</span> <a name="l00023"></a>00023 <a name="l00024"></a>00024 <span class="preprocessor">#ifndef SMPDTFMT_H</span> <a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define SMPDTFMT_H</span> <a name="l00026"></a>00026 <span class="preprocessor"></span> <a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="utypes_8h.html" title="Basic definitions for ICU, for both C and C++ APIs.">unicode/utypes.h</a>"</span> <a name="l00028"></a>00028 <a name="l00034"></a>00034 <span class="preprocessor">#if !UCONFIG_NO_FORMATTING</span> <a name="l00035"></a>00035 <span class="preprocessor"></span> <a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="datefmt_8h.html" title="C++ API: Abstract class for converting dates.">unicode/datefmt.h</a>"</span> <a name="l00037"></a>00037 <a name="l00038"></a>00038 <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="l00039"></a>00039 <a name="l00040"></a>00040 <span class="keyword">class </span><a class="code" href="classDateFormatSymbols.html" title="DateFormatSymbols is a public class for encapsulating localizable date-time formatting...">DateFormatSymbols</a>; <a name="l00041"></a>00041 <span class="keyword">class </span><a class="code" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a>; <a name="l00042"></a>00042 <span class="keyword">class </span><a class="code" href="classMessageFormat.html" title="MessageFormat produces concatenated messages in a language-neutral way.">MessageFormat</a>; <a name="l00043"></a>00043 <span class="keyword">class </span>FieldPositionHandler; <a name="l00044"></a>00044 <a name="l00215"></a><a class="code" href="classSimpleDateFormat.html">00215</a> <span class="keyword">class </span><a class="code" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a" title="Set to export library symbols from inside the i18n library, and to import them from...">U_I18N_API</a> <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>: <span class="keyword">public</span> <a class="code" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a> { <a name="l00216"></a>00216 <span class="keyword">public</span>: <a name="l00226"></a>00226 <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>(<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="l00227"></a>00227 <a name="l00239"></a>00239 <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& pattern, <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="l00263"></a>00263 <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& pattern, <a name="l00264"></a>00264 <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <span class="keyword">override</span>, <a name="l00265"></a>00265 <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="l00266"></a>00266 <a name="l00279"></a>00279 <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& pattern, <a name="l00280"></a>00280 <span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>& locale, <a name="l00281"></a>00281 <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="l00282"></a>00282 <a name="l00304"></a>00304 <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& pattern, <a name="l00305"></a>00305 <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <span class="keyword">override</span>, <a name="l00306"></a>00306 <span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>& locale, <a name="l00307"></a>00307 <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="l00308"></a>00308 <a name="l00318"></a>00318 <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& pattern, <a name="l00319"></a>00319 <a class="code" href="classDateFormatSymbols.html" title="DateFormatSymbols is a public class for encapsulating localizable date-time formatting...">DateFormatSymbols</a>* formatDataToAdopt, <a name="l00320"></a>00320 <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="l00321"></a>00321 <a name="l00331"></a>00331 <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& pattern, <a name="l00332"></a>00332 <span class="keyword">const</span> <a class="code" href="classDateFormatSymbols.html" title="DateFormatSymbols is a public class for encapsulating localizable date-time formatting...">DateFormatSymbols</a>& formatData, <a name="l00333"></a>00333 <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="l00334"></a>00334 <a name="l00339"></a>00339 <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>(<span class="keyword">const</span> <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>&); <a name="l00340"></a>00340 <a name="l00345"></a>00345 <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>& <a class="code" href="classDateFormat.html#acc1631f81d9ce43f827a88a92e9e3b6a" title="Default assignment operator.">operator=</a>(<span class="keyword">const</span> <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>&); <a name="l00346"></a>00346 <a name="l00351"></a>00351 <span class="keyword">virtual</span> ~<a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>(); <a name="l00352"></a>00352 <a name="l00359"></a>00359 <span class="keyword">virtual</span> <a class="code" href="classFormat.html" title="Base class for all formats.">Format</a>* <a class="code" href="classFormat.html#a4e7ebd5cfd390c35e2bda88257f8b51a" title="Clone this object polymorphically.">clone</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l00360"></a>00360 <a name="l00368"></a>00368 <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classDateFormat.html#a4b11dc83bba269b4a5966b91f0dde5b5" title="Equality operator.">operator==</a>(<span class="keyword">const</span> <a class="code" href="classFormat.html" title="Base class for all formats.">Format</a>& other) <span class="keyword">const</span>; <a name="l00369"></a>00369 <a name="l00370"></a>00370 <a name="l00371"></a>00371 <span class="keyword">using</span> <a class="code" href="classDateFormat.html#a75b3bbdb1b728fa9c8ddaa344915427d" title="Format an object to produce a string.">DateFormat::format</a>; <a name="l00372"></a>00372 <a name="l00389"></a>00389 <span class="keyword">virtual</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a class="code" href="classDateFormat.html#a75b3bbdb1b728fa9c8ddaa344915427d" title="Format an object to produce a string.">format</a>( <a class="code" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>& cal, <a name="l00390"></a>00390 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l00391"></a>00391 <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>& pos) <span class="keyword">const</span>; <a name="l00392"></a>00392 <a name="l00411"></a>00411 <span class="keyword">virtual</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a class="code" href="classDateFormat.html#a75b3bbdb1b728fa9c8ddaa344915427d" title="Format an object to produce a string.">format</a>( <a class="code" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>& cal, <a name="l00412"></a>00412 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l00413"></a>00413 <a class="code" href="classFieldPositionIterator.html" title="FieldPositionIterator returns the field ids and their start/limit positions generated...">FieldPositionIterator</a>* posIter, <a name="l00414"></a>00414 <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) <span class="keyword">const</span>; <a name="l00415"></a>00415 <a name="l00435"></a>00435 <span class="keyword">virtual</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a class="code" href="classDateFormat.html#a75b3bbdb1b728fa9c8ddaa344915427d" title="Format an object to produce a string.">format</a>( <span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>& obj, <a name="l00436"></a>00436 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l00437"></a>00437 <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>& pos, <a name="l00438"></a>00438 <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) <span class="keyword">const</span>; <a name="l00439"></a>00439 <a name="l00460"></a>00460 <span class="keyword">virtual</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a class="code" href="classDateFormat.html#a75b3bbdb1b728fa9c8ddaa344915427d" title="Format an object to produce a string.">format</a>( <span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>& obj, <a name="l00461"></a>00461 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l00462"></a>00462 <a class="code" href="classFieldPositionIterator.html" title="FieldPositionIterator returns the field ids and their start/limit positions generated...">FieldPositionIterator</a>* posIter, <a name="l00463"></a>00463 <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) <span class="keyword">const</span>; <a name="l00464"></a>00464 <a name="l00475"></a>00475 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a class="code" href="classDateFormat.html#a75b3bbdb1b728fa9c8ddaa344915427d" title="Format an object to produce a string.">format</a>(<a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> date, <a name="l00476"></a>00476 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l00477"></a>00477 <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>& fieldPosition) <span class="keyword">const</span>; <a name="l00478"></a>00478 <a name="l00491"></a>00491 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a class="code" href="classDateFormat.html#a75b3bbdb1b728fa9c8ddaa344915427d" title="Format an object to produce a string.">format</a>(<a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> date, <a name="l00492"></a>00492 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l00493"></a>00493 <a class="code" href="classFieldPositionIterator.html" title="FieldPositionIterator returns the field ids and their start/limit positions generated...">FieldPositionIterator</a>* posIter, <a name="l00494"></a>00494 <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) <span class="keyword">const</span>; <a name="l00495"></a>00495 <a name="l00505"></a>00505 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a class="code" href="classDateFormat.html#a75b3bbdb1b728fa9c8ddaa344915427d" title="Format an object to produce a string.">format</a>(<span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>& obj, <a name="l00506"></a>00506 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l00507"></a>00507 <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) <span class="keyword">const</span>; <a name="l00508"></a>00508 <a name="l00517"></a>00517 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a class="code" href="classDateFormat.html#a75b3bbdb1b728fa9c8ddaa344915427d" title="Format an object to produce a string.">format</a>(<a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> date, <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo) <span class="keyword">const</span>; <a name="l00518"></a>00518 <a name="l00538"></a>00538 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDateFormat.html#a9b9493fd564b7268f8e42921e4ac6822" title="Parse a date/time string.">parse</a>( <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& text, <a name="l00539"></a>00539 <a class="code" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>& cal, <a name="l00540"></a>00540 <a class="code" href="classParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of...">ParsePosition</a>& pos) <span class="keyword">const</span>; <a name="l00541"></a>00541 <a name="l00561"></a>00561 <a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> <a class="code" href="classDateFormat.html#a9b9493fd564b7268f8e42921e4ac6822" title="Parse a date/time string.">parse</a>( <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& text, <a name="l00562"></a>00562 <a class="code" href="classParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of...">ParsePosition</a>& pos) <span class="keyword">const</span>; <a name="l00563"></a>00563 <a name="l00564"></a>00564 <a name="l00580"></a>00580 <span class="keyword">virtual</span> <a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> <a class="code" href="classDateFormat.html#a9b9493fd564b7268f8e42921e4ac6822" title="Parse a date/time string.">parse</a>( <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& text, <a name="l00581"></a>00581 <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) <span class="keyword">const</span>; <a name="l00582"></a>00582 <a name="l00599"></a>00599 <span class="keyword">virtual</span> <span class="keywordtype">void</span> set2DigitYearStart(<a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> d, <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="l00600"></a>00600 <a name="l00616"></a>00616 <a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> get2DigitYearStart(<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) <span class="keyword">const</span>; <a name="l00617"></a>00617 <a name="l00624"></a>00624 <span class="keyword">virtual</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& toPattern(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& result) <span class="keyword">const</span>; <a name="l00625"></a>00625 <a name="l00642"></a>00642 <span class="keyword">virtual</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& toLocalizedPattern(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& result, <a name="l00643"></a>00643 <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) <span class="keyword">const</span>; <a name="l00644"></a>00644 <a name="l00653"></a>00653 <span class="keyword">virtual</span> <span class="keywordtype">void</span> applyPattern(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& pattern); <a name="l00654"></a>00654 <a name="l00665"></a>00665 <span class="keyword">virtual</span> <span class="keywordtype">void</span> applyLocalizedPattern(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& pattern, <a name="l00666"></a>00666 <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="l00667"></a>00667 <a name="l00676"></a>00676 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classDateFormatSymbols.html" title="DateFormatSymbols is a public class for encapsulating localizable date-time formatting...">DateFormatSymbols</a>* getDateFormatSymbols(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l00677"></a>00677 <a name="l00684"></a>00684 <span class="keyword">virtual</span> <span class="keywordtype">void</span> adoptDateFormatSymbols(<a class="code" href="classDateFormatSymbols.html" title="DateFormatSymbols is a public class for encapsulating localizable date-time formatting...">DateFormatSymbols</a>* newFormatSymbols); <a name="l00685"></a>00685 <a name="l00691"></a>00691 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setDateFormatSymbols(<span class="keyword">const</span> <a class="code" href="classDateFormatSymbols.html" title="DateFormatSymbols is a public class for encapsulating localizable date-time formatting...">DateFormatSymbols</a>& newFormatSymbols); <a name="l00692"></a>00692 <a name="l00704"></a>00704 <span class="keyword">static</span> <a class="code" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f" title="UClassID is used to identify classes without using RTTI, since RTTI is not yet supported...">UClassID</a> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> getStaticClassID(<span class="keywordtype">void</span>); <a name="l00705"></a>00705 <a name="l00717"></a>00717 <span class="keyword">virtual</span> <a class="code" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f" title="UClassID is used to identify classes without using RTTI, since RTTI is not yet supported...">UClassID</a> <a class="code" href="classFormat.html#ac961d410d174518e5a3ebb8bbef45cd7" title="Returns a unique class ID POLYMORPHICALLY.">getDynamicClassID</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l00718"></a>00718 <a name="l00728"></a>00728 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDateFormat.html#a82d9d571d5764024766bb3750759bb4b" title="Set the calendar to be used by this date format.">adoptCalendar</a>(<a class="code" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>* calendarToAdopt); <a name="l00729"></a>00729 <a name="l00740"></a>00740 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> isFieldUnitIgnored(<a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912" title="Possible fields in a UCalendar.">UCalendarDateFields</a> field) <span class="keyword">const</span>; <a name="l00741"></a>00741 <a name="l00742"></a>00742 <a name="l00754"></a>00754 <span class="keyword">static</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> isFieldUnitIgnored(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& pattern, <a name="l00755"></a>00755 <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912" title="Possible fields in a UCalendar.">UCalendarDateFields</a> field); <a name="l00756"></a>00756 <a name="l00757"></a>00757 <a name="l00758"></a>00758 <a name="l00767"></a>00767 <span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>& getSmpFmtLocale(<span class="keywordtype">void</span>) <span class="keyword">const</span>; <a name="l00768"></a>00768 <a name="l00769"></a>00769 <a name="l00770"></a>00770 <span class="keyword">private</span>: <a name="l00771"></a>00771 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a>; <a name="l00772"></a>00772 <a name="l00773"></a>00773 <span class="keywordtype">void</span> initializeDefaultCentury(<span class="keywordtype">void</span>); <a name="l00774"></a>00774 <a name="l00775"></a>00775 <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>(); <span class="comment">// default constructor not implemented</span> <a name="l00776"></a>00776 <a name="l00785"></a>00785 <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>(<a class="code" href="classDateFormat.html#a960020b0c7ec1b66798022681473e04d" title="Constants for various style patterns.">EStyle</a> timeStyle, <a class="code" href="classDateFormat.html#a960020b0c7ec1b66798022681473e04d" title="Constants for various style patterns.">EStyle</a> dateStyle, <span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>& locale, <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="l00786"></a>00786 <a name="l00795"></a>00795 <a class="code" href="classSimpleDateFormat.html" title="SimpleDateFormat is a concrete class for formatting and parsing dates in a language-independent...">SimpleDateFormat</a>(<span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>& locale, <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); <span class="comment">// Use default pattern</span> <a name="l00796"></a>00796 <a name="l00800"></a>00800 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& _format(<a class="code" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>& cal, <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, FieldPositionHandler& handler, <a name="l00801"></a>00801 <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) <span class="keyword">const</span>; <a name="l00802"></a>00802 <a name="l00816"></a>00816 <span class="keywordtype">void</span> subFormat(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> &appendTo, <a name="l00817"></a>00817 <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> ch, <a name="l00818"></a>00818 int32_t count, <a name="l00819"></a>00819 FieldPositionHandler& handler, <a name="l00820"></a>00820 <a class="code" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>& cal, <a name="l00821"></a>00821 <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) <span class="keyword">const</span>; <span class="comment">// in case of illegal argument</span> <a name="l00822"></a>00822 <a name="l00835"></a>00835 <span class="keywordtype">void</span> zeroPaddingNumber(<a class="code" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> *currentNumberFormat, <a name="l00836"></a>00836 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> &appendTo, <a name="l00837"></a>00837 int32_t value, <a name="l00838"></a>00838 int32_t minDigits, <a name="l00839"></a>00839 int32_t maxDigits) <span class="keyword">const</span>; <a name="l00840"></a>00840 <a name="l00845"></a>00845 <span class="keyword">static</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> isNumeric(<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> formatChar, int32_t count); <a name="l00846"></a>00846 <a name="l00854"></a>00854 <a class="code" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a> *initializeCalendar(<a class="code" href="classTimeZone.html" title="TimeZone represents a time zone offset, and also figures out daylight savings.">TimeZone</a>* adoptZone, <span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>& locale, <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="l00855"></a>00855 <a name="l00862"></a>00862 <span class="keywordtype">void</span> initializeSymbols(<span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>& locale, <a class="code" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>* calendar, <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="l00863"></a>00863 <a name="l00873"></a>00873 <span class="keywordtype">void</span> construct(<a class="code" href="classDateFormat.html#a960020b0c7ec1b66798022681473e04d" title="Constants for various style patterns.">EStyle</a> timeStyle, <a class="code" href="classDateFormat.html#a960020b0c7ec1b66798022681473e04d" title="Constants for various style patterns.">EStyle</a> dateStyle, <span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>& locale, <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="l00874"></a>00874 <a name="l00881"></a>00881 <span class="keywordtype">void</span> initialize(<span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>& locale, <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="l00882"></a>00882 <a name="l00895"></a>00895 int32_t matchString(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& text, int32_t start, <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912" title="Possible fields in a UCalendar.">UCalendarDateFields</a> field, <a name="l00896"></a>00896 <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>* stringArray, int32_t stringArrayCount, <a class="code" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>& cal) <span class="keyword">const</span>; <a name="l00897"></a>00897 <a name="l00910"></a>00910 int32_t matchQuarterString(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& text, int32_t start, <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912" title="Possible fields in a UCalendar.">UCalendarDateFields</a> field, <a name="l00911"></a>00911 <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>* stringArray, int32_t stringArrayCount, <a class="code" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>& cal) <span class="keyword">const</span>; <a name="l00912"></a>00912 <a name="l00928"></a>00928 int32_t subParse(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& text, int32_t& start, <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> ch, int32_t count, <a name="l00929"></a>00929 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> obeyCount, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> allowNegative, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> ambiguousYear[], int32_t& saveHebrewMonth, <a class="code" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>& cal, <a name="l00930"></a>00930 int32_t patLoc) <span class="keyword">const</span>; <a name="l00931"></a>00931 <a name="l00932"></a>00932 <span class="keywordtype">void</span> parseInt(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& text, <a name="l00933"></a>00933 <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>& number, <a name="l00934"></a>00934 <a class="code" href="classParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of...">ParsePosition</a>& pos, <a name="l00935"></a>00935 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> allowNegative, <a name="l00936"></a>00936 <a class="code" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> *fmt) <span class="keyword">const</span>; <a name="l00937"></a>00937 <a name="l00938"></a>00938 <span class="keywordtype">void</span> parseInt(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& text, <a name="l00939"></a>00939 <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>& number, <a name="l00940"></a>00940 int32_t maxDigits, <a name="l00941"></a>00941 <a class="code" href="classParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of...">ParsePosition</a>& pos, <a name="l00942"></a>00942 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> allowNegative, <a name="l00943"></a>00943 <a class="code" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> *fmt) <span class="keyword">const</span>; <a name="l00944"></a>00944 <a name="l00945"></a>00945 int32_t checkIntSuffix(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& text, int32_t start, <a name="l00946"></a>00946 int32_t patLoc, <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> isNegative) <span class="keyword">const</span>; <a name="l00947"></a>00947 <a name="l00960"></a>00960 <span class="keyword">static</span> <span class="keywordtype">void</span> translatePattern(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& originalPattern, <a name="l00961"></a>00961 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& translatedPattern, <a name="l00962"></a>00962 <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& from, <a name="l00963"></a>00963 <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& to, <a name="l00964"></a>00964 <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="l00965"></a>00965 <a name="l00973"></a>00973 <span class="keywordtype">void</span> parseAmbiguousDatesAsAfter(<a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> startDate, <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="l00974"></a>00974 <a name="l00984"></a>00984 int32_t compareSimpleAffix(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& affix, <a name="l00985"></a>00985 <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& input, <a name="l00986"></a>00986 int32_t pos) <span class="keyword">const</span>; <a name="l00987"></a>00987 <a name="l00992"></a>00992 int32_t skipRuleWhiteSpace(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& text, int32_t pos) <span class="keyword">const</span>; <a name="l00993"></a>00993 <a name="l00998"></a>00998 int32_t skipUWhiteSpace(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& text, int32_t pos) <span class="keyword">const</span>; <a name="l00999"></a>00999 <a name="l01003"></a>01003 <span class="keywordtype">void</span> appendGMT(<a class="code" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> *currentNumberFormat,<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> &appendTo, <a class="code" href="classCalendar.html" title="Calendar is an abstract base class for converting between a UDate object and a set...">Calendar</a>& cal, <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) <span class="keyword">const</span>; <a name="l01004"></a>01004 <span class="keywordtype">void</span> formatGMTDefault(<a class="code" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> *currentNumberFormat,<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> &appendTo, int32_t offset) <span class="keyword">const</span>; <a name="l01005"></a>01005 int32_t parseGMT(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> &text, <a class="code" href="classParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of...">ParsePosition</a> &pos) <span class="keyword">const</span>; <a name="l01006"></a>01006 int32_t parseGMTDefault(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> &text, <a class="code" href="classParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of...">ParsePosition</a> &pos) <span class="keyword">const</span>; <a name="l01007"></a>01007 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> isDefaultGMTFormat() <span class="keyword">const</span>; <a name="l01008"></a>01008 <a name="l01009"></a>01009 <span class="keywordtype">void</span> formatRFC822TZ(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> &appendTo, int32_t offset) <span class="keyword">const</span>; <a name="l01010"></a>01010 <a name="l01014"></a>01014 <span class="keywordtype">void</span> initGMTFormatters(<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="l01015"></a>01015 <a name="l01019"></a>01019 <span class="keywordtype">void</span> initNumberFormatters(<span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a> &locale,<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="l01020"></a>01020 <a name="l01024"></a>01024 <span class="keyword">using</span> <a class="code" href="classDateFormat.html#aec908179e2acbfbf3b15a7e056dc5938" title="Gets the number formatter which this date/time formatter uses to format and parse...">DateFormat::getNumberFormat</a>; <span class="comment">// Do not hide visibility of base class function</span> <a name="l01025"></a>01025 <a class="code" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> * <a class="code" href="classDateFormat.html#aec908179e2acbfbf3b15a7e056dc5938" title="Gets the number formatter which this date/time formatter uses to format and parse...">getNumberFormat</a>(<a class="code" href="udat_8h.html#adb09b47d4576513229f83f2e8f507fc2" title="FieldPosition and UFieldPosition selectors for format fields defined by DateFormat...">UDateFormatField</a> index) <span class="keyword">const</span>; <a name="l01026"></a>01026 <a name="l01030"></a>01030 <span class="keywordtype">void</span> processOverrideString(<span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a> &locale, <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> &str, int8_t type, <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="l01031"></a>01031 <a name="l01035"></a>01035 <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="ucal_8h.html#a02fe23bf33319052733c00c7a09ea912" title="Possible fields in a UCalendar.">UCalendarDateFields</a> fgPatternIndexToCalendarField[]; <a name="l01036"></a>01036 <a name="l01040"></a>01040 <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="udat_8h.html#adb09b47d4576513229f83f2e8f507fc2" title="FieldPosition and UFieldPosition selectors for format fields defined by DateFormat...">UDateFormatField</a> fgPatternIndexToDateFormatField[]; <a name="l01041"></a>01041 <a name="l01048"></a>01048 <span class="keyword">static</span> <span class="keyword">const</span> int32_t fgCalendarFieldToLevel[]; <a name="l01049"></a>01049 <span class="keyword">static</span> <span class="keyword">const</span> int32_t fgPatternCharToLevel[]; <a name="l01050"></a>01050 <a name="l01054"></a>01054 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> fPattern; <a name="l01055"></a>01055 <a name="l01059"></a>01059 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> fDateOverride; <a name="l01060"></a>01060 <a name="l01064"></a>01064 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> fTimeOverride; <a name="l01065"></a>01065 <a name="l01066"></a>01066 <a name="l01070"></a>01070 <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a> fLocale; <a name="l01071"></a>01071 <a name="l01076"></a>01076 <a class="code" href="classDateFormatSymbols.html" title="DateFormatSymbols is a public class for encapsulating localizable date-time formatting...">DateFormatSymbols</a>* fSymbols; <span class="comment">// Owned</span> <a name="l01077"></a>01077 <a name="l01086"></a>01086 <a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> fDefaultCenturyStart; <a name="l01087"></a>01087 <a name="l01091"></a>01091 <span class="comment">/*transient*/</span> int32_t fDefaultCenturyStartYear; <a name="l01092"></a>01092 <a name="l01093"></a>01093 <span class="keyword">enum</span> ParsedTZType { <a name="l01094"></a>01094 TZTYPE_UNK, <a name="l01095"></a>01095 TZTYPE_STD, <a name="l01096"></a>01096 TZTYPE_DST <a name="l01097"></a>01097 }; <a name="l01098"></a>01098 <a name="l01099"></a>01099 ParsedTZType tztype; <span class="comment">// here to avoid api change</span> <a name="l01100"></a>01100 <a name="l01101"></a>01101 <span class="keyword">typedef</span> <span class="keyword">struct </span>NSOverride { <a name="l01102"></a>01102 <a class="code" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> *nf; <a name="l01103"></a>01103 int32_t hash; <a name="l01104"></a>01104 NSOverride *next; <a name="l01105"></a>01105 } NSOverride; <a name="l01106"></a>01106 <a name="l01107"></a>01107 <span class="comment">/*</span> <a name="l01108"></a>01108 <span class="comment"> * MessageFormat instances used for localized GMT format</span> <a name="l01109"></a>01109 <span class="comment"> */</span> <a name="l01110"></a>01110 <span class="keyword">enum</span> { <a name="l01111"></a>01111 kGMTNegativeHMS = 0, <a name="l01112"></a>01112 kGMTNegativeHM, <a name="l01113"></a>01113 kGMTPositiveHMS, <a name="l01114"></a>01114 kGMTPositiveHM, <a name="l01115"></a>01115 <a name="l01116"></a>01116 kNumGMTFormatters <a name="l01117"></a>01117 }; <a name="l01118"></a>01118 <span class="keyword">enum</span> { <a name="l01119"></a>01119 kGMTNegativeHMSMinLenIdx = 0, <a name="l01120"></a>01120 kGMTPositiveHMSMinLenIdx, <a name="l01121"></a>01121 <a name="l01122"></a>01122 kNumGMTFormatMinLengths <a name="l01123"></a>01123 }; <a name="l01124"></a>01124 <a name="l01125"></a>01125 <a class="code" href="classMessageFormat.html" title="MessageFormat produces concatenated messages in a language-neutral way.">MessageFormat</a> **fGMTFormatters; <a name="l01126"></a>01126 <span class="comment">// If a GMT hour format has a second field, we need to make sure</span> <a name="l01127"></a>01127 <span class="comment">// the length of input localized GMT string must match the expected</span> <a name="l01128"></a>01128 <span class="comment">// length. Otherwise, sub DateForamt handling offset format may</span> <a name="l01129"></a>01129 <span class="comment">// unexpectedly success parsing input GMT string without second field.</span> <a name="l01130"></a>01130 <span class="comment">// See #6880 about this issue.</span> <a name="l01131"></a>01131 <span class="comment">// TODO: SimpleDateFormat should provide an option to invalidate</span> <a name="l01132"></a>01132 <span class="comment">//</span> <a name="l01133"></a>01133 int32_t fGMTFormatHmsMinLen[kNumGMTFormatMinLengths]; <a name="l01134"></a>01134 <a name="l01135"></a>01135 <a class="code" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a> **fNumberFormatters; <a name="l01136"></a>01136 <a name="l01137"></a>01137 NSOverride *fOverrideList; <a name="l01138"></a>01138 <a name="l01139"></a>01139 <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> fHaveDefaultCentury; <a name="l01140"></a>01140 }; <a name="l01141"></a>01141 <a name="l01142"></a>01142 <span class="keyword">inline</span> <a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> <a name="l01143"></a><a class="code" href="classSimpleDateFormat.html#af397530a09c5d705210384b7edd237ed">01143</a> <a class="code" href="classSimpleDateFormat.html#af397530a09c5d705210384b7edd237ed" title="Get the start UDate used to interpret two-digit year strings.">SimpleDateFormat::get2DigitYearStart</a>(<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>& <span class="comment">/*status*/</span>)<span class="keyword"> const</span> <a name="l01144"></a>01144 <span class="keyword"></span>{ <a name="l01145"></a>01145 <span class="keywordflow">return</span> fDefaultCenturyStart; <a name="l01146"></a>01146 } <a name="l01147"></a>01147 <a name="l01148"></a>01148 <span class="keyword">inline</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a name="l01149"></a><a class="code" href="classSimpleDateFormat.html#aab9dc1c3bc84ac480ee1bc1c05d6126a">01149</a> <a class="code" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49" title="Format a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970...">SimpleDateFormat::format</a>(<span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>& obj, <a name="l01150"></a>01150 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l01151"></a>01151 <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)<span class="keyword"> const </span>{ <a name="l01152"></a>01152 <span class="comment">// Don't use Format:: - use immediate base class only,</span> <a name="l01153"></a>01153 <span class="comment">// in case immediate base modifies behavior later.</span> <a name="l01154"></a>01154 <span class="keywordflow">return</span> <a class="code" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49" title="Format a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970...">DateFormat::format</a>(obj, appendTo, status); <a name="l01155"></a>01155 } <a name="l01156"></a>01156 <a name="l01157"></a>01157 <span class="keyword">inline</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a name="l01158"></a><a class="code" href="classSimpleDateFormat.html#af969f9c7fbfc2cc9dd861dd011ef94e0">01158</a> <a class="code" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49" title="Format a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970...">SimpleDateFormat::format</a>(<span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>& obj, <a name="l01159"></a>01159 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l01160"></a>01160 <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>& pos, <a name="l01161"></a>01161 <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)<span class="keyword"> const</span> <a name="l01162"></a>01162 <span class="keyword"></span>{ <a name="l01163"></a>01163 <span class="comment">// Don't use Format:: - use immediate base class only,</span> <a name="l01164"></a>01164 <span class="comment">// in case immediate base modifies behavior later.</span> <a name="l01165"></a>01165 <span class="keywordflow">return</span> <a class="code" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49" title="Format a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970...">DateFormat::format</a>(obj, appendTo, pos, status); <a name="l01166"></a>01166 } <a name="l01167"></a>01167 <a name="l01168"></a>01168 <span class="keyword">inline</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a name="l01169"></a><a class="code" href="classSimpleDateFormat.html#a4d850ae27a73071330e44ed64cfc2be9">01169</a> <a class="code" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49" title="Format a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970...">SimpleDateFormat::format</a>(<span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>& obj, <a name="l01170"></a>01170 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l01171"></a>01171 <a class="code" href="classFieldPositionIterator.html" title="FieldPositionIterator returns the field ids and their start/limit positions generated...">FieldPositionIterator</a>* posIter, <a name="l01172"></a>01172 <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)<span class="keyword"> const</span> <a name="l01173"></a>01173 <span class="keyword"></span>{ <a name="l01174"></a>01174 <span class="comment">// Don't use Format:: - use immediate base class only,</span> <a name="l01175"></a>01175 <span class="comment">// in case immediate base modifies behavior later.</span> <a name="l01176"></a>01176 <span class="keywordflow">return</span> <a class="code" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49" title="Format a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970...">DateFormat::format</a>(obj, appendTo, posIter, status); <a name="l01177"></a>01177 } <a name="l01178"></a>01178 <a name="l01179"></a>01179 <span class="keyword">inline</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a name="l01180"></a><a class="code" href="classSimpleDateFormat.html#a9e433ca3258272be455b61f0a06c33eb">01180</a> <a class="code" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49" title="Format a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970...">SimpleDateFormat::format</a>(<a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> date, <a name="l01181"></a>01181 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l01182"></a>01182 <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>& fieldPosition)<span class="keyword"> const </span>{ <a name="l01183"></a>01183 <span class="comment">// Don't use Format:: - use immediate base class only,</span> <a name="l01184"></a>01184 <span class="comment">// in case immediate base modifies behavior later.</span> <a name="l01185"></a>01185 <span class="keywordflow">return</span> <a class="code" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49" title="Format a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970...">DateFormat::format</a>(date, appendTo, fieldPosition); <a name="l01186"></a>01186 } <a name="l01187"></a>01187 <a name="l01188"></a>01188 <span class="keyword">inline</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a name="l01189"></a><a class="code" href="classSimpleDateFormat.html#a6846d871f096d6f51cdc1b48b4efad8a">01189</a> <a class="code" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49" title="Format a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970...">SimpleDateFormat::format</a>(<a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> date, <a name="l01190"></a>01190 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo, <a name="l01191"></a>01191 <a class="code" href="classFieldPositionIterator.html" title="FieldPositionIterator returns the field ids and their start/limit positions generated...">FieldPositionIterator</a>* posIter, <a name="l01192"></a>01192 <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)<span class="keyword"> const </span>{ <a name="l01193"></a>01193 <span class="comment">// Don't use Format:: - use immediate base class only,</span> <a name="l01194"></a>01194 <span class="comment">// in case immediate base modifies behavior later.</span> <a name="l01195"></a>01195 <span class="keywordflow">return</span> <a class="code" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49" title="Format a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970...">DateFormat::format</a>(date, appendTo, posIter, status); <a name="l01196"></a>01196 } <a name="l01197"></a>01197 <a name="l01198"></a>01198 <span class="keyword">inline</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& <a name="l01199"></a><a class="code" href="classSimpleDateFormat.html#a89fc0802cd8e84902313b585726c4549">01199</a> <a class="code" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49" title="Format a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970...">SimpleDateFormat::format</a>(<a class="code" href="utypes_8h.html#ace1704e9e77d407d1eaaa2e73ec0c039" title="Date and Time data type.">UDate</a> date, <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>& appendTo)<span class="keyword"> const </span>{ <a name="l01200"></a>01200 <span class="keywordflow">return</span> <a class="code" href="classSimpleDateFormat.html#a618b8ffd208cb29851d12d1db5babc49" title="Format a date or time, which is the standard millis since 24:00 GMT, Jan 1, 1970...">DateFormat::format</a>(date, appendTo); <a name="l01201"></a>01201 } <a name="l01202"></a>01202 <a name="l01203"></a>01203 <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="l01204"></a>01204 <a name="l01205"></a>01205 <span class="preprocessor">#endif </span><span class="comment">/* #if !UCONFIG_NO_FORMATTING */</span> <a name="l01206"></a>01206 <a name="l01207"></a>01207 <span class="preprocessor">#endif // _SMPDTFMT</span> <a name="l01208"></a>01208 <span class="preprocessor"></span><span class="comment">//eof</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>