summaryrefslogtreecommitdiffstats
path: root/src/unicoderange.h
diff options
context:
space:
mode:
authorFelipe Corr??a da Silva Sanches <juca@members.fsf.org>2008-06-16 01:24:19 +0000
committerJucaBlues <JucaBlues@users.sourceforge.net>2008-06-16 01:24:19 +0000
commit14566438b94c5dfd3d97f72d1926dd9a259734b6 (patch)
tree62c995ca215f3234e2409667945fc989521b52c2 /src/unicoderange.h
parentnew command: relink clone to copied object (diff)
downloadinkscape-14566438b94c5dfd3d97f72d1926dd9a259734b6.tar.gz
inkscape-14566438b94c5dfd3d97f72d1926dd9a259734b6.zip
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)
Diffstat (limited to 'src/unicoderange.h')
-rw-r--r--src/unicoderange.h19
1 files changed, 19 insertions, 0 deletions
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 <glib-object.h>
+#include<vector>
+
+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<Urange> range;
+std::vector<gunichar> unichars;
+};
+