1
/* FriBidi - Library of BiDi algorithm
2
* Copyright (C) 1999,2000 Dov Grobgeld, and
3
* Copyright (C) 2001,2002 Behdad Esfahbod.
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.
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.
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
20
* For licensing issues, contact <dov@imagic.weizmann.ac.il> and
24
#include "fribidi_config.h"
25
#ifndef FRIBIDI_NO_CHARSETS
27
#ifndef FRIBIDI_CHAR_SETS_UTF8_H
28
#define FRIBIDI_CHAR_SETS_UTF8_H
30
#include "fribidi_types.h"
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
43
int fribidi_unicode_to_utf8 (FriBidiChar *us, int length,
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,
57
#endif /* FRIBIDI_CHAR_SETS_UTF8_H */