-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCharConverter.h
44 lines (36 loc) · 1.28 KB
/
CharConverter.h
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
/* $Id: CharConverter.h,v 1.13 2002-08-25 11:46:22 pgr Exp $ */
#ifndef COM_JAXO_YAXX_CHARCONVERTER_H_INCLUDED
#define COM_JAXO_YAXX_CHARCONVERTER_H_INCLUDED
/*---------+
| Includes |
+---------*/
#ifdef YAXX_NAMESPACE
namespace YAXX_NAMESPACE {
#endif
class RexxString;
/*------------------------------------------------------ class CharConverter -+
| |
+----------------------------------------------------------------------------*/
class CharConverter {
public:
virtual ~CharConverter();
virtual void operator()(char * pTgt, char const * pSrc, int len) const;
// so to do: CharConverter::Upper(uppered, source, len);
static CharConverter const Upper;
};
class DynamicCharConverter : public CharConverter {
public:
DynamicCharConverter(char pad, RexxString const & tableo);
DynamicCharConverter(RexxString const & tablei, char pad);
DynamicCharConverter(RexxString const & tablei, char pad, RexxString const & tableo);
private:
void operator()(char * pTgt, char const * pSrc, int len) const;
char m_table[257];
};
/* -- INLINES -- */
inline CharConverter::~CharConverter() {}
#ifdef YAXX_NAMESPACE
}
#endif
#endif
/*===========================================================================*/