2 * fribidi-deprecated.c - deprecated interfaces.
5 * Behdad Esfahbod, 2001, 2002, 2004
6 * Dov Grobgeld, 1999, 2000
8 * Copyright (C) 2004 Sharif FarsiWeb, Inc
9 * Copyright (C) 2001,2002 Behdad Esfahbod
10 * Copyright (C) 1999,2000 Dov Grobgeld
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.
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.
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
27 * For licensing issues, contact <fribidi.license@gmail.com>.
32 #undef FRIBIDI_NO_DEPRECATED
34 #include <fribidi-deprecated.h>
37 #ifdef FRIBIDI_NO_DEPRECATED
40 static FriBidiFlags flags = FRIBIDI_FLAGS_DEFAULT | FRIBIDI_FLAGS_ARABIC;
42 FRIBIDI_ENTRY fribidi_boolean
43 fribidi_set_mirroring (
48 return FRIBIDI_ADJUST_AND_TEST_BITS (flags, FRIBIDI_FLAG_SHAPE_MIRRORING, state);
51 FRIBIDI_ENTRY fribidi_boolean
52 fribidi_mirroring_status (
56 return FRIBIDI_TEST_BITS (flags, FRIBIDI_FLAG_SHAPE_MIRRORING);
59 FRIBIDI_ENTRY fribidi_boolean
60 fribidi_set_reorder_nsm (
65 return FRIBIDI_ADJUST_AND_TEST_BITS (flags, FRIBIDI_FLAG_REORDER_NSM, state);
69 fribidi_reorder_nsm_status (
73 return FRIBIDI_TEST_BITS (flags, FRIBIDI_FLAG_REORDER_NSM);
79 FRIBIDI_ENTRY FriBidiCharType
81 FriBidiChar ch /* input character */
84 return fribidi_get_bidi_type (ch);
87 FRIBIDI_ENTRY FriBidiCharType
88 fribidi_get_type_internal (
89 FriBidiChar ch /* input character */
92 return fribidi_get_bidi_type (ch);
96 FRIBIDI_ENTRY FriBidiLevel
97 fribidi_get_par_embedding_levels (
99 const FriBidiCharType *bidi_types,
100 const FriBidiStrIndex len,
101 /* input and output */
102 FriBidiParType *pbase_dir,
104 FriBidiLevel *embedding_levels
107 return fribidi_get_par_embedding_levels_ex (/* input */
109 NULL, /* No bracket_types */
111 /* input and output */
117 #endif /* !FRIBIDI_NO_DEPRECATED */
119 /* Editor directions:
120 * vim:textwidth=78:tabstop=8:shiftwidth=2:autoindent:cindent