Lines Matching +full:ascii +full:. +full:r
1 /* Hex character manipulation support.
2 Copyright (C) 1995, 2001 Free Software Foundation, Inc.
4 This file is part of the libiberty library.
8 version 2 of the License, or (at your option) any later version.
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
16 License along with libiberty; see the file COPYING.LIB. If
17 not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
18 Boston, MA 02110-1301, USA. */
20 #include <stdio.h> /* for EOF */
22 #include "config.h"
24 #include "libiberty.h"
25 #include "safe-ctype.h" /* for HOST_CHARSET_ASCII */
28 #error "hex.c requires EOF == -1"
36 corresponding hex values. This function must be called before any
37 call to @code{hex_p} or @code{hex_value}. If you fail to call it, a
38 default ASCII-based table will normally be used on ASCII systems.
45 or zero if it is not. Note that the value you pass will be cast to
46 @code{unsigned char} within the macro.
53 as a hexidecimal digit. The result is undefined if you pass an
54 invalid hex digit. Note that the value you pass will be cast to
55 @code{unsigned char} within the macro.
61 systems.
72 /* Are we ASCII? */
89 _hex_bad, _hex_bad, _hex_bad, _hex_bad, /* , - . / */
99 _hex_bad, _hex_bad, _hex_bad, _hex_bad, /* P Q R S */
108 _hex_bad, _hex_bad, _hex_bad, _hex_bad, /* p q r s */
113 /* The high half of unsigned char, all values are _hex_bad. */
156 #endif /* not ASCII */