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

int32_t U_EXPORT2 Transliterator::countAvailableIDs ( void   )  [static, inherited]

Return the number of IDs currently registered with the system. To retrieve the actual IDs, call getAvailableID(i) with i from 0 to countAvailableIDs() - 1.

Returns:
the number of IDs currently registered with the system. ICU 3.4 use getAvailableIDs() instead
== OBSOLETE - remove in ICU 3.4 == Return the number of IDs currently registered with the system. To retrieve the actual IDs, call getAvailableID(i) with i from 0 to countAvailableIDs() - 1.

Definition at line 1306 of file translit.cpp.

References TransliteratorRegistry::countAvailableIDs(), and U_ZERO_ERROR.

Referenced by TransliteratorTest::TestInstantiation(), TransliteratorTest::TestSTV(), utrans_countAvailableIDs(), and utrans_openIDs().

                                                        {
    int32_t retVal = 0;
    Mutex lock(&registryMutex);
    UErrorCode ec = U_ZERO_ERROR;
    if (HAVE_REGISTRY(ec)) {
        retVal = registry->countAvailableIDs();
    }
    return retVal;
}


Generated by  Doxygen 1.6.0   Back to index