18#ifndef _LOG4CXX_STRING_H
19#define _LOG4CXX_STRING_H
22#include <log4cxx/log4cxx.h>
24#if (LOG4CXX_LOGCHAR_IS_WCHAR + LOG4CXX_LOGCHAR_IS_UTF8 + LOG4CXX_LOGCHAR_IS_UNICHAR)>1
25 #error only one of LOG4CXX_LOGCHAR_IS_WCHAR, LOG4CXX_LOGCHAR_IS_UTF8 or LOG4CXX_LOGCHAR_IS_UNICHAR may be true
28#if LOG4CXX_CFSTRING_API
37#if LOG4CXX_LOGCHAR_IS_UNICHAR || LOG4CXX_UNICHAR_API || LOG4CXX_CFSTRING_API
41#if LOG4CXX_LOGCHAR_IS_WCHAR
42 typedef wchar_t logchar;
43 #define LOG4CXX_STR(str) L ## str
46#if LOG4CXX_LOGCHAR_IS_UTF8
48 #if LOG4CXX_CHARSET_EBCDIC
49 #define LOG4CXX_STR(str) log4cxx::helpers::Transcoder::decode(str)
51 #define LOG4CXX_STR(str) str
55#if LOG4CXX_LOGCHAR_IS_UNICHAR
57 #define LOG4CXX_STR(str) log4cxx::helpers::Transcoder::decode(str)
64#if !defined(LOG4CXX_EOL)
66 #define LOG4CXX_EOL LOG4CXX_STR("\x0D\x0A")
68 #define LOG4CXX_EOL LOG4CXX_STR("\x0A")
73#if LOG4CXX_LOGCHAR_IS_UNICHAR || (LOG4CXX_LOGCHAR_IS_UTF8 || LOG4CXX_CHARSET_EBCDIC)
const struct __CFString * CFStringRef
Definition: logstring.h:30
Definition: configuration.h:25
std::basic_string< logchar > LogString
Definition: logstring.h:60
unsigned short UniChar
Definition: logstring.h:38