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