]>
Commit | Line | Data |
---|---|---|
b75a7d8f A |
1 | /* |
2 | * @(#)GDEFMarkFilter.cpp 1.5 00/03/15 | |
3 | * | |
4 | * (C) Copyright IBM Corp. 1998, 1999, 2000, 2001 - All Rights Reserved | |
5 | * | |
6 | */ | |
7 | ||
8 | #include "LETypes.h" | |
9 | #include "LEGlyphFilter.h" | |
10 | #include "GDEFMarkFilter.h" | |
11 | #include "GlyphDefinitionTables.h" | |
12 | ||
13 | U_NAMESPACE_BEGIN | |
14 | ||
15 | GDEFMarkFilter::GDEFMarkFilter(const GlyphDefinitionTableHeader *gdefTable) | |
16 | { | |
17 | classDefTable = gdefTable->getGlyphClassDefinitionTable(); | |
18 | } | |
19 | ||
20 | GDEFMarkFilter::~GDEFMarkFilter() | |
21 | { | |
22 | // nothing to do? | |
23 | } | |
24 | ||
25 | le_bool GDEFMarkFilter::accept(LEGlyphID glyph) const | |
26 | { | |
27 | le_int32 glyphClass = classDefTable->getGlyphClass(glyph); | |
28 | ||
29 | return glyphClass == gcdMarkGlyph; | |
30 | } | |
31 | ||
32 | U_NAMESPACE_END |