unicoderange.h revision 5c45bb188ab729e501e48732842cb9de6a9813be
ccf9d4a5c6453fa9f8b839baeee25147865fbb7dJames Phillpotts#include <glibmm/ustring.h>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#include <glib-object.h>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#include <vector>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterstruct Urange{
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster gchar* start;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster gchar* end;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster};
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterclass UnicodeRange{
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterpublic:
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterUnicodeRange(const gchar* val);
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterint add_range(gchar* val);
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterbool contains(gchar unicode);
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterGlib::ustring attribute_string();
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fostergunichar sample_glyph();
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterprivate:
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterstd::vector<Urange> range;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterstd::vector<gunichar> unichars;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster};
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster