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