summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icu-xetex/layout/DefaultCharMapper.h
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-04-20 18:13:48 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-04-20 18:13:48 +0000
commite5786f530f9555469c01435f86039b06aa53feba (patch)
treec868e8d32282422d7d445b729db95c3fcdafb6d0 /Build/source/libs/icu/icu-xetex/layout/DefaultCharMapper.h
parentebaa1768b43c8606d923d2e861b5286b74207b3e (diff)
new build system: build icu libs and xetex plus misc updates
git-svn-id: svn://tug.org/texlive/trunk@12759 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu/icu-xetex/layout/DefaultCharMapper.h')
-rw-r--r--Build/source/libs/icu/icu-xetex/layout/DefaultCharMapper.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-xetex/layout/DefaultCharMapper.h b/Build/source/libs/icu/icu-xetex/layout/DefaultCharMapper.h
new file mode 100644
index 00000000000..c0e1bc1c33b
--- /dev/null
+++ b/Build/source/libs/icu/icu-xetex/layout/DefaultCharMapper.h
@@ -0,0 +1,57 @@
+/*
+ * (C) Copyright IBM Corp. 1998-2007 - All Rights Reserved
+ *
+ */
+
+#ifndef __DEFAULTCHARMAPPER_H
+#define __DEFAULTCHARMAPPER_H
+
+/**
+ * \file
+ * \internal
+ */
+
+#include "LETypes.h"
+#include "LEFontInstance.h"
+
+U_NAMESPACE_BEGIN
+
+/**
+ * This class is an instance of LECharMapper which
+ * implements control character filtering and bidi
+ * mirroring.
+ *
+ * @see LECharMapper
+ */
+class DefaultCharMapper : public UMemory, public LECharMapper
+{
+private:
+ le_bool fFilterControls;
+ le_bool fMirror;
+
+ static const LEUnicode32 controlChars[];
+
+ static const le_int32 controlCharsCount;
+
+ static const LEUnicode32 mirroredChars[];
+ static const LEUnicode32 srahCderorrim[];
+
+ static const le_int32 mirroredCharsCount;
+
+public:
+ DefaultCharMapper(le_bool filterControls, le_bool mirror)
+ : fFilterControls(filterControls), fMirror(mirror)
+ {
+ // nothing
+ };
+
+ ~DefaultCharMapper()
+ {
+ // nada
+ };
+
+ LEUnicode32 mapChar(LEUnicode32 ch) const;
+};
+
+U_NAMESPACE_END
+#endif