/[public]/psiconv/trunk/program/psiconv/general.h
ViewVC logotype

Contents of /psiconv/trunk/program/psiconv/general.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 189 - (show annotations)
Mon Jan 26 14:00:40 2004 UTC (20 years, 2 months ago) by frodo
File MIME type: text/plain
File size: 1805 byte(s)
(Frodo) Update

1 /*
2 general.h - Part of psiconv, a PSION 5 file formats converter
3 Copyright (c) 2004 Frodo Looijaard <frodol@dds.nl>
4
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.
9
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 General Public License for more details.
14
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., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 #ifndef GENERAL_H
21 #define GENERAL_H
22
23 #include <psiconv/list.h>
24 #include <psiconv/configuration.h>
25 #include <psiconv/unicode.h>
26 #include "psiconv.h"
27
28 /* Several routines to output text.
29 The text is appended to a psiconv_list of bytes (u8), in the specified
30 encoding. A single character may add several bytes to the list, in some
31 encodings. */
32
33
34 /* Output a single UCS2 character */
35 extern void output_char(psiconv_config config, psiconv_list list,
36 psiconv_ucs2 character, encoding enc);
37
38 /* Output a string of UCS2 characters */
39 extern void output_string(psiconv_config config, psiconv_list list,
40 psiconv_ucs2 *string, encoding enc);
41
42
43 /* Output a string of ASCII chars to the list. Only characters between
44 0x20 and 0x7e (inclusive) may be used. */
45 extern void output_simple_chars(psiconv_config config, psiconv_list list,
46 char *string, encoding enc);
47
48
49 #endif /* GENERAL_H */

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26