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

int32_t U_EXPORT2 Transliterator::countAvailableVariants ( const UnicodeString source,
const UnicodeString target 
) [static, inherited]

Return the number of registered variant specifiers for a given source-target pair.

Parameters:
source the source specifiers.
target the target specifiers. ICU 2.0

Definition at line 1381 of file translit.cpp.

References Transliterator::_countAvailableVariants(), and U_ZERO_ERROR.

Referenced by TransliteratorTest::TestIncrementalProgress(), and TransliteratorTest::TestSTV().

                                                                            {
    Mutex lock(&registryMutex);
    UErrorCode ec = U_ZERO_ERROR;
    return HAVE_REGISTRY(ec) ? _countAvailableVariants(source, target) : 0;
}


Generated by  Doxygen 1.6.0   Back to index