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

void LEGlyphStorage::setCharIndex ( le_int32  glyphIndex,
le_int32  charIndex,
LEErrorCode success 
)

Set the char index for a particular glyph.

Parameters:
glyphIndex the index of the glyph
charIndex the new char index
success will be set to an error code if the char index cannot be set.
ICU 3.0

Definition at line 311 of file LEGlyphStorage.cpp.

References fCharIndices, fGlyphCount, LE_FAILURE, LE_INDEX_OUT_OF_BOUNDS_ERROR, LE_NO_LAYOUT_ERROR, and NULL.

Referenced by HangulOpenTypeLayoutEngine::characterProcessing(), and moveGlyph().

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

    if (fCharIndices == NULL) {
        success = LE_NO_LAYOUT_ERROR;
        return;
    }

    if (glyphIndex < 0 || glyphIndex >= fGlyphCount) {
        success = LE_INDEX_OUT_OF_BOUNDS_ERROR;
        return;
    }

    fCharIndices[glyphIndex] = charIndex;
}


Generated by  Doxygen 1.6.0   Back to index