3 * Copyright (C) 2001-2003, Eduardo Silva P.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program 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
13 * GNU Library General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 /* iso_8859_15 (man iso_8859_15) */
23 int get_char(int code
)
26 /* Perl is great :) */
100 case 233: return 'é';
101 case 234: return 'ê';
102 case 235: return 'ë';
103 case 236: return 'ì';
104 case 237: return 'í';
105 case 238: return 'î';
106 case 239: return 'ï';
107 case 240: return 'ð';
108 case 241: return 'ñ';
109 case 242: return 'ò';
110 case 243: return 'ó';
111 case 244: return 'ô';
112 case 245: return 'õ';
113 case 246: return 'ö';
114 case 247: return '÷';
115 case 248: return 'ø';
116 case 249: return 'ù';
117 case 250: return 'ú';
118 case 251: return 'û';
119 case 252: return 'ü';
120 case 253: return 'ý';
121 case 254: return 'þ';
122 case 255: return 'ÿ';
127 /* Transorma numeracion Hexa a base decimal */
128 int hex2int(char *pChars
)
135 if ('0'<=Hi
&&Hi
<='9') {
137 } else if ('a'<=Hi
&&Hi
<='f') {
139 } else if ('A'<=Hi
&&Hi
<='F') {
143 if ('0'<=Lo
&&Lo
<='9') {
145 } else if ('a'<=Lo
&&Lo
<='f') {
147 } else if ('A'<=Lo
&&Lo
<='F') {