Logo Search packages:      
Sourcecode: icu version File versions

BreakIterator * BreakTransliterator::getBreakIterator (  )  [virtual]

Return the break iterator used by this transliterator. Caution, this is the live break iterator; it must not be used while there is any possibility that this transliterator is using it.

Definition at line 158 of file brktrans.cpp.

References BreakIterator::createWordInstance(), Locale::getEnglish(), NULL, and U_ZERO_ERROR.

Referenced by handleTransliterate().

    UErrorCode status = U_ZERO_ERROR;
    if (bi == NULL) {
        // Note:  Thai breaking behavior is universal, it is not
        //        tied to the Thai locale.
        bi = BreakIterator::createWordInstance(Locale::getEnglish(), status);
    return bi;

Generated by  Doxygen 1.6.0   Back to index