]> git.saurik.com Git - apple/icu.git/blob - icuSources/layout/GDEFMarkFilter.cpp
ICU-8.11.tar.gz
[apple/icu.git] / icuSources / layout / GDEFMarkFilter.cpp
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
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