summaryrefslogtreecommitdiffstats
path: root/src/unicoderange.h
blob: b0c7f34a92fea5ae5dd41bbadaab01ab3f031fe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <glib-object.h>
#include<vector>
#include <glibmm.h>

struct Urange{
	gchar* start;
	gchar* end;
};

class UnicodeRange{
public:
UnicodeRange(const gchar* val);
int add_range(gchar* val);
bool contains(gchar unicode);
Glib::ustring attribute_string();
gunichar sample_glyph();

private:
std::vector<Urange> range;
std::vector<gunichar> unichars;
};