|
a/src/utils/transcode.cpp |
|
b/src/utils/transcode.cpp |
|
... |
|
... |
35 |
#else
|
35 |
#else
|
36 |
#define ICV_P2_TYPE char**
|
36 |
#define ICV_P2_TYPE char**
|
37 |
#endif
|
37 |
#endif
|
38 |
|
38 |
|
39 |
// We gain approximately 28% exec time for word at a time conversions by
|
39 |
// We gain approximately 28% exec time for word at a time conversions by
|
40 |
// caching the iconv_open thing. This is probably not worth it.
|
40 |
// caching the iconv_open thing.
|
41 |
//#define ICONV_CACHE_OPEN
|
41 |
#define ICONV_CACHE_OPEN
|
42 |
|
42 |
|
43 |
bool transcode(const string &in, string &out, const string &icode,
|
43 |
bool transcode(const string &in, string &out, const string &icode,
|
44 |
const string &ocode, int *ecnt)
|
44 |
const string &ocode, int *ecnt)
|
45 |
{
|
45 |
{
|
46 |
#ifdef ICONV_CACHE_OPEN
|
46 |
#ifdef ICONV_CACHE_OPEN
|