1 | /* FriBidi |
2 | * fribidi-char-sets-utf8.h - UTF-8 character set conversion routines |
3 | * |
4 | * Authors: |
5 | * Behdad Esfahbod, 2001, 2002, 2004 |
6 | * Dov Grobgeld, 1999, 2000 |
7 | * |
8 | * Copyright (C) 2004 Sharif FarsiWeb, Inc |
9 | * Copyright (C) 2001,2002 Behdad Esfahbod |
10 | * Copyright (C) 1999,2000 Dov Grobgeld |
11 | * |
12 | * This library is free software; you can redistribute it and/or |
13 | * modify it under the terms of the GNU Lesser General Public |
14 | * License as published by the Free Software Foundation; either |
15 | * version 2.1 of the License, or (at your option) any later version. |
16 | * |
17 | * This library is distributed in the hope that it will be useful, |
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
20 | * Lesser General Public License for more details. |
21 | * |
22 | * You should have received a copy of the GNU Lesser General Public License |
23 | * along with this library, in a file named COPYING; if not, write to the |
24 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
25 | * Boston, MA 02110-1301, USA |
26 | * |
27 | * For licensing issues, contact <fribidi.license@gmail.com>. |
28 | */ |
29 | |
30 | #ifndef _FRIBIDI_CHAR_SETS_UTF8_H |
31 | #define _FRIBIDI_CHAR_SETS_UTF8_H |
32 | |
33 | #include "fribidi-common.h" |
34 | |
35 | #include "fribidi-types.h" |
36 | |
37 | #include "fribidi-begindecls.h" |
38 | |
39 | #define fribidi_char_set_name_utf8 "UTF-8" |
40 | #define fribidi_char_set_title_utf8 "UTF-8 (Unicode)" |
41 | #define fribidi_char_set_desc_utf8 NULL |
42 | |
43 | FriBidiStrIndex fribidi_utf8_to_unicode ( |
44 | const char *s, |
45 | FriBidiStrIndex length, |
46 | FriBidiChar *us |
47 | ); |
48 | |
49 | FriBidiStrIndex fribidi_unicode_to_utf8 ( |
50 | const FriBidiChar *us, |
51 | FriBidiStrIndex length, |
52 | char *s |
53 | ); |
54 | |
55 | #include "fribidi-enddecls.h" |
56 | |
57 | #endif /* !_FRIBIDI_CHAR_SETS_UTF8_H */ |
58 | /* Editor directions: |
59 | * vim:textwidth=78:tabstop=8:shiftwidth=2:autoindent:cindent |
60 | */ |
61 | |