Index: source/i18n/reldtfmt.h |
diff --git a/source/i18n/reldtfmt.h b/source/i18n/reldtfmt.h |
index 1206ea3add0c04d008c55ed5d5c493e6b37a9fec..67539e043b29446f4984252286bd692c16fd4917 100644 |
--- a/source/i18n/reldtfmt.h |
+++ b/source/i18n/reldtfmt.h |
@@ -1,6 +1,6 @@ |
/* |
******************************************************************************* |
-* Copyright (C) 2007-2012, International Business Machines Corporation and * |
+* Copyright (C) 2007-2014, International Business Machines Corporation and * |
* others. All Rights Reserved. * |
******************************************************************************* |
*/ |
@@ -19,6 +19,7 @@ |
#include "unicode/datefmt.h" |
#include "unicode/smpdtfmt.h" |
+#include "unicode/brkiter.h" |
U_NAMESPACE_BEGIN |
@@ -232,6 +233,18 @@ public: |
*/ |
virtual const DateFormatSymbols* getDateFormatSymbols(void) const; |
+ /* Cannot use #ifndef U_HIDE_DRAFT_API for the following draft method since it is virtual */ |
+ /** |
+ * Set a particular UDisplayContext value in the formatter, such as |
+ * UDISPCTX_CAPITALIZATION_FOR_STANDALONE. Note: For getContext, see |
+ * DateFormat. |
+ * @param value The UDisplayContext value to set. |
+ * @param status Input/output status. If at entry this indicates a failure |
+ * status, the function will do nothing; otherwise this will be |
+ * updated with any new status from the function. |
+ * @internal ICU 53 |
+ */ |
+ virtual void setContext(UDisplayContext value, UErrorCode& status); |
private: |
SimpleDateFormat *fDateTimeFormatter; |
@@ -247,6 +260,11 @@ private: |
int32_t fDatesLen; // Length of array |
URelativeString *fDates; // array of strings |
+ UBool fCombinedHasDateAtStart; |
+ UBool fCapitalizationInfoSet; |
+ UBool fCapitalizationOfRelativeUnitsForUIListMenu; |
+ UBool fCapitalizationOfRelativeUnitsForStandAlone; |
+ BreakIterator* fCapitalizationBrkIter; |
/** |
* Get the string at a specific offset. |
@@ -262,6 +280,11 @@ private: |
void loadDates(UErrorCode &status); |
/** |
+ * Set fCapitalizationOfRelativeUnitsForUIListMenu, fCapitalizationOfRelativeUnitsForStandAlone |
+ */ |
+ void initCapitalizationContextInfo(const Locale& thelocale); |
+ |
+ /** |
* @return the number of days in "until-now" |
*/ |
static int32_t dayDifference(Calendar &until, UErrorCode &status); |