blob: 15d47aa365e999c6881389b2b7d2f06022dff063 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/***************************************************************************
kcharcodec.h - description
-------------------
begin : Do Nov 25 2004
copyright : (C) 2004 by Friedrich W. H. Kossebau
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License version 2 as published by the Free Software Foundation. *
* *
***************************************************************************/
#ifndef KHE_KCHARCODEC_H
#define KHE_KCHARCODEC_H
// qt specific
#include <tqstringlist.h>
// lib specific
#include "khe.h"
#include "khechar.h"
#include "khexedit_export.h"
namespace KHE
{
class KHEXEDIT_EXPORT KCharCodec
{
public:
/** */
static KCharCodec* createCodec( KEncoding E );
/** */
static KCharCodec* createCodec( const TQString &Name );
static const TQStringList &codecNames();
public: // API to be implemented
virtual KHEChar decode( char Byte ) const = 0;
virtual bool encode( char *D, const TQChar &C ) const = 0;
virtual const TQString& name() const = 0;
protected:
/** */
static TQStringList CodecNames;
};
}
#endif
|