Apache log4cxx  Version 0.13.0
transcoder.h File Reference

Go to the source code of this file.

Classes

class  log4cxx::helpers::Transcoder
 Simple transcoder for converting between external char and wchar_t strings and internal strings. More...
 

Namespaces

 log4cxx
 
 log4cxx::helpers
 

Macros

#define LOG4CXX_ENCODE_CHAR(var, src)
 
#define LOG4CXX_DECODE_CHAR(var, src)
 
#define LOG4CXX_DECODE_CFSTRING(var, src)
 
#define LOG4CXX_ENCODE_CFSTRING(var, src)   CFStringRef var = log4cxx::helpers::Transcoder::encode(src)
 
#define LOG4CXX_ENCODE_WCHAR(var, src)
 
#define LOG4CXX_DECODE_WCHAR(var, src)
 
#define LOG4CXX_ENCODE_UNICHAR(var, src)
 
#define LOG4CXX_DECODE_UNICHAR(var, src)
 

Macro Definition Documentation

◆ LOG4CXX_DECODE_CFSTRING

#define LOG4CXX_DECODE_CFSTRING (   var,
  src 
)
Value:
static unsigned int decode(const std::string &in, std::string::const_iterator &iter)
Decodes next character from a UTF-8 string.
std::basic_string< logchar > LogString
Definition: logstring.h:66

◆ LOG4CXX_DECODE_CHAR

#define LOG4CXX_DECODE_CHAR (   var,
  src 
)
Value:
static unsigned int decode(const std::string &in, std::string::const_iterator &iter)
Decodes next character from a UTF-8 string.
std::basic_string< logchar > LogString
Definition: logstring.h:66

◆ LOG4CXX_DECODE_UNICHAR

#define LOG4CXX_DECODE_UNICHAR (   var,
  src 
)
Value:
static unsigned int decode(const std::string &in, std::string::const_iterator &iter)
Decodes next character from a UTF-8 string.
std::basic_string< logchar > LogString
Definition: logstring.h:66

◆ LOG4CXX_DECODE_WCHAR

#define LOG4CXX_DECODE_WCHAR (   var,
  src 
)
Value:
static unsigned int decode(const std::string &in, std::string::const_iterator &iter)
Decodes next character from a UTF-8 string.
std::basic_string< logchar > LogString
Definition: logstring.h:66

◆ LOG4CXX_ENCODE_CFSTRING

#define LOG4CXX_ENCODE_CFSTRING (   var,
  src 
)    CFStringRef var = log4cxx::helpers::Transcoder::encode(src)

◆ LOG4CXX_ENCODE_CHAR

#define LOG4CXX_ENCODE_CHAR (   var,
  src 
)
Value:
std::string var; \
static void encode(unsigned int ch, std::string &dst)
Appends UCS-4 value to a UTF-8 string.

◆ LOG4CXX_ENCODE_UNICHAR

#define LOG4CXX_ENCODE_UNICHAR (   var,
  src 
)
Value:
std::basic_string<UniChar> var; \
static void encode(unsigned int ch, std::string &dst)
Appends UCS-4 value to a UTF-8 string.

◆ LOG4CXX_ENCODE_WCHAR

#define LOG4CXX_ENCODE_WCHAR (   var,
  src 
)
Value:
std::wstring var; \
static void encode(unsigned int ch, std::string &dst)
Appends UCS-4 value to a UTF-8 string.