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