summaryrefslogtreecommitdiff
path: root/source/fitz/bidi-impl.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-01-15 16:47:52 +0000
committerRobin Watts <robin.watts@artifex.com>2016-01-18 19:25:12 +0000
commit8876142a36c76d242f5a1a73dd66fa0430847ddd (patch)
tree24e9f41b48228d2503dc6d01fc187cde7a76c0b8 /source/fitz/bidi-impl.h
parent81ce5000573a1e2b2fbb0b82789452931566af98 (diff)
downloadmupdf-8876142a36c76d242f5a1a73dd66fa0430847ddd.tar.xz
First import of bidi code.
Diffstat (limited to 'source/fitz/bidi-impl.h')
-rw-r--r--source/fitz/bidi-impl.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/source/fitz/bidi-impl.h b/source/fitz/bidi-impl.h
new file mode 100644
index 00000000..86aeb8d1
--- /dev/null
+++ b/source/fitz/bidi-impl.h
@@ -0,0 +1,37 @@
+// File: Bidi.h
+//
+/* For use with Bidi Reference Implementation
+ For more information see the associated file bidi.cpp
+
+ Credits:
+ -------
+ Written by: Asmus Freytag
+ Command line interface by: Rick McGowan
+ Verification (v24): Doug Felt
+
+ Disclaimer and legal rights:
+ ---------------------------
+ Copyright (C) 1999-2009, ASMUS, Inc. All Rights Reserved.
+ Distributed under the Terms of Use in http://www.unicode.org/copyright.html.
+
+ THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
+ IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
+ BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
+ OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE SOFTWARE.
+
+ The files bidi.rc, and resource.h are distributed together with this file and are included
+ in the above definition of software.
+*/
+// Copyright (C) 1999-2009, ASMUS, Inc. All Rights Reserved
+
+#include "mupdf/fitz.h"
+
+void Bidi_resolveNeutrals(int baselevel, int *pcls, const int *plevel, int cch);
+void Bidi_resolveImplicit(const int * pcls, int * plevel, int cch);
+void Bidi_resolveWeak(fz_context *ctx, int baselevel, int *pcls, int *plevel, int cch);
+void Bidi_resolveWhitespace(int baselevel, const int *pcls, int *plevel, int cch);
+int Bidi_resolveExplicit(int level, int dir, int * pcls, int * plevel, int cch, int nNest);