~pkgcrosswire/sword/nroff-manpages

1 by Dmitrijs Ledkovs
Import upstream version 1.5.11
1
/******************************************************************************
2
 *
3
 * $Id: utf8latin1.h 1688 2005-01-01 04:42:26Z scribe $
4
 *
5
 * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
6
 *	CrossWire Bible Society
7
 *	P. O. Box 2528
8
 *	Tempe, AZ  85280-2528
9
 *
10
 * This program is free software; you can redistribute it and/or modify it
11
 * under the terms of the GNU General Public License as published by the
12
 * Free Software Foundation version 2.
13
 *
14
 * This program is distributed in the hope that it will be useful, but
15
 * WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
 * General Public License for more details.
18
 *
19
 */
20
21
#ifndef UTF8Latin1_H
22
#define UTF8Latin1_H
23
24
#include <swfilter.h>
25
26
SWORD_NAMESPACE_START
27
28
/** This filter converts UTF-8 encoded text to Latin-1
29
 */
30
class SWDLLEXPORT UTF8Latin1 : public SWFilter {
31
	char replacementChar;
32
public:
33
	UTF8Latin1(char rchar = '?');
34
	virtual char processText(SWBuf &text, const SWKey *key = 0, const SWModule *module = 0);
35
};
36
37
SWORD_NAMESPACE_END
38
#endif