Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
unicoderange.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
/*
5 * Authors: see git history
6 *
7 * Copyright (C) 2014 Authors
8 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
9 */
10
11#ifndef UNICODE_RANGE_H
12#define UNICODE_RANGE_H
13
14#include <glibmm/ustring.h>
15#include <vector>
16
17// A type which can hold any UTF-32 or UCS-4 character code.
18typedef unsigned int gunichar;
19
20struct Urange{
21 char* start;
22 char* end;
23};
24
26public:
27 UnicodeRange(const char* val);
28 int add_range(char* val);
29 bool contains(char unicode);
30 Glib::ustring attribute_string();
32
33private:
34 std::vector<Urange> range;
35 std::vector<gunichar> unichars;
36};
37
38#endif // #ifndef UNICODE_RANGE_H
39
40/*
41 Local Variables:
42 mode:c++
43 c-file-style:"stroustrup"
44 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
45 indent-tabs-mode:nil
46 fill-column:99
47 End:
48*/
49// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
50
int add_range(char *val)
bool contains(char unicode)
std::vector< Urange > range
gunichar sample_glyph()
std::vector< gunichar > unichars
Glib::ustring attribute_string()
char * end
char * start
unsigned int gunichar