Debian Codegraph @

texk/lcdf-typetools/lcdf-typetools-src/otftotfm/uniprop.hh

raw
1 #ifndef OTFTOTFM_UNIPROP_HH
2 #define OTFTOTFM_UNIPROP_HH
3 #include <efont/otf.hh>
4
5 class UnicodeProperty { public:
6
7 enum {
8 P_C = 000, P_Cn = 000, P_Co = 001, P_Cs = 002, P_Cf = 003, P_Cc = 004,
9 P_Z = 010, P_Zs = 010, P_Zl = 011, P_Zp = 012,
10 P_M = 020, P_Mn = 020, P_Mc = 021, P_Me = 022,
11 P_L = 030, P_Lo = 030, P_Lu = 031, P_Ll = 032, P_Lt = 033, P_Lm = 034,
12 P_N = 040, P_No = 040, P_Nd = 041, P_Nl = 042,
13 P_P = 050, P_Po = 050, P_Pc = 051, P_Pd = 052, P_Ps = 053, P_Pe = 054, P_Pi = 055, P_Pf = 056,
14 P_S = 060, P_So = 060, P_Sm = 061, P_Sc = 062, P_Sk = 063,
15 P_TMASK = 0370,
16 P_MAX = 0377
17 };
18
19 static int property(uint32_t uni);
20 static const char* property_name(int p);
21 static bool parse_property(const String&, int& prop, int& prop_mask);
22
23 private:
24
25 enum { P_Lul = 070 };
26 static const unsigned char property_pages[];
27 static const unsigned int property_offsets[];
28 static const int nproperty_offsets;
29
30 static inline const unsigned int* find_offset(uint32_t uni);
31
32 };
33
34 #endif