/*
*
- * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
+ * (C) Copyright IBM Corp. 1998-2008 - All Rights Reserved
*
*/
U_NAMESPACE_BEGIN
-le_uint32 MultipleSubstitutionSubtable::process(GlyphIterator *glyphIterator, const LEGlyphFilter *filter) const
+le_uint32 MultipleSubstitutionSubtable::process(GlyphIterator *glyphIterator, LEErrorCode& success, const LEGlyphFilter *filter) const
{
+ if (LE_FAILURE(success)) {
+ return 0;
+ }
+
LEGlyphID glyph = glyphIterator->getCurrGlyphID();
// If there's a filter, we only want to do the
}
}
- LEGlyphID *newGlyphs = glyphIterator->insertGlyphs(glyphCount);
+ LEGlyphID *newGlyphs = glyphIterator->insertGlyphs(glyphCount, success);
+ if (LE_FAILURE(success)) {
+ return 0;
+ }
+
le_int32 insert = 0, direction = 1;
if (glyphIterator->isRightToLeft()) {