]>
Commit | Line | Data |
---|---|---|
b75a7d8f | 1 | /* |
b75a7d8f | 2 | * |
374ca955 | 3 | * (C) Copyright IBM Corp. 1998 - 2004 - All Rights Reserved |
b75a7d8f A |
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 | ||
14 | GDEFMarkFilter::GDEFMarkFilter(const GlyphDefinitionTableHeader *gdefTable) | |
15 | { | |
16 | classDefTable = gdefTable->getGlyphClassDefinitionTable(); | |
17 | } | |
18 | ||
19 | GDEFMarkFilter::~GDEFMarkFilter() | |
20 | { | |
21 | // nothing to do? | |
22 | } | |
23 | ||
24 | le_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 |