mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 06:25:30 +00:00
ICU-22054 Remove declarations for unimplemented APIs
This patch also includes marking `=delete` on specific `normal` member functions, as opposed to compiler generated functions, based on the description of such functions' surrounding comments.
This commit is contained in:
parent
783b4f7b6a
commit
e2ae4f5324
16 changed files with 3 additions and 193 deletions
|
@ -648,13 +648,6 @@ private:
|
|||
//=======================================================================
|
||||
// implementation
|
||||
//=======================================================================
|
||||
/**
|
||||
* Dumps caches and performs other actions associated with a complete change
|
||||
* in text or iteration position.
|
||||
* @internal (private)
|
||||
*/
|
||||
void reset(void);
|
||||
|
||||
/**
|
||||
* Common initialization function, used by constructors and bufferClone.
|
||||
* @internal (private)
|
||||
|
|
|
@ -172,14 +172,6 @@ protected:
|
|||
*/
|
||||
StringCharacterIterator();
|
||||
|
||||
/**
|
||||
* Sets the iterator to iterate over the provided string.
|
||||
* @param newText The string to be iterated over
|
||||
* @param newTextLength The length of the String
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
void setText(const char16_t* newText, int32_t newTextLength);
|
||||
|
||||
/**
|
||||
* Copy of the iterated string object.
|
||||
* @stable ICU 2.0
|
||||
|
|
|
@ -1678,8 +1678,6 @@ private:
|
|||
UnicodeString& rebuiltPat,
|
||||
UErrorCode& ec);
|
||||
|
||||
static const UnicodeSet* getInclusions(int32_t src, UErrorCode &status);
|
||||
|
||||
/**
|
||||
* A filter that returns true if the given code point should be
|
||||
* included in the UnicodeSet being constructed.
|
||||
|
@ -1700,11 +1698,6 @@ private:
|
|||
const UnicodeSet* inclusions,
|
||||
UErrorCode &status);
|
||||
|
||||
// UCPMap is now stable ICU 63
|
||||
void applyIntPropertyValue(const UCPMap *map,
|
||||
UCPMapValueFilter *filter, const void *context,
|
||||
UErrorCode &errorCode);
|
||||
|
||||
/**
|
||||
* Set the new pattern to cache.
|
||||
*/
|
||||
|
|
|
@ -180,13 +180,6 @@ public:
|
|||
*/
|
||||
HebrewCalendar(const HebrewCalendar& source);
|
||||
|
||||
/**
|
||||
* Default assignment operator
|
||||
* @param right the object to be copied.
|
||||
* @internal
|
||||
*/
|
||||
HebrewCalendar& operator=(const HebrewCalendar& right);
|
||||
|
||||
/**
|
||||
* Create and return a polymorphic copy of this calendar.
|
||||
* @return return a polymorphic copy of this calendar.
|
||||
|
|
|
@ -37,7 +37,6 @@ U_NAMESPACE_BEGIN
|
|||
// class RegexCompile Contains the regular expression compiler.
|
||||
//
|
||||
//--------------------------------------------------------------------------------
|
||||
struct RegexTableEl;
|
||||
class RegexPattern;
|
||||
|
||||
|
||||
|
@ -65,9 +64,6 @@ public:
|
|||
|
||||
void nextChar(RegexPatternChar &c); // Get the next char from the input stream.
|
||||
|
||||
static void cleanup(); // Memory cleanup
|
||||
|
||||
|
||||
|
||||
// Categories of parentheses in pattern.
|
||||
// The category is saved in the compile-time parentheses stack frame, and
|
||||
|
@ -154,12 +150,6 @@ private:
|
|||
RegexPatternChar fC; // Current char for parse state machine
|
||||
// processing.
|
||||
|
||||
//
|
||||
// Data for the state machine that parses the regular expression.
|
||||
//
|
||||
RegexTableEl **fStateTable; // State Transition Table for regex Rule
|
||||
// parsing. index by p[state][char-class]
|
||||
|
||||
uint16_t fStack[kStackSize]; // State stack, holds state pushes
|
||||
int32_t fStackPtr; // and pops as specified in the state
|
||||
// transition rules.
|
||||
|
@ -211,10 +201,6 @@ private:
|
|||
// -1 for the upper interval value means none
|
||||
// was specified (unlimited occurrences.)
|
||||
|
||||
int64_t fNameStartPos; // Starting position of a \N{NAME} name in a
|
||||
// pattern, valid while remainder of name is
|
||||
// scanned.
|
||||
|
||||
UStack fSetStack; // Stack of UnicodeSets, used while evaluating
|
||||
// (at compile time) set expressions within
|
||||
// the pattern.
|
||||
|
|
|
@ -962,16 +962,6 @@ public:
|
|||
*/
|
||||
UCalendarWallTimeOption getSkippedWallTimeOption(void) const;
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Sets what the first day of the week is; e.g., Sunday in US, Monday in France.
|
||||
*
|
||||
* @param value The given first day of the week.
|
||||
* @deprecated ICU 2.6. Use setFirstDayOfWeek(UCalendarDaysOfWeek value) instead.
|
||||
*/
|
||||
void setFirstDayOfWeek(EDaysOfWeek value);
|
||||
#endif /* U_HIDE_DEPRECATED_API */
|
||||
|
||||
/**
|
||||
* Sets what the first day of the week is; e.g., Sunday in US, Monday in France.
|
||||
*
|
||||
|
@ -1143,26 +1133,6 @@ public:
|
|||
*/
|
||||
virtual int32_t getActualMinimum(UCalendarDateFields field, UErrorCode& status) const;
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Return the maximum value that this field could have, given the current date.
|
||||
* For example, with the date "Feb 3, 1997" and the DAY_OF_MONTH field, the actual
|
||||
* maximum would be 28; for "Feb 3, 1996" it s 29. Similarly for a Hebrew calendar,
|
||||
* for some years the actual maximum for MONTH is 12, and for others 13.
|
||||
*
|
||||
* The version of this function on Calendar uses an iterative algorithm to determine the
|
||||
* actual maximum value for the field. There is almost always a more efficient way to
|
||||
* accomplish this (in most cases, you can simply return getMaximum()). GregorianCalendar
|
||||
* overrides this function with a more efficient implementation.
|
||||
*
|
||||
* @param field the field to determine the maximum of
|
||||
* @param status Fill-in parameter which receives the status of this operation.
|
||||
* @return the maximum of the given field for the current date of this Calendar
|
||||
* @deprecated ICU 2.6. Use getActualMaximum(UCalendarDateFields field, UErrorCode& status) instead.
|
||||
*/
|
||||
int32_t getActualMaximum(EDateFields field, UErrorCode& status) const;
|
||||
#endif /* U_HIDE_DEPRECATED_API */
|
||||
|
||||
/**
|
||||
* Return the maximum value that this field could have, given the current date.
|
||||
* For example, with the date "Feb 3, 1997" and the DAY_OF_MONTH field, the actual
|
||||
|
@ -1181,23 +1151,6 @@ public:
|
|||
*/
|
||||
virtual int32_t getActualMaximum(UCalendarDateFields field, UErrorCode& status) const;
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Gets the value for a given time field. Recalculate the current time field values
|
||||
* if the time value has been changed by a call to setTime(). Return zero for unset
|
||||
* fields if any fields have been explicitly set by a call to set(). To force a
|
||||
* recomputation of all fields regardless of the previous state, call complete().
|
||||
* This method is semantically const, but may alter the object in memory.
|
||||
*
|
||||
* @param field The given time field.
|
||||
* @param status Fill-in parameter which receives the status of the operation.
|
||||
* @return The value for the given time field, or zero if the field is unset,
|
||||
* and set() has been called for any other field.
|
||||
* @deprecated ICU 2.6. Use get(UCalendarDateFields field, UErrorCode& status) instead.
|
||||
*/
|
||||
int32_t get(EDateFields field, UErrorCode& status) const;
|
||||
#endif /* U_HIDE_DEPRECATED_API */
|
||||
|
||||
/**
|
||||
* Gets the value for a given time field. Recalculate the current time field values
|
||||
* if the time value has been changed by a call to setTime(). Return zero for unset
|
||||
|
@ -1213,18 +1166,6 @@ public:
|
|||
*/
|
||||
int32_t get(UCalendarDateFields field, UErrorCode& status) const;
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Determines if the given time field has a value set. This can affect in the
|
||||
* resolving of time in Calendar. Unset fields have a value of zero, by definition.
|
||||
*
|
||||
* @param field The given time field.
|
||||
* @return True if the given time field has a value set; false otherwise.
|
||||
* @deprecated ICU 2.6. Use isSet(UCalendarDateFields field) instead.
|
||||
*/
|
||||
UBool isSet(EDateFields field) const;
|
||||
#endif /* U_HIDE_DEPRECATED_API */
|
||||
|
||||
/**
|
||||
* Determines if the given time field has a value set. This can affect in the
|
||||
* resolving of time in Calendar. Unset fields have a value of zero, by definition.
|
||||
|
@ -1235,17 +1176,6 @@ public:
|
|||
*/
|
||||
UBool isSet(UCalendarDateFields field) const;
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Sets the given time field with the given value.
|
||||
*
|
||||
* @param field The given time field.
|
||||
* @param value The value to be set for the given time field.
|
||||
* @deprecated ICU 2.6. Use set(UCalendarDateFields field, int32_t value) instead.
|
||||
*/
|
||||
void set(EDateFields field, int32_t value);
|
||||
#endif /* U_HIDE_DEPRECATED_API */
|
||||
|
||||
/**
|
||||
* Sets the given time field with the given value.
|
||||
*
|
||||
|
@ -1304,18 +1234,6 @@ public:
|
|||
*/
|
||||
void clear(void);
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Clears the value in the given time field, both making it unset and assigning it a
|
||||
* value of zero. This field value will be determined during the next resolving of
|
||||
* time into time fields.
|
||||
*
|
||||
* @param field The time field to be cleared.
|
||||
* @deprecated ICU 2.6. Use clear(UCalendarDateFields field) instead.
|
||||
*/
|
||||
void clear(EDateFields field);
|
||||
#endif /* U_HIDE_DEPRECATED_API */
|
||||
|
||||
/**
|
||||
* Clears the value in the given time field, both making it unset and assigning it a
|
||||
* value of zero. This field value will be determined during the next resolving of
|
||||
|
|
|
@ -83,13 +83,6 @@ public:
|
|||
*/
|
||||
static DateTimePatternGenerator* U_EXPORT2 createInstanceNoStdPat(const Locale& uLocale, UErrorCode& status);
|
||||
|
||||
/**
|
||||
* For ICU use only
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
static DateTimePatternGenerator* U_EXPORT2 internalMakeInstance(const Locale& uLocale, UErrorCode& status);
|
||||
|
||||
#endif /* U_HIDE_INTERNAL_API */
|
||||
|
||||
/**
|
||||
|
|
|
@ -411,19 +411,6 @@ public:
|
|||
*/
|
||||
int32_t getActualMinimum(UCalendarDateFields field, UErrorCode &status) const override;
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Return the maximum value that this field could have, given the current date.
|
||||
* For example, with the date "Feb 3, 1997" and the DAY_OF_MONTH field, the actual
|
||||
* maximum would be 28; for "Feb 3, 1996" it s 29. Similarly for a Hebrew calendar,
|
||||
* for some years the actual maximum for MONTH is 12, and for others 13.
|
||||
* @param field the time field.
|
||||
* @return the maximum value that this field could have, given the current date.
|
||||
* @deprecated ICU 2.6. Use getActualMaximum(UCalendarDateFields field) instead.
|
||||
*/
|
||||
int32_t getActualMaximum(EDateFields field) const;
|
||||
#endif /* U_HIDE_DEPRECATED_API */
|
||||
|
||||
/**
|
||||
* Return the maximum value that this field could have, given the current date.
|
||||
* For example, with the date "Feb 3, 1997" and the DAY_OF_MONTH field, the actual
|
||||
|
@ -715,12 +702,6 @@ public:
|
|||
*/
|
||||
int32_t fGregorianCutoverYear;// = 1582;
|
||||
|
||||
/**
|
||||
* The year of the gregorianCutover, with 0 representing
|
||||
* 1 BC, -1 representing 2 BC, etc.
|
||||
*/
|
||||
int32_t fGregorianCutoverJulianDay;// = 2299161;
|
||||
|
||||
/**
|
||||
* Converts time as milliseconds to Julian date. The Julian date used here is not a
|
||||
* true Julian date, since it is measured from midnight, not noon.
|
||||
|
|
|
@ -271,10 +271,6 @@ class U_I18N_API ListFormatter : public UObject{
|
|||
struct ListPatternsSink;
|
||||
static ListFormatInternal* loadListFormatInternal(const Locale& locale, const char* style, UErrorCode& errorCode);
|
||||
|
||||
UnicodeString& format_(
|
||||
const UnicodeString items[], int32_t n_items, UnicodeString& appendTo,
|
||||
int32_t index, int32_t &offset, FieldPositionHandler* handler, UErrorCode& errorCode) const;
|
||||
|
||||
ListFormatter() = delete;
|
||||
|
||||
ListFormatInternal* owned;
|
||||
|
|
|
@ -1011,8 +1011,6 @@ private:
|
|||
|
||||
void cacheExplicitFormats(UErrorCode& status);
|
||||
|
||||
int32_t skipLeadingSpaces(UnicodeString& style);
|
||||
|
||||
Format* createAppropriateFormat(UnicodeString& type,
|
||||
UnicodeString& style,
|
||||
Formattable::Type& formattableType,
|
||||
|
|
|
@ -560,8 +560,6 @@ class U_I18N_API LocalizedNumberRangeFormatter
|
|||
|
||||
LocalizedNumberRangeFormatter(impl::RangeMacroProps &¯os, const Locale &locale);
|
||||
|
||||
void clear();
|
||||
|
||||
// To give the fluent setters access to this class's constructor:
|
||||
friend class NumberRangeFormatterSettings<UnlocalizedNumberRangeFormatter>;
|
||||
friend class NumberRangeFormatterSettings<LocalizedNumberRangeFormatter>;
|
||||
|
@ -696,8 +694,6 @@ class U_I18N_API FormattedNumberRange : public UMemory, public FormattedValue {
|
|||
explicit FormattedNumberRange(UErrorCode errorCode)
|
||||
: fData(nullptr), fErrorCode(errorCode) {}
|
||||
|
||||
void getAllFieldPositionsImpl(FieldPositionIteratorHandler& fpih, UErrorCode& status) const;
|
||||
|
||||
void getDecimalNumbers(ByteSink& sink1, ByteSink& sink2, UErrorCode& status) const;
|
||||
|
||||
const impl::UFormattedNumberRangeData* getData(UErrorCode& status) const;
|
||||
|
|
|
@ -208,10 +208,6 @@ private:
|
|||
void setDesc(const UnicodeString &desc);
|
||||
|
||||
void setName(const char* name);
|
||||
|
||||
static UBool isValidDigitString(const UnicodeString &str);
|
||||
|
||||
UBool hasContiguousDecimalDigits() const;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
|
|
@ -306,14 +306,6 @@ public:
|
|||
*/
|
||||
static StringEnumeration* U_EXPORT2 getAvailableLocales(UErrorCode &status);
|
||||
|
||||
/**
|
||||
* Returns whether or not there are overrides.
|
||||
* @param locale the locale to check.
|
||||
* @return
|
||||
* @internal
|
||||
*/
|
||||
static UBool hasOverride(const Locale &locale);
|
||||
|
||||
/**
|
||||
* For ICU use only.
|
||||
* creates a SharedPluralRules object
|
||||
|
@ -570,8 +562,6 @@ private:
|
|||
StandardPluralRanges *mStandardPluralRanges;
|
||||
|
||||
PluralRules() = delete; // default constructor not implemented
|
||||
void parseDescription(const UnicodeString& ruleData, UErrorCode &status);
|
||||
int32_t getNumberValue(const UnicodeString& token) const;
|
||||
UnicodeString getRuleFromResource(const Locale& locale, UPluralType type, UErrorCode& status);
|
||||
RuleChain *rulesForKeyword(const UnicodeString &keyword) const;
|
||||
PluralRules *clone(UErrorCode& status) const;
|
||||
|
|
|
@ -361,7 +361,7 @@ private:
|
|||
*
|
||||
*/
|
||||
RegexMatcher *matcher(const char16_t *input,
|
||||
UErrorCode &status) const;
|
||||
UErrorCode &status) const = delete;
|
||||
public:
|
||||
|
||||
|
||||
|
@ -749,7 +749,7 @@ private:
|
|||
* `utext_openUChars(UText *ut, const char16_t *text, int64_t textLength, UErrorCode *status);`
|
||||
*/
|
||||
RegexMatcher(const UnicodeString ®exp, const char16_t *input,
|
||||
uint32_t flags, UErrorCode &status);
|
||||
uint32_t flags, UErrorCode &status) = delete;
|
||||
public:
|
||||
|
||||
|
||||
|
@ -1157,7 +1157,7 @@ private:
|
|||
* `utext_openUChars(UText *ut, const char16_t *text, int64_t textLength, UErrorCode *status);`
|
||||
*
|
||||
*/
|
||||
RegexMatcher &reset(const char16_t *input);
|
||||
RegexMatcher &reset(const char16_t *input) = delete;
|
||||
public:
|
||||
|
||||
/**
|
||||
|
|
|
@ -258,20 +258,6 @@ public:
|
|||
*/
|
||||
virtual bool operator!=(const TimeZoneRule& that) const override;
|
||||
|
||||
/**
|
||||
* Gets the time when this rule takes effect in the given year.
|
||||
* @param year The Gregorian year, with 0 == 1 BCE, -1 == 2 BCE, etc.
|
||||
* @param prevRawOffset The standard time offset from UTC before this rule
|
||||
* takes effect in milliseconds.
|
||||
* @param prevDSTSavings The amount of daylight saving offset from the
|
||||
* standard time.
|
||||
* @param result Receives the start time in the year.
|
||||
* @return true if this rule takes effect in the year and the result is set to
|
||||
* "result".
|
||||
* @stable ICU 3.8
|
||||
*/
|
||||
UBool getStartInYear(int32_t year, int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) const;
|
||||
|
||||
/**
|
||||
* Returns if this rule represents the same rule and offsets as another.
|
||||
* When two <code>TimeZoneRule</code> objects differ only its names, this method
|
||||
|
|
|
@ -382,7 +382,6 @@ private:
|
|||
* Default constructor.
|
||||
*/
|
||||
VTimeZone();
|
||||
static VTimeZone* createVTimeZone(VTZReader* reader);
|
||||
void write(VTZWriter& writer, UErrorCode& status) const;
|
||||
void write(UDate start, VTZWriter& writer, UErrorCode& status) const;
|
||||
void writeSimple(UDate time, VTZWriter& writer, UErrorCode& status) const;
|
||||
|
|
Loading…
Add table
Reference in a new issue