summaryrefslogtreecommitdiffstats
path: root/src/unicoderange.h
blob: 656f53c50e92df2d19439aef7a3ef8ec108a328d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
};