1 /* FriBidi - Library of BiDi algorithm
2 * Copyright (C) 2001,2002 Behdad Esfahbod.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this library, in a file named COPYING; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
17 * Boston, MA 02111-1307, USA
19 * For licensing issues, contact <fwpg@sharif.edu>.
28 fribidi_char_from_type (FriBidiCharType c)
32 case FRIBIDI_TYPE_LTR:
34 case FRIBIDI_TYPE_RTL:
49 case FRIBIDI_TYPE_NSM:
63 case FRIBIDI_TYPE_LRE:
65 case FRIBIDI_TYPE_RLE:
67 case FRIBIDI_TYPE_LRO:
69 case FRIBIDI_TYPE_RLO:
71 case FRIBIDI_TYPE_PDF:
81 /* Map fribidi_prop_types to fribidi_types. */
82 const FriBidiCharType fribidi_prop_to_type[] = {
83 #define _FRIBIDI_ADD_TYPE(TYPE) FRIBIDI_TYPE_##TYPE,
84 #include "fribidi_types.i"
85 #undef _FRIBIDI_ADD_TYPE