1/*
2 *
3 * (C) Copyright IBM Corp. 1998-2011 - All Rights Reserved
4 *
5 */
6
7#ifndef __LEGLYPHFILTER__H
8#define __LEGLYPHFILTER__H
9
10#include "LETypes.h"
11
12U_NAMESPACE_BEGIN
13
14#ifndef U_HIDE_INTERNAL_API
15/**
16 * This is a helper class that is used to
17 * recognize a set of glyph indices.
18 *
19 * @internal
20 */
21class LEGlyphFilter /* not : public UObject because this is an interface/mixin class */ {
22public:
23    /**
24     * Destructor.
25     * @internal
26     */
27    virtual ~LEGlyphFilter();
28
29    /**
30     * This method is used to test a particular
31     * glyph index to see if it is in the set
32     * recognized by the filter.
33     *
34     * @param glyph - the glyph index to be tested
35     *
36     * @return TRUE if the glyph index is in the set.
37     *
38     * @internal
39     */
40    virtual le_bool accept(LEGlyphID glyph) const = 0;
41};
42#endif  /* U_HIDE_INTERNAL_API */
43
44U_NAMESPACE_END
45#endif
46