mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-05 05:25:34 +00:00
ICU-22035 Remove instances of pre c++11 default constructor prevention pattern
This commit is contained in:
parent
18dd0e4c22
commit
0dcb1cb065
62 changed files with 94 additions and 94 deletions
|
@ -177,8 +177,8 @@ private:
|
|||
|
||||
UBool ensureCapacity(int32_t capacity, int32_t desiredCapacityHint, UErrorCode &errorCode);
|
||||
|
||||
CharString(const CharString &other); // forbid copying of this class
|
||||
CharString &operator=(const CharString &other); // forbid copying of this class
|
||||
CharString(const CharString &other) = delete; // forbid copying of this class
|
||||
CharString &operator=(const CharString &other) = delete; // forbid copying of this class
|
||||
|
||||
/**
|
||||
* Returns U_FILE_ALT_SEP_CHAR if found in string, and U_FILE_SEP_CHAR is not found.
|
||||
|
|
|
@ -51,8 +51,8 @@ class U_COMMON_API CStr : public UMemory {
|
|||
|
||||
private:
|
||||
CharString s;
|
||||
CStr(const CStr &other); // Forbid copying of this class.
|
||||
CStr &operator =(const CStr &other); // Forbid assignment.
|
||||
CStr(const CStr &other) = delete; // Forbid copying of this class.
|
||||
CStr &operator =(const CStr &other) = delete; // Forbid assignment.
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
|
|
@ -115,8 +115,8 @@ public:
|
|||
|
||||
inline UBool equals(const Hashtable& that) const;
|
||||
private:
|
||||
Hashtable(const Hashtable &other); // forbid copying of this class
|
||||
Hashtable &operator=(const Hashtable &other); // forbid copying of this class
|
||||
Hashtable(const Hashtable &other) = delete; // forbid copying of this class
|
||||
Hashtable &operator=(const Hashtable &other) = delete; // forbid copying of this class
|
||||
};
|
||||
|
||||
/*********************************************************************
|
||||
|
|
|
@ -55,7 +55,7 @@ public:
|
|||
UnicodeString &result);
|
||||
|
||||
private:
|
||||
MessageImpl(); // no constructor: all static methods
|
||||
MessageImpl() = delete; // no constructor: all static methods
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
|
|
@ -131,7 +131,7 @@ public:
|
|||
}
|
||||
}
|
||||
private:
|
||||
Hangul(); // no instantiation
|
||||
Hangul() = delete; // no instantiation
|
||||
};
|
||||
|
||||
class Normalizer2Impl;
|
||||
|
@ -759,7 +759,7 @@ public:
|
|||
// Must be used only when it is known that norm2 is a Normalizer2WithImpl instance.
|
||||
static const Normalizer2Impl *getImpl(const Normalizer2 *norm2);
|
||||
private:
|
||||
Normalizer2Factory(); // No instantiation.
|
||||
Normalizer2Factory() = delete; // No instantiation.
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
|
|
@ -90,7 +90,7 @@ public:
|
|||
static const UChar *skipIdentifier(const UChar *s, int32_t length);
|
||||
|
||||
private:
|
||||
PatternProps(); // no constructor: all static methods
|
||||
PatternProps() = delete; // no constructor: all static methods
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
|
|
@ -54,8 +54,8 @@ public: // of these structs for each ent
|
|||
~RBBISymbolTableEntry();
|
||||
|
||||
private:
|
||||
RBBISymbolTableEntry(const RBBISymbolTableEntry &other); // forbid copying of this class
|
||||
RBBISymbolTableEntry &operator=(const RBBISymbolTableEntry &other); // forbid copying of this class
|
||||
RBBISymbolTableEntry(const RBBISymbolTableEntry &other) = delete; // forbid copying of this class
|
||||
RBBISymbolTableEntry &operator=(const RBBISymbolTableEntry &other) = delete; // forbid copying of this class
|
||||
};
|
||||
|
||||
|
||||
|
@ -177,8 +177,8 @@ public:
|
|||
RBBIDataHeader *flattenData(); // Create the flattened (runtime format)
|
||||
// data tables..
|
||||
private:
|
||||
RBBIRuleBuilder(const RBBIRuleBuilder &other); // forbid copying of this class
|
||||
RBBIRuleBuilder &operator=(const RBBIRuleBuilder &other); // forbid copying of this class
|
||||
RBBIRuleBuilder(const RBBIRuleBuilder &other) = delete; // forbid copying of this class
|
||||
RBBIRuleBuilder &operator=(const RBBIRuleBuilder &other) = delete; // forbid copying of this class
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -158,8 +158,8 @@ private:
|
|||
UnicodeSet *gRuleSet_name_char;
|
||||
UnicodeSet *gRuleSet_name_start_char;
|
||||
|
||||
RBBIRuleScanner(const RBBIRuleScanner &other); // forbid copying of this class
|
||||
RBBIRuleScanner &operator=(const RBBIRuleScanner &other); // forbid copying of this class
|
||||
RBBIRuleScanner(const RBBIRuleScanner &other) = delete; // forbid copying of this class
|
||||
RBBIRuleScanner &operator=(const RBBIRuleScanner &other) = delete; // forbid copying of this class
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
|
|
@ -134,8 +134,8 @@ private:
|
|||
|
||||
UBool fSawBOF;
|
||||
|
||||
RBBISetBuilder(const RBBISetBuilder &other); // forbid copying of this class
|
||||
RBBISetBuilder &operator=(const RBBISetBuilder &other); // forbid copying of this class
|
||||
RBBISetBuilder(const RBBISetBuilder &other) = delete; // forbid copying of this class
|
||||
RBBISetBuilder &operator=(const RBBISetBuilder &other) = delete; // forbid copying of this class
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -219,8 +219,8 @@ public:
|
|||
~RBBIStateDescriptor();
|
||||
|
||||
private:
|
||||
RBBIStateDescriptor(const RBBIStateDescriptor &other); // forbid copying of this class
|
||||
RBBIStateDescriptor &operator=(const RBBIStateDescriptor &other); // forbid copying of this class
|
||||
RBBIStateDescriptor(const RBBIStateDescriptor &other) = delete; // forbid copying of this class
|
||||
RBBIStateDescriptor &operator=(const RBBIStateDescriptor &other) = delete; // forbid copying of this class
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -286,8 +286,8 @@ public:
|
|||
UErrorCode &errorCode) = 0;
|
||||
|
||||
private:
|
||||
ResourceSink(const ResourceSink &); // no copy constructor
|
||||
ResourceSink &operator=(const ResourceSink &); // no assignment operator
|
||||
ResourceSink(const ResourceSink &) = delete; // no copy constructor
|
||||
ResourceSink &operator=(const ResourceSink &) = delete; // no assignment operator
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
|
|
@ -38,8 +38,8 @@ public:
|
|||
|
||||
virtual ~UnifiedCacheBase();
|
||||
private:
|
||||
UnifiedCacheBase(const UnifiedCacheBase &);
|
||||
UnifiedCacheBase &operator=(const UnifiedCacheBase &);
|
||||
UnifiedCacheBase(const UnifiedCacheBase &) = delete;
|
||||
UnifiedCacheBase &operator=(const UnifiedCacheBase &) = delete;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -139,8 +139,8 @@ public:
|
|||
*/
|
||||
UChar32 next(UnicodeString &full);
|
||||
private:
|
||||
FullCaseFoldingIterator(const FullCaseFoldingIterator &); // no copy
|
||||
FullCaseFoldingIterator &operator=(const FullCaseFoldingIterator &); // no assignment
|
||||
FullCaseFoldingIterator(const FullCaseFoldingIterator &) = delete; // no copy
|
||||
FullCaseFoldingIterator &operator=(const FullCaseFoldingIterator &) = delete; // no assignment
|
||||
|
||||
const UChar *unfold;
|
||||
int32_t unfoldRows;
|
||||
|
|
|
@ -394,7 +394,7 @@ private:
|
|||
pos_(bytes_), remainingMatchLength_(-1) {}
|
||||
|
||||
// No assignment operator.
|
||||
BytesTrie &operator=(const BytesTrie &other);
|
||||
BytesTrie &operator=(const BytesTrie &other) = delete;
|
||||
|
||||
inline void stop() {
|
||||
pos_=NULL;
|
||||
|
|
|
@ -129,8 +129,8 @@ public:
|
|||
private:
|
||||
friend class ::BytesTrieTest;
|
||||
|
||||
BytesTrieBuilder(const BytesTrieBuilder &other); // no copy constructor
|
||||
BytesTrieBuilder &operator=(const BytesTrieBuilder &other); // no assignment operator
|
||||
BytesTrieBuilder(const BytesTrieBuilder &other) = delete; // no copy constructor
|
||||
BytesTrieBuilder &operator=(const BytesTrieBuilder &other) = delete; // no assignment operator
|
||||
|
||||
void buildBytes(UStringTrieBuildOption buildOption, UErrorCode &errorCode);
|
||||
|
||||
|
|
|
@ -150,20 +150,20 @@ public:
|
|||
private:
|
||||
// ===================== PRIVATES ==============================
|
||||
// private default constructor
|
||||
CanonicalIterator();
|
||||
CanonicalIterator() = delete;
|
||||
|
||||
|
||||
/**
|
||||
* Copy constructor. Private for now.
|
||||
* @internal (private)
|
||||
*/
|
||||
CanonicalIterator(const CanonicalIterator& other);
|
||||
CanonicalIterator(const CanonicalIterator& other) = delete;
|
||||
|
||||
/**
|
||||
* Assignment operator. Private for now.
|
||||
* @internal (private)
|
||||
*/
|
||||
CanonicalIterator& operator=(const CanonicalIterator& other);
|
||||
CanonicalIterator& operator=(const CanonicalIterator& other) = delete;
|
||||
|
||||
// fields
|
||||
UnicodeString source;
|
||||
|
|
|
@ -131,7 +131,7 @@ private:
|
|||
/**
|
||||
* Default constructor, not implemented.
|
||||
*/
|
||||
DateInterval();
|
||||
DateInterval() = delete;
|
||||
|
||||
UDate fromDate;
|
||||
UDate toDate;
|
||||
|
|
|
@ -305,8 +305,8 @@ public:
|
|||
private:
|
||||
friend class UTS46;
|
||||
|
||||
IDNAInfo(const IDNAInfo &other); // no copying
|
||||
IDNAInfo &operator=(const IDNAInfo &other); // no copying
|
||||
IDNAInfo(const IDNAInfo &other) = delete; // no copying
|
||||
IDNAInfo &operator=(const IDNAInfo &other) = delete; // no copying
|
||||
|
||||
void reset() {
|
||||
errors=labelErrors=0;
|
||||
|
|
|
@ -740,8 +740,8 @@ private:
|
|||
// Private functions
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
Normalizer(); // default constructor not implemented
|
||||
Normalizer &operator=(const Normalizer &that); // assignment operator not implemented
|
||||
Normalizer() = delete; // default constructor not implemented
|
||||
Normalizer &operator=(const Normalizer &that) = delete; // assignment operator not implemented
|
||||
|
||||
// Private utility methods for iteration
|
||||
// For documentation, see the source code
|
||||
|
|
|
@ -484,7 +484,7 @@ public:
|
|||
static UClassID U_EXPORT2 getStaticClassID();
|
||||
|
||||
private:
|
||||
ResourceBundle(); // default constructor not implemented
|
||||
ResourceBundle() = delete; // default constructor not implemented
|
||||
|
||||
UResourceBundle *fResource;
|
||||
void constructForLocale(const UnicodeString& path, const Locale& locale, UErrorCode& error);
|
||||
|
|
|
@ -409,7 +409,7 @@ private:
|
|||
pos_(uchars_), remainingMatchLength_(-1) {}
|
||||
|
||||
// No assignment operator.
|
||||
UCharsTrie &operator=(const UCharsTrie &other);
|
||||
UCharsTrie &operator=(const UCharsTrie &other) = delete;
|
||||
|
||||
inline void stop() {
|
||||
pos_=NULL;
|
||||
|
|
|
@ -133,8 +133,8 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
UCharsTrieBuilder(const UCharsTrieBuilder &other); // no copy constructor
|
||||
UCharsTrieBuilder &operator=(const UCharsTrieBuilder &other); // no assignment operator
|
||||
UCharsTrieBuilder(const UCharsTrieBuilder &other) = delete; // no copy constructor
|
||||
UCharsTrieBuilder &operator=(const UCharsTrieBuilder &other) = delete; // no assignment operator
|
||||
|
||||
void buildUChars(UStringTrieBuildOption buildOption, UErrorCode &errorCode);
|
||||
|
||||
|
|
|
@ -354,8 +354,8 @@ class U_COMMON_API UnifiedCache : public UnifiedCacheBase {
|
|||
mutable int64_t fAutoEvictedCount;
|
||||
SharedObject *fNoValue;
|
||||
|
||||
UnifiedCache(const UnifiedCache &other);
|
||||
UnifiedCache &operator=(const UnifiedCache &other);
|
||||
UnifiedCache(const UnifiedCache &other) = delete;
|
||||
UnifiedCache &operator=(const UnifiedCache &other) = delete;
|
||||
|
||||
/**
|
||||
* Flushes the contents of the cache. If cache values hold references to other
|
||||
|
|
|
@ -258,7 +258,7 @@ class U_COMMON_API ICU_Utility /* not : public UObject because all methods are s
|
|||
|
||||
private:
|
||||
// do not instantiate
|
||||
ICU_Utility();
|
||||
ICU_Utility() = delete;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
|
|
@ -187,10 +187,10 @@ private:
|
|||
void _init(int32_t initialCapacity, UErrorCode &status);
|
||||
|
||||
// Disallow
|
||||
UVector32(const UVector32&);
|
||||
UVector32(const UVector32&) = delete;
|
||||
|
||||
// Disallow
|
||||
UVector32& operator=(const UVector32&);
|
||||
UVector32& operator=(const UVector32&) = delete;
|
||||
|
||||
|
||||
// API Functions for Stack operations.
|
||||
|
|
|
@ -176,10 +176,10 @@ private:
|
|||
void _init(int32_t initialCapacity, UErrorCode &status);
|
||||
|
||||
// Disallow
|
||||
UVector64(const UVector64&);
|
||||
UVector64(const UVector64&) = delete;
|
||||
|
||||
// Disallow
|
||||
UVector64& operator=(const UVector64&);
|
||||
UVector64& operator=(const UVector64&) = delete;
|
||||
|
||||
|
||||
// API Functions for Stack operations.
|
||||
|
|
|
@ -274,7 +274,7 @@ class U_I18N_API ChineseCalendar : public Calendar {
|
|||
*/
|
||||
int32_t internalGetDefaultCenturyStartYear(void) const;
|
||||
|
||||
ChineseCalendar(); // default constructor not implemented
|
||||
ChineseCalendar() = delete; // default constructor not implemented
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
|
|
@ -491,7 +491,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
Collation(); // No instantiation.
|
||||
Collation() = delete; // No instantiation.
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
|
|
@ -106,7 +106,7 @@ struct U_I18N_API CollationDataReader /* all static */ {
|
|||
isAcceptable(void *context, const char *type, const char *name, const UDataInfo *pInfo);
|
||||
|
||||
private:
|
||||
CollationDataReader(); // no constructor
|
||||
CollationDataReader() = delete; // no constructor
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -39,7 +39,7 @@ public:
|
|||
UErrorCode &errorCode);
|
||||
|
||||
private:
|
||||
CollationDataWriter(); // no constructor
|
||||
CollationDataWriter() = delete; // no constructor
|
||||
|
||||
static int32_t write(UBool isBase, const UVersionInfo dataVersion,
|
||||
const CollationData &data, const CollationSettings &settings,
|
||||
|
|
|
@ -249,7 +249,7 @@ private:
|
|||
static uint32_t getQuaternaries(uint32_t variableTop, uint32_t pair);
|
||||
|
||||
private:
|
||||
CollationFastLatin(); // no constructor
|
||||
CollationFastLatin() = delete; // no constructor
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -123,7 +123,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
CollationFCD(); // No instantiation.
|
||||
CollationFCD() = delete; // No instantiation.
|
||||
|
||||
static const uint8_t lcccIndex[2048];
|
||||
static const uint8_t tcccIndex[2048];
|
||||
|
|
|
@ -92,8 +92,8 @@ private:
|
|||
int32_t length;
|
||||
|
||||
private:
|
||||
CEBuffer(const CEBuffer &);
|
||||
void operator=(const CEBuffer &);
|
||||
CEBuffer(const CEBuffer &) = delete;
|
||||
void operator=(const CEBuffer &) = delete;
|
||||
|
||||
MaybeStackArray<int64_t, INITIAL_CAPACITY> buffer;
|
||||
};
|
||||
|
|
|
@ -116,7 +116,7 @@ public:
|
|||
private:
|
||||
friend struct CollationDataReader;
|
||||
|
||||
CollationKeys(); // no instantiation
|
||||
CollationKeys() = delete; // no instantiation
|
||||
|
||||
// Secondary level: Compress up to 33 common weights as 05..25 or 25..45.
|
||||
static const uint32_t SEC_COMMON_LOW = Collation::COMMON_BYTE;
|
||||
|
|
|
@ -89,7 +89,7 @@ private:
|
|||
* No copy constructor: A CollationTailoring cannot be copied.
|
||||
* It is immutable, and the data trie cannot be copied either.
|
||||
*/
|
||||
CollationTailoring(const CollationTailoring &other);
|
||||
CollationTailoring(const CollationTailoring &other) = delete;
|
||||
};
|
||||
|
||||
struct U_I18N_API CollationCacheEntry : public SharedObject {
|
||||
|
|
|
@ -285,7 +285,7 @@ public:
|
|||
virtual const char * getType() const override;
|
||||
|
||||
private:
|
||||
IndianCalendar(); // default constructor not implemented
|
||||
IndianCalendar() = delete; // default constructor not implemented
|
||||
|
||||
// Default century.
|
||||
protected:
|
||||
|
|
|
@ -377,7 +377,7 @@ class U_I18N_API IslamicCalendar : public Calendar {
|
|||
virtual const char * getType() const override;
|
||||
|
||||
private:
|
||||
IslamicCalendar(); // default constructor not implemented
|
||||
IslamicCalendar() = delete; // default constructor not implemented
|
||||
|
||||
// Default century.
|
||||
protected:
|
||||
|
|
|
@ -245,8 +245,8 @@ public:
|
|||
virtual UBool isModulusSubstitution() const;
|
||||
|
||||
private:
|
||||
NFSubstitution(const NFSubstitution &other); // forbid copying of this class
|
||||
NFSubstitution &operator=(const NFSubstitution &other); // forbid copying of this class
|
||||
NFSubstitution(const NFSubstitution &other) = delete; // forbid copying of this class
|
||||
NFSubstitution &operator=(const NFSubstitution &other) = delete; // forbid copying of this class
|
||||
|
||||
public:
|
||||
static UClassID getStaticClassID(void);
|
||||
|
|
|
@ -38,8 +38,8 @@ public:
|
|||
BreakIterator &operator*() const { return *ptr; }
|
||||
private:
|
||||
BreakIterator *ptr;
|
||||
SharedBreakIterator(const SharedBreakIterator &);
|
||||
SharedBreakIterator &operator=(const SharedBreakIterator &);
|
||||
SharedBreakIterator(const SharedBreakIterator &) = delete;
|
||||
SharedBreakIterator &operator=(const SharedBreakIterator &) = delete;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
|
|
@ -27,8 +27,8 @@ public:
|
|||
const Calendar &operator*() const { return *ptr; }
|
||||
private:
|
||||
Calendar *ptr;
|
||||
SharedCalendar(const SharedCalendar &);
|
||||
SharedCalendar &operator=(const SharedCalendar &);
|
||||
SharedCalendar(const SharedCalendar &) = delete;
|
||||
SharedCalendar &operator=(const SharedCalendar &) = delete;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
|
|
@ -30,8 +30,8 @@ public:
|
|||
const DateFormatSymbols &get() const { return dfs; }
|
||||
private:
|
||||
DateFormatSymbols dfs;
|
||||
SharedDateFormatSymbols(const SharedDateFormatSymbols &);
|
||||
SharedDateFormatSymbols &operator=(const SharedDateFormatSymbols &);
|
||||
SharedDateFormatSymbols(const SharedDateFormatSymbols &) = delete;
|
||||
SharedDateFormatSymbols &operator=(const SharedDateFormatSymbols &) = delete;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
|
|
@ -27,8 +27,8 @@ public:
|
|||
const NumberFormat &operator*() const { return *ptr; }
|
||||
private:
|
||||
NumberFormat *ptr;
|
||||
SharedNumberFormat(const SharedNumberFormat &);
|
||||
SharedNumberFormat &operator=(const SharedNumberFormat &);
|
||||
SharedNumberFormat(const SharedNumberFormat &) = delete;
|
||||
SharedNumberFormat &operator=(const SharedNumberFormat &) = delete;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
|
|
@ -26,8 +26,8 @@ public:
|
|||
const PluralRules &operator*() const { return *ptr; }
|
||||
private:
|
||||
PluralRules *ptr;
|
||||
SharedPluralRules(const SharedPluralRules &);
|
||||
SharedPluralRules &operator=(const SharedPluralRules &);
|
||||
SharedPluralRules(const SharedPluralRules &) = delete;
|
||||
SharedPluralRules &operator=(const SharedPluralRules &) =delete;
|
||||
};
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
|
|
@ -649,7 +649,7 @@ private:
|
|||
* No Copy constructor.
|
||||
* @internal (private)
|
||||
*/
|
||||
AlphabeticIndex(const AlphabeticIndex &other);
|
||||
AlphabeticIndex(const AlphabeticIndex &other) = delete;
|
||||
|
||||
/**
|
||||
* No assignment.
|
||||
|
|
|
@ -478,7 +478,7 @@ private:
|
|||
*/
|
||||
static UnicodeString& dtos(double value, UnicodeString& string);
|
||||
|
||||
ChoiceFormat(); // default constructor not implemented
|
||||
ChoiceFormat() = delete; // default constructor not implemented
|
||||
|
||||
/**
|
||||
* Construct a new ChoiceFormat with the limits and the corresponding formats
|
||||
|
|
|
@ -351,7 +351,7 @@ private:
|
|||
const CollationElementIterator&
|
||||
operator=(const CollationElementIterator& other);
|
||||
|
||||
CollationElementIterator(); // default constructor not implemented
|
||||
CollationElementIterator() = delete; // default constructor not implemented
|
||||
|
||||
/** Normalizes dir_=1 (just after setOffset()) to dir_=0 (just after reset()). */
|
||||
inline int8_t normalizeDir() const { return dir_ == 1 ? 0 : dir_; }
|
||||
|
|
|
@ -1202,7 +1202,7 @@ private:
|
|||
/**
|
||||
* Assignment operator. Private for now.
|
||||
*/
|
||||
Collator& operator=(const Collator& other);
|
||||
Collator& operator=(const Collator& other) = delete;
|
||||
|
||||
friend class CFactory;
|
||||
friend class SimpleCFactory;
|
||||
|
|
|
@ -920,7 +920,7 @@ private:
|
|||
char validLocale[ULOC_FULLNAME_CAPACITY];
|
||||
char actualLocale[ULOC_FULLNAME_CAPACITY];
|
||||
|
||||
DateFormatSymbols(); // default constructor not implemented
|
||||
DateFormatSymbols() = delete; // default constructor not implemented
|
||||
|
||||
/**
|
||||
* Called by the constructors to actually load data from the resources
|
||||
|
|
|
@ -91,12 +91,12 @@ private:
|
|||
* Copy constructor. One object per locale invariant. Clients
|
||||
* must never copy GenderInfo objects.
|
||||
*/
|
||||
GenderInfo(const GenderInfo& other);
|
||||
GenderInfo(const GenderInfo& other) = delete;
|
||||
|
||||
/**
|
||||
* Assignment operator. Not applicable to immutable objects.
|
||||
*/
|
||||
GenderInfo& operator=(const GenderInfo&);
|
||||
GenderInfo& operator=(const GenderInfo&) = delete;
|
||||
|
||||
GenderInfo();
|
||||
|
||||
|
|
|
@ -487,7 +487,7 @@ public:
|
|||
virtual const char * getType() const override;
|
||||
|
||||
private:
|
||||
GregorianCalendar(); // default constructor not implemented
|
||||
GregorianCalendar() = delete; // default constructor not implemented
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
|
|
@ -275,7 +275,7 @@ class U_I18N_API ListFormatter : public UObject{
|
|||
const UnicodeString items[], int32_t n_items, UnicodeString& appendTo,
|
||||
int32_t index, int32_t &offset, FieldPositionHandler* handler, UErrorCode& errorCode) const;
|
||||
|
||||
ListFormatter();
|
||||
ListFormatter() = delete;
|
||||
|
||||
ListFormatInternal* owned;
|
||||
const ListFormatInternal* data;
|
||||
|
|
|
@ -886,7 +886,7 @@ private:
|
|||
Format** formatAliases; // see getFormats
|
||||
int32_t formatAliasesCapacity;
|
||||
|
||||
MessageFormat(); // default constructor not implemented
|
||||
MessageFormat() = delete; // default constructor not implemented
|
||||
|
||||
/**
|
||||
* This provider helps defer instantiation of a PluralRules object
|
||||
|
|
|
@ -561,7 +561,7 @@ private:
|
|||
double offset;
|
||||
PluralSelectorAdapter pluralRulesWrapper;
|
||||
|
||||
PluralFormat(); // default constructor not implemented
|
||||
PluralFormat() = delete; // default constructor not implemented
|
||||
void init(const PluralRules* rules, UPluralType type, UErrorCode& status);
|
||||
/**
|
||||
* Copies dynamically allocated values (pointer fields).
|
||||
|
|
|
@ -569,7 +569,7 @@ private:
|
|||
RuleChain *mRules;
|
||||
StandardPluralRanges *mStandardPluralRanges;
|
||||
|
||||
PluralRules(); // default constructor not implemented
|
||||
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);
|
||||
|
|
|
@ -1040,7 +1040,7 @@ public:
|
|||
virtual void setDecimalFormatSymbols(const DecimalFormatSymbols& symbols);
|
||||
|
||||
private:
|
||||
RuleBasedNumberFormat(); // default constructor not implemented
|
||||
RuleBasedNumberFormat() = delete; // default constructor not implemented
|
||||
|
||||
// this will ref the localizations if they are not NULL
|
||||
// caller must deref to get adoption
|
||||
|
|
|
@ -1751,10 +1751,10 @@ public:
|
|||
private:
|
||||
// Constructors and other object boilerplate are private.
|
||||
// Instances of RegexMatcher can not be assigned, copied, cloned, etc.
|
||||
RegexMatcher(); // default constructor not implemented
|
||||
RegexMatcher() = delete; // default constructor not implemented
|
||||
RegexMatcher(const RegexPattern *pat);
|
||||
RegexMatcher(const RegexMatcher &other);
|
||||
RegexMatcher &operator =(const RegexMatcher &rhs);
|
||||
RegexMatcher(const RegexMatcher &other) = delete;
|
||||
RegexMatcher &operator =(const RegexMatcher &rhs) = delete;
|
||||
void init(UErrorCode &status); // Common initialization
|
||||
void init2(UText *t, UErrorCode &e); // Common initialization, part 2.
|
||||
|
||||
|
|
|
@ -196,7 +196,7 @@ public:
|
|||
UErrorCode &status);
|
||||
|
||||
ScientificNumberFormatter(const ScientificNumberFormatter &other);
|
||||
ScientificNumberFormatter &operator=(const ScientificNumberFormatter &);
|
||||
ScientificNumberFormatter &operator=(const ScientificNumberFormatter &) = delete;
|
||||
|
||||
static void getPreExponent(
|
||||
const DecimalFormatSymbols &dfs, UnicodeString &preExponent);
|
||||
|
|
|
@ -348,7 +348,7 @@ public:
|
|||
private:
|
||||
friend class MessageFormat;
|
||||
|
||||
SelectFormat(); // default constructor not implemented.
|
||||
SelectFormat() = delete; // default constructor not implemented.
|
||||
|
||||
/**
|
||||
* Finds the SelectFormat sub-message for the given keyword, or the "other" sub-message.
|
||||
|
|
|
@ -800,7 +800,7 @@ private:
|
|||
DOW_LE_DOM_MODE
|
||||
};
|
||||
|
||||
SimpleTimeZone(); // default constructor not implemented
|
||||
SimpleTimeZone() = delete; // default constructor not implemented
|
||||
|
||||
/**
|
||||
* Internal construction method.
|
||||
|
|
|
@ -1226,7 +1226,7 @@ private:
|
|||
|
||||
void initializeBooleanAttributes(void);
|
||||
|
||||
SimpleDateFormat(); // default constructor not implemented
|
||||
SimpleDateFormat() = delete; // default constructor not implemented
|
||||
|
||||
/**
|
||||
* Used by the DateFormat factory methods to construct a SimpleDateFormat.
|
||||
|
|
|
@ -482,7 +482,7 @@ protected:
|
|||
virtual int32_t handlePrev(int32_t position, UErrorCode &status) override;
|
||||
|
||||
private :
|
||||
StringSearch(); // default constructor not implemented
|
||||
StringSearch() = delete; // default constructor not implemented
|
||||
|
||||
// private data members ----------------------------------------------
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ public:
|
|||
static const UChar* U_EXPORT2 getShortID(const UnicodeString& id);
|
||||
|
||||
private:
|
||||
ZoneMeta(); // Prevent construction.
|
||||
ZoneMeta() = delete; // Prevent construction.
|
||||
static UVector* createMetazoneMappings(const UnicodeString &tzid);
|
||||
static UnicodeString& formatCustomID(uint8_t hour, uint8_t min, uint8_t sec, UBool negative, UnicodeString& id);
|
||||
static const UChar* getShortIDFromCanonical(const UChar* canonicalID);
|
||||
|
|
Loading…
Add table
Reference in a new issue