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.
//=======================================================================
// 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)
*/
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
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.
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.
*/
*/
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.
// class RegexCompile Contains the regular expression compiler.
//
//--------------------------------------------------------------------------------
-struct RegexTableEl;
class RegexPattern;
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
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.
// -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.
*/
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.
*
*/
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
*/
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
*/
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.
*/
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.
*
*/
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
*/
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 */
/**
*/
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
*/
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.
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;
void cacheExplicitFormats(UErrorCode& status);
- int32_t skipLeadingSpaces(UnicodeString& style);
-
Format* createAppropriateFormat(UnicodeString& type,
UnicodeString& style,
Formattable::Type& formattableType,
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>;
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;
void setDesc(const UnicodeString &desc);
void setName(const char* name);
-
- static UBool isValidDigitString(const UnicodeString &str);
-
- UBool hasContiguousDecimalDigits() const;
};
U_NAMESPACE_END
*/
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
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;
*
*/
RegexMatcher *matcher(const char16_t *input,
- UErrorCode &status) const;
+ UErrorCode &status) const = delete;
public:
* `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:
* `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:
/**
*/
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
* 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;