]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/perf/unisetperf/draft/unicont.h
2 **********************************************************************
3 * Copyright (C) 2007, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
8 * tab size: 8 (not used)
11 * created on: 2007jan15
12 * created by: Markus Scherer
14 * Idea for new common interface underneath the normal UnicodeSet
15 * and other classes, such as "compiled", fast, read-only (immutable)
16 * versions of UnicodeSet.
19 class UnicodeContainable
{
21 virtual ~UnicodeContainable() {}
23 virtual UBool
contains(UChar32 c
) const = 0;
25 virtual int32_t span(const UChar
*s
, int32_t length
);
27 virtual int32_t spanNot(const UChar
*s
, int32_t length
);
29 virtual int32_t spanUTF8(const UChar
*s
, int32_t length
);
31 virtual int32_t spanNotUTF8(const UChar
*s
, int32_t length
);
33 virtual UClassID
getDynamicClassID(void) const;