Cross Reference: unicoderange.h
xref
: /
inkscape
/
src
/
unicoderange.h
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
5c45bb188ab729e501e48732842cb9de6a9813be
Alex Valavanis
#
include
<
glibmm
/
ustring.h
>
5c45bb188ab729e501e48732842cb9de6a9813be
Alex Valavanis
#
include
<
vector
>
963d87c95becc6ec4f174719cbb31aec3a5e989a
JucaBlues
11f343b8117dbf56931f537820c2749a8232fec2
Liam P. White
// A type which can hold any UTF-32 or UCS-4 character code.
11f343b8117dbf56931f537820c2749a8232fec2
Liam P. White
typedef
unsigned
int
gunichar
;
11f343b8117dbf56931f537820c2749a8232fec2
Liam P. White
963d87c95becc6ec4f174719cbb31aec3a5e989a
JucaBlues
struct
Urange
{
11f343b8117dbf56931f537820c2749a8232fec2
Liam P. White
char
*
start
;
11f343b8117dbf56931f537820c2749a8232fec2
Liam P. White
char
*
end
;
963d87c95becc6ec4f174719cbb31aec3a5e989a
JucaBlues
};
963d87c95becc6ec4f174719cbb31aec3a5e989a
JucaBlues
963d87c95becc6ec4f174719cbb31aec3a5e989a
JucaBlues
class
UnicodeRange
{
963d87c95becc6ec4f174719cbb31aec3a5e989a
JucaBlues
public
:
11f343b8117dbf56931f537820c2749a8232fec2
Liam P. White
UnicodeRange
(
const
char
*
val
);
11f343b8117dbf56931f537820c2749a8232fec2
Liam P. White
int
add_range
(
char
*
val
);
11f343b8117dbf56931f537820c2749a8232fec2
Liam P. White
bool
contains
(
char
unicode
);
280e31bdf7f5ffd28f8b14565c1d93de4070bd0c
JucaBlues
Glib
::
ustring
attribute_string
();
280e31bdf7f5ffd28f8b14565c1d93de4070bd0c
JucaBlues
gunichar
sample_glyph
();
963d87c95becc6ec4f174719cbb31aec3a5e989a
JucaBlues
963d87c95becc6ec4f174719cbb31aec3a5e989a
JucaBlues
private
:
963d87c95becc6ec4f174719cbb31aec3a5e989a
JucaBlues
std
::
vector
<
Urange
>
range
;
963d87c95becc6ec4f174719cbb31aec3a5e989a
JucaBlues
std
::
vector
<
gunichar
>
unichars
;
963d87c95becc6ec4f174719cbb31aec3a5e989a
JucaBlues
};
963d87c95becc6ec4f174719cbb31aec3a5e989a
JucaBlues