summaryrefslogtreecommitdiffstats
path: root/src/unicoderange.h
blob: 2f73f7b475dc266a2c9579840e73040033c201cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <glibmm/ustring.h>
#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);
Glib::ustring attribute_string();
gunichar sample_glyph();

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