18 #ifndef _LOG4CXX_HELPERS_CHARSETENCODER_H 19 #define _LOG4CXX_HELPERS_CHARSETENCODER_H 21 #include <log4cxx/helpers/objectimpl.h> 22 #include <log4cxx/helpers/pool.h> 31 LOG4CXX_PTR_DEF(CharsetEncoder);
41 BEGIN_LOG4CXX_CAST_MAP()
43 END_LOG4CXX_CAST_MAP()
59 static CharsetEncoderPtr getDefaultEncoder();
69 static CharsetEncoderPtr getEncoder(
const LogString& charset);
75 static CharsetEncoderPtr getUTF8Encoder();
82 static void encode(CharsetEncoderPtr& enc,
84 LogString::const_iterator& iter,
96 virtual log4cxx_status_t encode(
const LogString& in,
97 LogString::const_iterator& iter,
103 virtual void reset();
114 inline static bool isError(log4cxx_status_t stat)
137 #endif //_LOG4CXX_HELPERS_CHARSETENCODER_H An engine to transform LogStrings into bytes for the specific character set.
Definition: charsetencoder.h:37
static bool isError(log4cxx_status_t stat)
Determines if the return value from encode indicates an unconvertable character.
Definition: charsetencoder.h:114
Implementation class for Object.
Definition: objectimpl.h:28
A byte buffer.
Definition: bytebuffer.h:33
Definition: appender.h:33