| 1 | /* FriBidi - Library of BiDi algorithm |
---|
| 2 | * Copyright (C) 1999,2000 Dov Grobgeld, and |
---|
| 3 | * Copyright (C) 2001,2002 Behdad Esfahbod. |
---|
| 4 | * |
---|
| 5 | * This library is free software; you can redistribute it and/or |
---|
| 6 | * modify it under the terms of the GNU Lesser General Public |
---|
| 7 | * License as published by the Free Software Foundation; either |
---|
| 8 | * version 2.1 of the License, or (at your option) any later version. |
---|
| 9 | * |
---|
| 10 | * This library is distributed in the hope that it will be useful, |
---|
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
| 13 | * Lesser General Public License for more details. |
---|
| 14 | * |
---|
| 15 | * You should have received a copy of the GNU Lesser General Public License |
---|
| 16 | * along with this library, in a file named COPYING; if not, write to the |
---|
| 17 | * Free Software Foundation, Inc., 59 Temple Place, Suite 330, |
---|
| 18 | * Boston, MA 02111-1307, USA |
---|
| 19 | * |
---|
| 20 | * For licensing issues, contact <dov@imagic.weizmann.ac.il> and |
---|
| 21 | * <fwpg@sharif.edu>. |
---|
| 22 | */ |
---|
| 23 | |
---|
| 24 | #include "fribidi_config.h" |
---|
| 25 | #ifndef FRIBIDI_NO_CHARSETS |
---|
| 26 | |
---|
| 27 | #ifndef FRIBIDI_CHAR_SETS_UTF8_H |
---|
| 28 | #define FRIBIDI_CHAR_SETS_UTF8_H |
---|
| 29 | |
---|
| 30 | #include "fribidi_types.h" |
---|
| 31 | |
---|
| 32 | #ifdef __cplusplus |
---|
| 33 | extern "C" |
---|
| 34 | { |
---|
| 35 | #endif |
---|
| 36 | |
---|
| 37 | #define fribidi_char_set_name_utf8 "UTF-8" |
---|
| 38 | #define fribidi_char_set_title_utf8 "UTF-8 (Unicode)" |
---|
| 39 | #define fribidi_char_set_desc_utf8 NULL |
---|
| 40 | #define fribidi_char_set_enter_utf8 NULL |
---|
| 41 | #define fribidi_char_set_leave_utf8 NULL |
---|
| 42 | |
---|
| 43 | int fribidi_unicode_to_utf8 (FriBidiChar *us, int length, |
---|
| 44 | /* Output */ |
---|
| 45 | char *s); |
---|
| 46 | |
---|
| 47 | /* warning: the length of output string may exceed the length of the input */ |
---|
| 48 | /* the length of the string is returned */ |
---|
| 49 | int fribidi_utf8_to_unicode (char *s, int length, |
---|
| 50 | /* Output */ |
---|
| 51 | FriBidiChar *us); |
---|
| 52 | |
---|
| 53 | #ifdef __cplusplus |
---|
| 54 | } |
---|
| 55 | #endif |
---|
| 56 | |
---|
| 57 | #endif /* FRIBIDI_CHAR_SETS_UTF8_H */ |
---|
| 58 | |
---|
| 59 | #endif |
---|