ICU-11467 Promote time separator interfaces to public API.
R=markus.icu@gmail.com Review URL: https://codereview.appspot.com/189460043 X-SVN-Rev: 37043
This commit is contained in:
parent
8a943fafe4
commit
71035aa827
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
* Copyright (C) 1997-2014, International Business Machines
|
* Copyright (C) 1997-2015, International Business Machines
|
||||||
* Corporation and others. All Rights Reserved.
|
* Corporation and others. All Rights Reserved.
|
||||||
********************************************************************************
|
********************************************************************************
|
||||||
*
|
*
|
||||||
@ -421,24 +421,24 @@ public:
|
|||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
static const UChar ALTERNATE_TIME_SEPARATOR = 0x002e; // '.'
|
static const UChar ALTERNATE_TIME_SEPARATOR = 0x002e; // '.'
|
||||||
|
#endif /* U_HIDE_INTERNAL_API */
|
||||||
|
|
||||||
|
#ifndef U_HIDE_DRAFT_API
|
||||||
/**
|
/**
|
||||||
* Gets the time separator string. For example: ":".
|
* Gets the time separator string. For example: ":".
|
||||||
* @param result Output param which will receive the time separator string.
|
* @param result Output param which will receive the time separator string.
|
||||||
* @return A reference to 'result'.
|
* @return A reference to 'result'.
|
||||||
* @internal
|
* @draft ICU 55
|
||||||
*/
|
*/
|
||||||
UnicodeString& getTimeSeparatorString(UnicodeString& result) const;
|
UnicodeString& getTimeSeparatorString(UnicodeString& result) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the time separator string. For example: ":".
|
* Sets the time separator string. For example: ":".
|
||||||
* @param newTimeSeparator the new time separator string.
|
* @param newTimeSeparator the new time separator string.
|
||||||
* @internal
|
* @draft ICU 55
|
||||||
*/
|
*/
|
||||||
void setTimeSeparatorString(const UnicodeString& newTimeSeparator);
|
void setTimeSeparatorString(const UnicodeString& newTimeSeparator);
|
||||||
#endif /* U_HIDE_INTERNAL_API */
|
|
||||||
|
|
||||||
#ifndef U_HIDE_DRAFT_API
|
|
||||||
/**
|
/**
|
||||||
* Gets cyclic year name strings if the calendar has them, by width and context.
|
* Gets cyclic year name strings if the calendar has them, by width and context.
|
||||||
* For example: "jia-zi", "yi-chou", etc.
|
* For example: "jia-zi", "yi-chou", etc.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
* Copyright (C) 1996-2014, International Business Machines Corporation and
|
* Copyright (C) 1996-2015, International Business Machines Corporation and
|
||||||
* others. All Rights Reserved.
|
* others. All Rights Reserved.
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
*/
|
*/
|
||||||
@ -423,16 +423,20 @@ enum UCalendarDateFields {
|
|||||||
*/
|
*/
|
||||||
UCAL_IS_LEAP_MONTH,
|
UCAL_IS_LEAP_MONTH,
|
||||||
|
|
||||||
/**
|
#ifndef U_HIDE_DRAFT_API
|
||||||
|
/**
|
||||||
* Field number indicating the separator between
|
* Field number indicating the separator between
|
||||||
* <code>HOUR</code>, <code>MINUTE</code> and <code>SECOND</code>.
|
* <code>HOUR</code>, <code>MINUTE</code> and <code>SECOND</code>.
|
||||||
* E.g., at 10:04 the <code>TIME_SEPARATOR</code> is <code>:</code>.
|
* E.g., at 10:04 the <code>TIME_SEPARATOR</code> is <code>:</code>.
|
||||||
* @see #UCAL_HOUR
|
* @see #UCAL_HOUR
|
||||||
* @see #UCAL_MINUTE
|
* @see #UCAL_MINUTE
|
||||||
* @see #UCAL_SECOND
|
* @see #UCAL_SECOND
|
||||||
* @internal
|
* @draft ICU 55
|
||||||
*/
|
*/
|
||||||
UCAL_TIME_SEPARATOR,
|
UCAL_TIME_SEPARATOR,
|
||||||
|
#else
|
||||||
|
UCAL_TIME_SEPARATOR_HIDE_DRAFT_API,
|
||||||
|
#endif /* U_HIDE_DRAFT_API */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Field count
|
* Field count
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
* Copyright (C) 1996-2014, International Business Machines
|
* Copyright (C) 1996-2015, International Business Machines
|
||||||
* Corporation and others. All Rights Reserved.
|
* Corporation and others. All Rights Reserved.
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
*/
|
*/
|
||||||
@ -758,14 +758,16 @@ typedef enum UDateFormatField {
|
|||||||
* @internal ICU 53
|
* @internal ICU 53
|
||||||
*/
|
*/
|
||||||
UDAT_RELATED_YEAR_FIELD = 34,
|
UDAT_RELATED_YEAR_FIELD = 34,
|
||||||
|
#endif /* U_HIDE_INTERNAL_API */
|
||||||
|
|
||||||
|
#ifndef U_HIDE_DRAFT_API
|
||||||
/**
|
/**
|
||||||
* FieldPosition and UFieldPosition selector for ':' time separator,
|
* FieldPosition and UFieldPosition selector for ':' time separator,
|
||||||
* corresponding to the UCAL_TIME_SEPARATOR field.
|
* corresponding to the UCAL_TIME_SEPARATOR field.
|
||||||
* @internal
|
* @draft ICU 55
|
||||||
*/
|
*/
|
||||||
UDAT_TIME_SEPARATOR_FIELD = 35,
|
UDAT_TIME_SEPARATOR_FIELD = 35,
|
||||||
#endif /* U_HIDE_INTERNAL_API */
|
#endif /* U_HIDE_DRAFT_API */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Number of FieldPosition and UFieldPosition selectors for
|
* Number of FieldPosition and UFieldPosition selectors for
|
||||||
|
Loading…
Reference in New Issue
Block a user