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

U_STABLE void U_EXPORT2 ubrk_close ( UBreakIterator bi  ) 

Close a UBreakIterator. Once closed, a UBreakIterator may no longer be used.

bi The break iterator to close. ICU 2.0

Definition at line 150 of file ubrk.cpp.

References BreakIterator::isBufferClone(), and BreakIterator::~BreakIterator().

    BreakIterator *ubi = (BreakIterator*) bi;
    if (ubi) {
        if (ubi->isBufferClone()) {
            *(uint32_t *)ubi = 0xdeadbeef;
        } else {
            delete ubi;

Generated by  Doxygen 1.6.0   Back to index