1 |
adcroft |
1.1 |
/* |
2 |
|
|
$Id: entities.h,v 1.3 2001/05/17 19:34:18 rasc Exp $ |
3 |
|
|
** |
4 |
|
|
** This program and library is free software; you can redistribute it and/or |
5 |
|
|
** modify it under the terms of the GNU (Library) General Public License |
6 |
|
|
** as published by the Free Software Foundation; either version 2 |
7 |
|
|
** of the License, or any later version. |
8 |
|
|
** |
9 |
|
|
** This program 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 |
12 |
|
|
** GNU (Library) General Public License for more details. |
13 |
|
|
** |
14 |
|
|
** You should have received a copy of the GNU (Library) General Public License |
15 |
|
|
** along with this program; if not, write to the Free Software |
16 |
|
|
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
17 |
|
|
** |
18 |
|
|
** (c) Rainer.Scherg |
19 |
|
|
** |
20 |
|
|
** |
21 |
|
|
** 2001-05-05 rasc initial coding |
22 |
|
|
** |
23 |
|
|
*/ |
24 |
|
|
|
25 |
|
|
|
26 |
|
|
#ifndef __HasSeenModule_Entities |
27 |
|
|
#define __HasSeenModule_Entities 1 |
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
/* Global module data */ |
32 |
|
|
|
33 |
|
|
struct MOD_Entities { |
34 |
|
|
/* public: */ |
35 |
|
|
/* none */ |
36 |
|
|
|
37 |
|
|
/* private: don't use outside this module! */ |
38 |
|
|
int convertEntities; |
39 |
|
|
}; |
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
void initModule_Entities (SWISH *sw); |
46 |
|
|
void freeModule_Entities (SWISH *sw); |
47 |
|
|
int configModule_Entities (SWISH *sw, StringList *sl); |
48 |
|
|
|
49 |
|
|
unsigned char *sw_ConvHTMLEntities2ISO(SWISH *sw, unsigned char *s); |
50 |
|
|
unsigned char *strConvHTMLEntities2ISO (unsigned char *buf); |
51 |
|
|
int charEntityDecode (unsigned char *buf, unsigned char **end); |
52 |
|
|
|
53 |
|
|
|
54 |
|
|
#endif |
55 |
|
|
|
56 |
|
|
|