2 * Copyright 2009, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef UNICODE_BLOCKS_H
6 #define UNICODE_BLOCKS_H
9 #include <UnicodeBlockObjects.h>
12 struct unicode_block_entry
{
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