btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / charactermap / UnicodeBlocks.h
blob7e90382f99607785dba9c796e0940c8a262ef608
1 /*
2 * Copyright 2009, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef UNICODE_BLOCKS_H
6 #define UNICODE_BLOCKS_H
9 #include <UnicodeBlockObjects.h>
12 struct unicode_block_entry {
13 const char* name;
14 uint32 start;
15 uint32 end;
16 bool private_block;
17 const unicode_block& block;
19 uint32 Count() const { return end + 1 - start; }
22 extern const unicode_block kNoBlock;
23 extern const struct unicode_block_entry kUnicodeBlocks[];
24 extern const uint32 kNumUnicodeBlocks;
26 int32 BlockForCharacter(const uint32 character);
28 #endif // UNICODE_BLOCKS_H