]> git.saurik.com Git - apple/icu.git/blame - icuSources/layout/GDEFMarkFilter.cpp
ICU-511.27.tar.gz
[apple/icu.git] / icuSources / layout / GDEFMarkFilter.cpp
CommitLineData
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
12U_NAMESPACE_BEGIN
13
14GDEFMarkFilter::GDEFMarkFilter(const GlyphDefinitionTableHeader *gdefTable)
15{
16 classDefTable = gdefTable->getGlyphClassDefinitionTable();
17}
18
19GDEFMarkFilter::~GDEFMarkFilter()
20{
21 // nothing to do?
22}
23
24le_bool GDEFMarkFilter::accept(LEGlyphID glyph) const
25{
26 le_int32 glyphClass = classDefTable->getGlyphClass(glyph);
27
28 return glyphClass == gcdMarkGlyph;
29}
30
31U_NAMESPACE_END