X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=blobdiff_plain;f=helm%2FDEVEL%2Fmathml_editor%2Fsrc%2Fdom.hh;fp=helm%2FDEVEL%2Fmathml_editor%2Fsrc%2Fdom.hh;h=f2c42dba04883ca11b8600abc590868aed164175;hp=0000000000000000000000000000000000000000;hb=89262281b6e83bd2321150f81f1a0583645eb0c8;hpb=b1fb6b8e1767d775bc452303629e95941d142bea diff --git a/helm/DEVEL/mathml_editor/src/dom.hh b/helm/DEVEL/mathml_editor/src/dom.hh new file mode 100644 index 000000000..f2c42dba0 --- /dev/null +++ b/helm/DEVEL/mathml_editor/src/dom.hh @@ -0,0 +1,27 @@ + +#ifndef __dom_hh__ +#define __dom_hh__ + +#include + +namespace DOM = GdomeSmartDOM; + +typedef DOM::Char32 TChar; +typedef DOM::UCS4String TString; + +inline bool isUnicodeSpace(TChar ch) +{ + return ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r';; +} + +inline bool isUnicodeAlpha(TChar ch) +{ + return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'); +} + +inline bool isUnicodeDigit(TChar ch) +{ + return (ch >= '0' && ch <= '9'); +} + +#endif // __dom_hh__