Logo Search packages:      
Sourcecode: icu version File versions  Download package

Transliterator * Transliterator::createInverse ( UErrorCode status  )  const [inherited]

Returns this transliterator's inverse. See the class documentation for details. This implementation simply inverts the two entities in the ID and attempts to retrieve the resulting transliterator. That is, if getID() returns "A-B", then this method will return the result of createInstance("B-A"), or null if that call fails.

Subclasses with knowledge of their inverse may wish to override this method.

Parameters:
status Output param to filled in with a success or an error.
Returns:
a transliterator that is an inverse, not necessarily exact, of this transliterator, or null if no such transliterator is registered.
See also:
registerInstance ICU 2.0
Returns this transliterator's inverse. See the class documentation for details. This implementation simply inverts the two entities in the ID and attempts to retrieve the resulting transliterator. That is, if getID() returns "A-B", then this method will return the result of getInstance("B-A"), or null if that call fails.

This method does not take filtering into account. The returned transliterator will have no filter.

Subclasses with knowledge of their inverse may wish to override this method.

Returns:
a transliterator that is an inverse, not necessarily exact, of this transliterator, or null if no such transliterator is registered.
See also:
registerInstance

Definition at line 884 of file translit.cpp.

References Transliterator::createInstance(), Transliterator::ID, and UTRANS_REVERSE.

Referenced by TransliteratorTest::TestAliasInverseID(), TransliteratorTest::TestCompoundInverseID(), TransliteratorTest::TestCompoundRBT(), TransliteratorTest::TestFilterIDs(), TransliteratorTest::TestIDForms(), TransliteratorTest::TestIncrementalProgress(), and TransliteratorTest::TestNullInverse().

                                                                      {
    UParseError parseError;
    return Transliterator::createInstance(ID, UTRANS_REVERSE,parseError,status);
}


Generated by  Doxygen 1.6.0   Back to index