/*
*******************************************************************************
-* Copyright (C) 2007-2012, International Business Machines Corporation and *
+* Copyright (C) 2007-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
#include "unicode/datefmt.h"
#include "unicode/smpdtfmt.h"
+#include "unicode/brkiter.h"
U_NAMESPACE_BEGIN
*/
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;
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.
*/
void loadDates(UErrorCode &status);
+ /**
+ * Set fCapitalizationOfRelativeUnitsForUIListMenu, fCapitalizationOfRelativeUnitsForStandAlone
+ */
+ void initCapitalizationContextInfo(const Locale& thelocale);
+
/**
* @return the number of days in "until-now"
*/