ICU-2589 fix @draft tags

X-SVN-Rev: 12244
This commit is contained in:
Steven R. Loomis 2003-06-03 01:58:15 +00:00
parent a24fca902c
commit 753f3c3848
5 changed files with 64 additions and 13 deletions

View file

@ -1462,23 +1462,38 @@ private:
*/
static UBool unregister(URegistryKey key, UErrorCode& status);
/**
* Multiple Calendar Implementation
* @internal
*/
friend class CalendarFactory;
/**
* Multiple Calendar Implementation
* @internal
*/
friend class CalendarService;
/**
* Multiple Calendar Implementation
* @internal
*/
friend class DefaultCalendarFactory;
/**
* @internal
* @return TRUE if this calendar has the notion of a default century
* @return TRUE if this calendar has a default century (i.e. 03 -> 2003)
*/
virtual UBool haveDefaultCentury() const = 0;
/**
* @internal
* @return the start of the default century
* @return the start of the default century, as a UDate
*/
virtual UDate defaultCenturyStart() const = 0;
/**
* @internal
* @return the beginning year of the default century
* @return the beginning year of the default century, as a year
*/
virtual int32_t defaultCenturyStartYear() const = 0;

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) {1997-1999}, International Business Machines Corporation and others. All Rights Reserved.
* Copyright (C) {1997-2003}, International Business Machines Corporation and others. All Rights Reserved.
********************************************************************************
*
* File GREGOCAL.H
@ -556,13 +556,14 @@ public:
protected:
/***
/**
* Called by computeFields. Converts calendar's year into Gregorian Extended Year (where negative = BC)
* @return Current year in Gregorian years, where -3 means 4 BC (1-bcyear)
* @internal
*/
virtual int32_t getGregorianYear(UErrorCode &status) const;
/***
/**
* Called by computeJulianDay. Returns the default month (0-based) for the year,
* taking year and era into account. Defaults to 0 for Gregorian, which doesn't care.
* @internal
@ -570,15 +571,13 @@ protected:
virtual inline int32_t getDefaultMonthInYear() const { return 0; }
/***
/**
* Called by computeJulianDay. Returns the default day (1-based) for the month,
* taking currently-set year and era into account. Defaults to 1 for Gregorian, which doesn't care.
* @internal
*/
virtual inline int32_t getDefaultDayInMonth(int32_t /*month*/) const { return 1; }
/**
* (Overrides Calendar) Converts GMT as milliseconds to time field values.
* @param status Fill-in parameter which receives the status of this operation.

View file

@ -610,15 +610,28 @@ private:
* Each subformat has a Format object, an offset into the plain
* pattern text fPattern, and an argument number. The argument
* number corresponds to the array of arguments to be formatted.
* @internal
*/
class Subformat {
public:
/**
* @internal
*/
Format* format; // formatter
/**
* @internal
*/
int32_t offset; // offset into fPattern
/**
* @internal
*/
int32_t arg; // 0-based argument number
// Clone that.format and assign it to this.format
// Do NOT delete this.format
/**
* Clone that.format and assign it to this.format
* Do NOT delete this.format
* @internal
*/
Subformat& operator=(const Subformat& that) {
format = that.format ? that.format->clone() : NULL;
offset = that.offset;
@ -626,6 +639,9 @@ private:
return *this;
}
/**
* @internal
*/
UBool operator==(const Subformat& that) const {
// Do cheap comparisons first
return offset == that.offset &&
@ -634,6 +650,9 @@ private:
(*format == *that.format));
}
/**
* @internal
*/
UBool operator!=(const Subformat& that) const {
return !operator==(that);
}

View file

@ -698,12 +698,14 @@ public:
* Return true if this factory will be visible. Default is true.
* If not visible, the locales supported by this factory will not
* be listed by getAvailableLocales.
* @draft ICU 2.6
*/
virtual UBool visible(void) const = 0;
/**
* Return the locale names directly supported by this factory. The number of names
* is returned in count;
* @draft ICU 2.6
*/
virtual const UnicodeString * const getSupportedIDs(int32_t &count, UErrorCode& status) const = 0;
@ -712,6 +714,7 @@ public:
* is not supported, return null. If the locale is supported, but
* the type is not provided by this service, return null. Otherwise
* return an appropriate instance of NumberFormat.
* @draft ICU 2.6
*/
virtual NumberFormat* createFormat(const Locale& loc, UNumberFormatStyle formatType) = 0;
};
@ -726,16 +729,25 @@ protected:
UnicodeString _id;
public:
/**
* @draft ICU 2.6
*/
SimpleNumberFormatFactory(const Locale& locale, UBool visible = TRUE)
: _visible(visible)
, _id(locale.getName())
{
}
/**
* @draft ICU 2.6
*/
virtual UBool visible(void) const {
return _visible;
}
/**
* @draft ICU 2.6
*/
virtual const UnicodeString * const getSupportedIDs(int32_t &count, UErrorCode& status) const
{
if (U_SUCCESS(status)) {

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1997-2002, International Business Machines Corporation and others.
* Copyright (C) 1997-2003, International Business Machines Corporation and others.
* All Rights Reserved.
*******************************************************************************
*/
@ -509,17 +509,20 @@ public:
/**
* Copy constructor
* @param rhs the object to be copied from.
* @stable ICU 2.6
*/
RuleBasedNumberFormat(const RuleBasedNumberFormat& rhs);
/**
* Assignment operator
* @param rhs the object to be copied from.
* @stable ICU 2.6
*/
RuleBasedNumberFormat& operator=(const RuleBasedNumberFormat& rhs);
/**
* Release memory allocated for a RuleBasedNumberFormat when you are finished with it.
* @stable ICU 2.6
*/
virtual ~RuleBasedNumberFormat();
@ -527,6 +530,7 @@ public:
* Clone this object polymorphically. The caller is responsible
* for deleting the result when done.
* @return A copy of the object.
* @stable ICU 2.6
*/
virtual Format* clone(void) const;
@ -534,7 +538,8 @@ public:
* Return true if the given Format objects are semantically equal.
* Objects of different subclasses are considered unequal.
* @param other the object to be compared with.
* @ return true if the given Format objects are semantically equal.
* @return true if the given Format objects are semantically equal.
* @stable ICU 2.6
*/
virtual UBool operator==(const Format& other) const;
@ -777,6 +782,7 @@ public:
* to the initial default rule set. If the rule set is not a public rule set name,
* U_ILLEGAL_ARGUMENT_ERROR is returned in status.
* @param ruleSetName the name of the rule set, or null to reset the initial default.
* @draft ICU 2.6
*/
virtual void setDefaultRuleSet(const UnicodeString& ruleSetName, UErrorCode& status);