1 /* 2 * 3 * (C) Copyright IBM Corp. 1998 - 2004 - All Rights Reserved 4 * 5 */ 6 7 #include "LETypes.h" 8 #include "LEGlyphFilter.h" 9 #include "GDEFMarkFilter.h" 10 #include "GlyphDefinitionTables.h" 11 12 U_NAMESPACE_BEGIN 13 GDEFMarkFilter(const GlyphDefinitionTableHeader * gdefTable)14GDEFMarkFilter::GDEFMarkFilter(const GlyphDefinitionTableHeader *gdefTable) 15 { 16 classDefTable = gdefTable->getGlyphClassDefinitionTable(); 17 } 18 ~GDEFMarkFilter()19GDEFMarkFilter::~GDEFMarkFilter() 20 { 21 // nothing to do? 22 } 23 accept(LEGlyphID glyph) const24le_bool GDEFMarkFilter::accept(LEGlyphID glyph) const 25 { 26 le_int32 glyphClass = classDefTable->getGlyphClass(glyph); 27 28 return glyphClass == gcdMarkGlyph; 29 } 30 31 U_NAMESPACE_END 32