19 #ifndef _LOG4CXX_HELPER_PATTERN_CONVERTER_H 20 #define _LOG4CXX_HELPER_PATTERN_CONVERTER_H 23 #pragma warning (push) 24 #pragma warning ( disable: 4231 4251 4275 4786 ) 41 typedef std::map<LogString, PatternConstructor>
PatternMap;
61 static const logchar ESCAPE_CHAR;
93 static size_t extractConverter(
94 logchar lastChar,
const LogString& pattern,
95 LogString::size_type i,
LogString& convBuf,
105 static size_t extractOptions(
const LogString& pattern, LogString::size_type i,
106 std::vector<LogString>& options);
118 std::vector<PatternConverterPtr>& patternConverters,
119 std::vector<FormattingInfoPtr>& formattingInfos,
120 const PatternMap& rules);
134 static PatternConverterPtr createConverter(
137 const PatternMap& rules,
138 std::vector<LogString>& options);
153 static size_t finalizeConverter(
154 logchar c,
const LogString& pattern,
size_t i,
156 const PatternMap& rules,
157 std::vector<PatternConverterPtr>& patternConverters,
158 std::vector<FormattingInfoPtr>& formattingInfos);
160 static bool isUnicodeIdentifierStart(logchar c);
161 static bool isUnicodeIdentifierPart(logchar c);
170 #if defined(_MSC_VER) 171 #pragma warning (pop) std::shared_ptr< FormattingInfo > FormattingInfoPtr
Definition: formattinginfo.h:31
Most of the work of the PatternLayout class is delegated to the PatternParser class.
Definition: patternparser.h:56
PatternConverterPtr(* PatternConstructor)(const std::vector< LogString > &options)
Definition: patternparser.h:40
std::map< LogString, PatternConstructor > PatternMap
Definition: patternparser.h:41
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:66