ICU-5279 Hide RuleBasedTransliterator

X-SVN-Rev: 21691
This commit is contained in:
George Rhoten 2007-06-11 15:15:47 +00:00
parent 5e71954172
commit ff56edb93b
2 changed files with 9 additions and 6 deletions

View file

@ -1,6 +1,6 @@
/*
**********************************************************************
* Copyright (C) 1999-2004, International Business Machines
* Copyright (C) 1999-2007, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Date Name Description
@ -286,7 +286,7 @@ class TransliterationRuleData;
* @author Alan Liu
* @internal Use transliterator factory methods instead since this class will be removed in that release.
*/
class U_I18N_API RuleBasedTransliterator : public Transliterator {
class RuleBasedTransliterator : public Transliterator {
private:
/**
* The data object is immutable, so we can freely share it with
@ -443,7 +443,7 @@ public:
* @return The class ID for all objects of this class.
* @internal Use transliterator factory methods instead since this class will be removed in that release.
*/
static UClassID U_EXPORT2 getStaticClassID(void);
U_I18N_API static UClassID U_EXPORT2 getStaticClassID(void);
/**
* Returns a unique class ID <b>polymorphically</b>. This method

View file

@ -1121,14 +1121,17 @@ void TransliteratorTest::TestCopyJ476(void) {
// see that its copy still works.
Transliterator *t2 = 0;
{
UParseError parseError;
UErrorCode status = U_ZERO_ERROR;
RuleBasedTransliterator t1("t1", "a>A;b>B;", status);
Transliterator *t1 = Transliterator::createFromRules("t1",
"a>A;b>B;", UTRANS_FORWARD, parseError, status);
if (U_FAILURE(status)) {
errln("FAIL: RBT constructor");
return;
}
t2 = new RuleBasedTransliterator(t1);
expect(t1, "abc", "ABc");
t2 = t1->clone(); // Call copy constructor under the covers.
expect(*t1, "abc", "ABc");
delete t1;
}
expect(*t2, "abc", "ABc");
delete t2;