]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/mathml_editor/src/dom.hh
Initial revision
[helm.git] / helm / DEVEL / mathml_editor / src / dom.hh
1
2 #ifndef __dom_hh__
3 #define __dom_hh__
4
5 #include <GdomeSmartDOM.hh>
6
7 namespace DOM = GdomeSmartDOM;
8
9 typedef DOM::Char32     TChar;
10 typedef DOM::UCS4String TString;
11
12 inline bool isUnicodeSpace(TChar ch)
13 {
14   return ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r';;
15 }
16
17 inline bool isUnicodeAlpha(TChar ch)
18 {
19   return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z');
20 }
21
22 inline bool isUnicodeDigit(TChar ch)
23 {
24   return (ch >= '0' && ch <= '9');
25 }
26
27 #endif // __dom_hh__