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

le_bool LEInsertionList::applyInsertions ( LEInsertionCallback callback  ) 

Call the LEInsertionCallback once for each entry on the insertion list.

Parameters:
callback the LEInsertionCallback to call for each insertion.
Returns:
TRUE if callback returned TRUE to terminate the insertion list processing.

For internal use only.

Definition at line 85 of file LEInsertionList.cpp.

References LEInsertionCallback::applyInsertion(), FALSE, head, NULL, and TRUE.

Referenced by LEGlyphStorage::applyInsertions().

{
    for (InsertionRecord *rec = head; rec != NULL; rec = rec->next) {
        if (callback->applyInsertion(rec->position, rec->count, rec->glyphs)) {
            return TRUE;
        }
    }

    return FALSE;
}


Generated by  Doxygen 1.6.0   Back to index