summaryrefslogtreecommitdiff
path: root/fribidi_char_sets_utf8.h
diff options
context:
space:
mode:
authorbehdad <behdad>2002-01-01 00:59:28 +0000
committerbehdad <behdad>2002-01-01 00:59:28 +0000
commit52ac73796959aae40315b0958622b94d6cddab62 (patch)
treebb021bd0fc961ef7e207d0c315c3504f0d2b946b /fribidi_char_sets_utf8.h
parent37427f6ad8ebb94823d96edaddd4741303eec675 (diff)
Old interface is back, new ones start with fribidix.
Diffstat (limited to 'fribidi_char_sets_utf8.h')
-rw-r--r--fribidi_char_sets_utf8.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/fribidi_char_sets_utf8.h b/fribidi_char_sets_utf8.h
index 31ac3c1..26b777b 100644
--- a/fribidi_char_sets_utf8.h
+++ b/fribidi_char_sets_utf8.h
@@ -35,16 +35,24 @@
#define fribidi_char_set_enter_utf8 NULL
#define fribidi_char_set_leave_utf8 NULL
-int fribidi_unicode_to_utf8 (FriBidiChar *us, int length,
- /* Output */
- char *s);
+int fribidix_unicode_to_utf8 (FriBidiChar *us, int length,
+ /* Output */
+ char *s);
/* warning: the length of output string may exceed the length of the input */
/* the length of the string is returned */
-int fribidi_utf8_to_unicode (char *s, int length,
- /* Output */
- FriBidiChar *us);
+int fribidix_utf8_to_unicode (char *s, int length,
+ /* Output */
+ FriBidiChar *us);
-#endif
+/* Old style, just for compatibility. do not use these. */
+
+#define fribidi_utf8_to_unicode(s, us) \
+ fribidix_utf8_to_unicode(s, strlen(s), us)
+
+#define fribidi_unicode_to_utf8(us, length, s) \
+ fribidix_unicode_to_utf8(us, length, s)
+
+#endif /* FRIBIDI_CHAR_SETS_UTF8_H */
#endif