From 14566438b94c5dfd3d97f72d1926dd9a259734b6 Mon Sep 17 00:00:00 2001 From: Felipe Corr??a da Silva Sanches Date: Mon, 16 Jun 2008 01:24:19 +0000 Subject: UnicodeRange class implementation. This class represents a range of unicode codepoints as used in the u1 and u2 attributes of glyph kerning nodes. (bzr r5949) --- src/unicoderange.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/unicoderange.h (limited to 'src/unicoderange.h') diff --git a/src/unicoderange.h b/src/unicoderange.h new file mode 100644 index 000000000..656f53c50 --- /dev/null +++ b/src/unicoderange.h @@ -0,0 +1,19 @@ +#include +#include + +struct Urange{ + gchar* start; + gchar* end; +}; + +class UnicodeRange{ +public: +UnicodeRange(const gchar* val); +int add_range(gchar* val); +bool contains(gchar unicode); + +private: +std::vector range; +std::vector unichars; +}; + -- cgit v1.2.3