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

le_int32 LEGlyphStorage::allocateAuxData ( LEErrorCode success  ) 

This method allocates the storage for the auxillary glyph data.

Parameters:
success set to an error code if the aulillary data array cannot be allocated.
Returns:
the size of the auxillary data array.
ICU 3.6

Definition at line 148 of file LEGlyphStorage.cpp.

References fAuxData, fGlyphCount, LE_FAILURE, LE_INTERNAL_ERROR, LE_MEMORY_ALLOCATION_ERROR, and NULL.

Referenced by TibetanOpenTypeLayoutEngine::characterProcessing(), OpenTypeLayoutEngine::characterProcessing(), LayoutEngine::characterProcessing(), KhmerOpenTypeLayoutEngine::characterProcessing(), IndicOpenTypeLayoutEngine::characterProcessing(), HanOpenTypeLayoutEngine::characterProcessing(), HangulOpenTypeLayoutEngine::characterProcessing(), and ArabicOpenTypeLayoutEngine::characterProcessing().

{
    if (LE_FAILURE(success)) {
        return -1;
    }

    if (fAuxData != NULL) {
        success = LE_INTERNAL_ERROR;
        return -1;
    }

    fAuxData = LE_NEW_ARRAY(le_uint32, fGlyphCount);

    if (fAuxData == NULL) {
        success = LE_MEMORY_ALLOCATION_ERROR;
        return -1;
    }

    return fGlyphCount;
}


Generated by  Doxygen 1.6.0   Back to index