mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-359 fixed virtual destructors/members incoherences.
X-SVN-Rev: 1142
This commit is contained in:
parent
34e9e8fc9f
commit
3950fe01a2
18 changed files with 23 additions and 27 deletions
icu4c/source
|
@ -52,8 +52,7 @@
|
|||
class U_COMMON_API DigitList { // Declare external to make compiler happy
|
||||
public:
|
||||
DigitList();
|
||||
|
||||
~DigitList(); // Make this virtual if subclassing is desired later
|
||||
~DigitList();
|
||||
|
||||
DigitList(const DigitList&); // copy constructor
|
||||
|
||||
|
@ -76,13 +75,13 @@ public:
|
|||
* you hit the decimal point, you set myDigitList.fDecimalAt = myDigitList.fCount;
|
||||
* then go on appending digits.
|
||||
*/
|
||||
virtual void clear(void);
|
||||
void clear(void);
|
||||
|
||||
/**
|
||||
* Appends digits to the list. Ignores all digits beyond the first DBL_DIG,
|
||||
* since they are not significant for either longs or doubles.
|
||||
*/
|
||||
virtual void append(char digit);
|
||||
void append(char digit);
|
||||
|
||||
/**
|
||||
* Utility routine to get the value of the digit list
|
||||
|
|
|
@ -52,8 +52,7 @@
|
|||
class U_COMMON_API DigitList { // Declare external to make compiler happy
|
||||
public:
|
||||
DigitList();
|
||||
|
||||
~DigitList(); // Make this virtual if subclassing is desired later
|
||||
~DigitList();
|
||||
|
||||
DigitList(const DigitList&); // copy constructor
|
||||
|
||||
|
@ -76,13 +75,13 @@ public:
|
|||
* you hit the decimal point, you set myDigitList.fDecimalAt = myDigitList.fCount;
|
||||
* then go on appending digits.
|
||||
*/
|
||||
virtual void clear(void);
|
||||
void clear(void);
|
||||
|
||||
/**
|
||||
* Appends digits to the list. Ignores all digits beyond the first DBL_DIG,
|
||||
* since they are not significant for either longs or doubles.
|
||||
*/
|
||||
virtual void append(char digit);
|
||||
void append(char digit);
|
||||
|
||||
/**
|
||||
* Utility routine to get the value of the digit list
|
||||
|
|
|
@ -99,13 +99,13 @@ public:
|
|||
* Returns true if "other" is the same as "this"
|
||||
* @stable
|
||||
*/
|
||||
virtual bool_t operator==(const CollationElementIterator& other) const;
|
||||
bool_t operator==(const CollationElementIterator& other) const;
|
||||
|
||||
/**
|
||||
* Returns true if "other" is not the same as "this".
|
||||
* @stable
|
||||
*/
|
||||
virtual bool_t operator!=(const CollationElementIterator& other) const;
|
||||
bool_t operator!=(const CollationElementIterator& other) const;
|
||||
|
||||
/**
|
||||
* Resets the cursor to the beginning of the string.
|
||||
|
|
|
@ -35,7 +35,7 @@ public:
|
|||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
|
||||
CollationDummyTest();
|
||||
~CollationDummyTest();
|
||||
virtual ~CollationDummyTest();
|
||||
void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
|
||||
|
||||
// main test method called with different strengths,
|
||||
|
|
|
@ -39,8 +39,7 @@ public:
|
|||
enum EToken_Len { MAX_TOKEN_LEN = 16 };
|
||||
|
||||
CollationCurrencyTest();
|
||||
~CollationCurrencyTest();
|
||||
|
||||
virtual ~CollationCurrencyTest();
|
||||
void runIndexedTest(int32_t index, bool_t exec, char* &name, char* par = NULL);
|
||||
|
||||
void currencyTest(char *par);
|
||||
|
|
|
@ -32,7 +32,7 @@ public:
|
|||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
|
||||
CollationDanishTest();
|
||||
~CollationDanishTest();
|
||||
virtual ~CollationDanishTest();
|
||||
void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
|
||||
|
||||
// main test routine, Tests rules specific to danish collation
|
||||
|
|
|
@ -30,7 +30,7 @@ public:
|
|||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
|
||||
CollationGermanTest();
|
||||
~CollationGermanTest();
|
||||
virtual ~CollationGermanTest();
|
||||
void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
|
||||
|
||||
//main test routine, tests rules specific to germa locale
|
||||
|
|
|
@ -32,7 +32,7 @@ public:
|
|||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
|
||||
CollationEnglishTest();
|
||||
~CollationEnglishTest();
|
||||
virtual ~CollationEnglishTest();
|
||||
void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
|
||||
|
||||
// main test routine, tests rules defined by the "en" locale
|
||||
|
|
|
@ -32,7 +32,7 @@ public:
|
|||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
|
||||
CollationSpanishTest();
|
||||
~CollationSpanishTest();
|
||||
virtual ~CollationSpanishTest();
|
||||
void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
|
||||
|
||||
// amin test routine, tests rules specific to the spanish locale
|
||||
|
|
|
@ -31,7 +31,7 @@ public:
|
|||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
|
||||
CollationFinnishTest();
|
||||
~CollationFinnishTest();
|
||||
virtual ~CollationFinnishTest();
|
||||
void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
|
||||
|
||||
// main test routine, tests rules specific to the finish locale
|
||||
|
|
|
@ -30,7 +30,7 @@ public:
|
|||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
|
||||
CollationFrenchTest();
|
||||
~CollationFrenchTest();
|
||||
virtual ~CollationFrenchTest();
|
||||
void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
|
||||
|
||||
// amin test routine, test rules specific to the french locale
|
||||
|
|
|
@ -56,7 +56,7 @@ public:
|
|||
enum ETotal_Test { TOTALTESTSET = 30 };
|
||||
|
||||
G7CollationTest() {}
|
||||
~G7CollationTest() {}
|
||||
virtual ~G7CollationTest() {}
|
||||
void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
|
||||
|
||||
// main test routine, tests comparisons for a set of strings against sets of expected results
|
||||
|
|
|
@ -34,7 +34,7 @@ public:
|
|||
enum EToken_Len { MAX_TOKEN_LEN = 5 };
|
||||
|
||||
CollationISOTest();
|
||||
~CollationISOTest();
|
||||
virtual ~CollationISOTest();
|
||||
void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
|
||||
|
||||
// test proper comparing for 3774 entries of ISO 14651 characters
|
||||
|
|
|
@ -43,7 +43,7 @@ public:
|
|||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
|
||||
CollationIteratorTest();
|
||||
~CollationIteratorTest();
|
||||
virtual ~CollationIteratorTest();
|
||||
|
||||
void runIndexedTest(int32_t index, bool_t exec, char* &name, char* par = NULL);
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ public:
|
|||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
|
||||
CollationKanaTest();
|
||||
~CollationKanaTest();
|
||||
virtual ~CollationKanaTest();
|
||||
void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
|
||||
|
||||
// main test routine, tests rules specific to "Kana" locale
|
||||
|
|
|
@ -39,7 +39,7 @@ public:
|
|||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
|
||||
CollationRegressionTest();
|
||||
~CollationRegressionTest();
|
||||
virtual ~CollationRegressionTest();
|
||||
|
||||
void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
|
||||
|
||||
|
|
|
@ -19,8 +19,7 @@ class CollationThaiTest : public IntlTest {
|
|||
public:
|
||||
|
||||
CollationThaiTest();
|
||||
|
||||
~CollationThaiTest();
|
||||
virtual ~CollationThaiTest();
|
||||
|
||||
void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ public:
|
|||
enum EToken_Len { MAX_TOKEN_LEN = 128 };
|
||||
|
||||
CollationTurkishTest();
|
||||
~CollationTurkishTest();
|
||||
virtual ~CollationTurkishTest();
|
||||
void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
|
||||
|
||||
// main test routine, tests rules specific to turkish locale
|
||||
|
|
Loading…
Add table
Reference in a new issue