18 #ifndef _LOG4CXX_HELPERS_CHARSETENCODER_H 19 #define _LOG4CXX_HELPERS_CHARSETENCODER_H 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 #define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:26
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:153
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:147
LOG4CXX_PTR_DEF(AppenderAttachableImpl)
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:141
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
base class for java-like objects.
Definition: object.h:101
A byte buffer.
Definition: bytebuffer.h:33
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:66