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

void Transliterator::setID ( const UnicodeString id  )  [inline, protected, inherited]

Set the ID of this transliterators. Subclasses shouldn't do this, unless the underlying script behavior has changed.

Parameters:
id the new id t to be set. ICU 2.4

Definition at line 1297 of file translit.h.

References UnicodeString::append(), Transliterator::ID, UnicodeString::length(), and UnicodeString::truncate().

Referenced by CompoundTransliterator::adoptTransliterators(), Transliterator::createBasicInstance(), Transliterator::createFromRules(), and CompoundTransliterator::init().

                                                         {
    ID = id;
    // NUL-terminate the ID string, which is a non-aliased copy.
    ID.append((UChar)0);
    ID.truncate(ID.length()-1);
}


Generated by  Doxygen 1.6.0   Back to index