]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/mathml_editor/src/dom.hh
* this is a large commit
[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 namespace DOMX = GdomeSmartDOMExt;
10
11 typedef DOM::Char32     TChar;
12 typedef DOM::UCS4String TString;
13
14 inline bool isUnicodeSpace(TChar ch)
15 {
16   return ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r';;
17 }
18
19 inline bool isUnicodeAlpha(TChar ch)
20 {
21   return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z');
22 }
23
24 inline bool isUnicodeDigit(TChar ch)
25 {
26   return (ch >= '0' && ch <= '9');
27 }
28
29 #endif // __dom_hh__