Logo Search packages:      
Sourcecode: icu version File versions

void TransliteratorIDParser::init (  )  [static, private]

Initialize static memory.

Definition at line 839 of file tridpars.cpp.

References Hashtable::setValueDeleter().

Referenced by registerSpecialInverse(), and specsToSpecialInverse().

                                  {
    // Lock first, check static pointer second
    Mutex lock(&LOCK);
    if (SPECIAL_INVERSES != 0) {
        // We were blocked by another thread in this method
        return;
    }

    SPECIAL_INVERSES = new Hashtable(TRUE);
    SPECIAL_INVERSES->setValueDeleter(uhash_deleteUnicodeString);

    ucln_i18n_registerCleanup();
}


Generated by  Doxygen 1.6.0   Back to index