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

void LEGlyphStorage::reset ( void   ) 

This method frees the glyph, character index, position and auxillary data arrays so that the LayoutEngine can be reused to layout a different characer array. (This method is also called by the destructor)

ICU 3.0

Definition at line 33 of file LEGlyphStorage.cpp.

References fAuxData, fCharIndices, fGlyphCount, fGlyphs, fInsertionList, fPositions, and NULL.

Referenced by LayoutEngine::layoutChars(), LayoutEngine::reset(), and ~LEGlyphStorage().

{
    fGlyphCount = 0;

    if (fPositions != NULL) {
        LE_DELETE_ARRAY(fPositions);
        fPositions = NULL;
    }

    if (fAuxData != NULL) {
        LE_DELETE_ARRAY(fAuxData);
        fAuxData = NULL;
    }

    if (fInsertionList != NULL) {
        delete fInsertionList;
        fInsertionList = NULL;
    }

    if (fCharIndices != NULL) {
        LE_DELETE_ARRAY(fCharIndices);
        fCharIndices = NULL;
    }

    if (fGlyphs != NULL) {
        LE_DELETE_ARRAY(fGlyphs);
        fGlyphs = NULL;
    }
}


Generated by  Doxygen 1.6.0   Back to index