Apache Log4cxx  Version 1.2.0
Loading...
Searching...
No Matches
log4cxx/helpers/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

namespace  log4cxx
 
namespace  log4cxx::helpers
 

Macros

#define LOG4CXX_ENCODE_CHAR(var, src)
 Create a std::string equivalent of src.
 
#define LOG4CXX_DECODE_CHAR(var, src)
 Create a log4cxx::LogString equivalent of src.
 
#define LOG4CXX_DECODE_CFSTRING(var, src)
 Create a log4cxx::LogString equivalent of src.
 
#define LOG4CXX_ENCODE_CFSTRING(var, src)    CFStringRef var = LOG4CXX_NS::helpers::Transcoder::encode(src)
 Create a CFStringRef equivalent of src.
 
#define LOG4CXX_ENCODE_WCHAR(var, src)
 Create a std::wstring equivalent of src.
 
#define LOG4CXX_DECODE_WCHAR(var, src)
 Create a log4cxx::LogString equivalent of src.
 
#define LOG4CXX_ENCODE_UNICHAR(var, src)
 Create a std::basic_string<UniChar> equivalent of src.
 
#define LOG4CXX_DECODE_UNICHAR(var, src)
 Create a log4cxx::LogString equivalent of src.
 

Macro Definition Documentation

◆ LOG4CXX_DECODE_CFSTRING

#define LOG4CXX_DECODE_CFSTRING (   var,
  src 
)
Value:
LOG4CXX_NS::LogString var; \
LOG4CXX_NS::helpers::Transcoder::decode(src, var)

Create a log4cxx::LogString equivalent of src.

Defines a log4cxx::LogString variable var initialized with characters equivalent to the CFStringRef src contents.

Parameters
varThe name of the new log4cxx::LogString variable.
srcThe CFStringRef variable.

◆ LOG4CXX_DECODE_CHAR

#define LOG4CXX_DECODE_CHAR (   var,
  src 
)
Value:
LOG4CXX_NS::LogString var; \
LOG4CXX_NS::helpers::Transcoder::decode(src, var)

Create a log4cxx::LogString equivalent of src.

Defines a log4cxx::LogString variable var initialized with characters equivalent to the std::string src contents.

Parameters
varThe name of the new log4cxx::LogString variable.
srcThe std::string variable.

◆ LOG4CXX_DECODE_UNICHAR

#define LOG4CXX_DECODE_UNICHAR (   var,
  src 
)
Value:
LOG4CXX_NS::LogString var; \
LOG4CXX_NS::helpers::Transcoder::decode(src, var)

Create a log4cxx::LogString equivalent of src.

Defines a log4cxx::LogString variable var initialized with characters equivalent to the std::basic_string<UniChar> src contents.

Parameters
varThe name of the new log4cxx::LogString variable.
srcThe std::basic_string<UniChar> variable.

◆ LOG4CXX_DECODE_WCHAR

#define LOG4CXX_DECODE_WCHAR (   var,
  src 
)
Value:
LOG4CXX_NS::LogString var; \
LOG4CXX_NS::helpers::Transcoder::decode(src, var)

Create a log4cxx::LogString equivalent of src.

Defines a log4cxx::LogString variable var initialized with characters equivalent to the std::wstring src contents.

Parameters
varThe name of the new log4cxx::LogString variable.
srcThe std::wstring variable.

◆ LOG4CXX_ENCODE_CFSTRING

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

Create a CFStringRef equivalent of src.

Defines a CFStringRef variable var initialized with characters equivalent to the log4cxx::LogString src contents.

Parameters
varThe name of the new CFStringRef variable.
srcThe log4cxx::LogString variable.

◆ LOG4CXX_ENCODE_CHAR

#define LOG4CXX_ENCODE_CHAR (   var,
  src 
)
Value:
std::string var; \
LOG4CXX_NS::helpers::Transcoder::encode(src, var)

Create a std::string equivalent of src.

Defines a std::string variable var initialized with characters equivalent to the log4cxx::LogString src contents.

Parameters
varThe name of the new std::string variable.
srcThe log4cxx::LogString variable.

◆ LOG4CXX_ENCODE_UNICHAR

#define LOG4CXX_ENCODE_UNICHAR (   var,
  src 
)
Value:
std::basic_string<UniChar> var; \
LOG4CXX_NS::helpers::Transcoder::encode(src, var)

Create a std::basic_string<UniChar> equivalent of src.

Defines a std::basic_string<UniChar> variable var initialized with characters equivalent to the log4cxx::LogString src contents.

Parameters
varThe name of the new std::basic_string<UniChar> variable.
srcThe log4cxx::LogString variable.

◆ LOG4CXX_ENCODE_WCHAR

#define LOG4CXX_ENCODE_WCHAR (   var,
  src 
)
Value:
std::wstring var; \
LOG4CXX_NS::helpers::Transcoder::encode(src, var)

Create a std::wstring equivalent of src.

Defines a std::wstring variable var initialized with characters equivalent to the log4cxx::LogString src contents.

Parameters
varThe name of the new std::wstring variable.
srcThe log4cxx::LogString variable.