summaryrefslogtreecommitdiff
path: root/lib/fribidi-char-sets-utf8.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fribidi-char-sets-utf8.h')
-rw-r--r--lib/fribidi-char-sets-utf8.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/lib/fribidi-char-sets-utf8.h b/lib/fribidi-char-sets-utf8.h
new file mode 100644
index 0000000..a8832ca
--- /dev/null
+++ b/lib/fribidi-char-sets-utf8.h
@@ -0,0 +1,60 @@
+/* FriBidi
+ * fribidi-char-sets-utf8.h - UTF-8 character set conversion routines
+ *
+ * Authors:
+ * Behdad Esfahbod, 2001, 2002, 2004
+ * Dov Grobgeld, 1999, 2000
+ *
+ * Copyright (C) 2004 Sharif FarsiWeb, Inc
+ * Copyright (C) 2001,2002 Behdad Esfahbod
+ * Copyright (C) 1999,2000 Dov Grobgeld
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this library, in a file named COPYING; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA
+ *
+ * For licensing issues, contact <fribidi.license@gmail.com>.
+ */
+
+#ifndef _FRIBIDI_CHAR_SETS_UTF8_H
+#define _FRIBIDI_CHAR_SETS_UTF8_H
+
+#include "fribidi-common.h"
+
+#include "fribidi-types.h"
+
+#include "fribidi-begindecls.h"
+
+#define fribidi_char_set_name_utf8 "UTF-8"
+#define fribidi_char_set_title_utf8 "UTF-8 (Unicode)"
+#define fribidi_char_set_desc_utf8 NULL
+
+FriBidiStrIndex fribidi_utf8_to_unicode (
+ const char *s,
+ FriBidiStrIndex length,
+ FriBidiChar *us
+);
+
+FriBidiStrIndex fribidi_unicode_to_utf8 (
+ const FriBidiChar *us,
+ FriBidiStrIndex length,
+ char *s
+);
+
+#include "fribidi-enddecls.h"
+
+#endif /* !_FRIBIDI_CHAR_SETS_UTF8_H */
+/* Editor directions:
+ * vim:textwidth=78:tabstop=8:shiftwidth=2:autoindent:cindent
+ */