The SWORD Project
1.9.0.svnversion
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
utf8scsu.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* utf8scsu.h - class UTF8SCSU: an EncodingFilter to convert UTF8 to
4
* Standard Compression Scheme for Unicode (SCSU)
5
*
6
* $Id: utf8scsu.h 3786 2020-08-30 11:35:14Z scribe $
7
*
8
* Copyright 2001-2014 CrossWire Bible Society (http://www.crosswire.org)
9
* CrossWire Bible Society
10
* P. O. Box 2528
11
* Tempe, AZ 85280-2528
12
*
13
* This program is free software; you can redistribute it and/or modify it
14
* under the terms of the GNU General Public License as published by the
15
* Free Software Foundation version 2.
16
*
17
* This program is distributed in the hope that it will be useful, but
18
* WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
* General Public License for more details.
21
*
22
*/
23
24
#ifndef UTF8SCSU_H
25
#define UTF8SCSU_H
26
27
#include <
swfilter.h
>
28
29
#include <unicode/utypes.h>
30
#include <unicode/ucnv.h>
31
#include <unicode/uchar.h>
32
#include <unicode/unistr.h>
33
34
SWORD_NAMESPACE_START
35
38
class
SWDLLEXPORT
UTF8SCSU
:
public
SWFilter
{
39
40
private
:
41
UConverter*
scsuConv
;
42
UConverter*
utf8Conv
;
43
UErrorCode
err
;
44
45
public
:
46
UTF8SCSU
();
47
~
UTF8SCSU
();
48
virtual
char
processText
(
SWBuf
&text,
const
SWKey
*key = 0,
const
SWModule
*
module
= 0);
49
};
50
51
SWORD_NAMESPACE_END
52
#endif
SWORD_NAMESPACE_START
#define SWORD_NAMESPACE_START
Definition:
defs.h:39
SWBuf
Definition:
swbuf.h:47
SWDLLEXPORT
#define SWDLLEXPORT
Definition:
defs.h:171
module
SWText * module
Definition:
osis2mod.cpp:105
UTF8SCSU
Definition:
utf8scsu.h:38
swfilter.h
SWFilter
Definition:
swfilter.h:45
SWModule
Definition:
swmodule.h:101
UTF8SCSU::scsuConv
UConverter * scsuConv
Definition:
utf8scsu.h:41
SWFilter::processText
virtual char processText(SWBuf &text, const SWKey *key=0, const SWModule *module=0)=0
UTF8SCSU::err
UErrorCode err
Definition:
utf8scsu.h:43
UTF8SCSU::utf8Conv
UConverter * utf8Conv
Definition:
utf8scsu.h:42
SWORD_NAMESPACE_END
#define SWORD_NAMESPACE_END
Definition:
defs.h:40
SWKey
Definition:
swkey.h:77
include
utf8scsu.h
Generated by
1.8.5