19 #ifndef _LOG4CXX_HELPER_PATTERN_CONVERTER_H
20 #define _LOG4CXX_HELPER_PATTERN_CONVERTER_H
34 typedef std::function<PatternConverterPtr(
const std::vector<LogString>& options)>
PatternConstructor;
35 typedef std::map<LogString, PatternConstructor>
PatternMap;
55 static const logchar ESCAPE_CHAR;
87 static size_t extractConverter(
88 logchar lastChar,
const LogString& pattern,
89 LogString::size_type i,
LogString& convBuf,
99 static size_t extractOptions(
const LogString& pattern, LogString::size_type i,
100 std::vector<LogString>& options);
112 std::vector<PatternConverterPtr>& patternConverters,
113 std::vector<FormattingInfoPtr>& formattingInfos,
128 static PatternConverterPtr createConverter(
132 std::vector<LogString>& options);
147 static size_t finalizeConverter(
148 logchar c,
const LogString& pattern,
size_t i,
151 std::vector<PatternConverterPtr>& patternConverters,
152 std::vector<FormattingInfoPtr>& formattingInfos);
154 static bool isUnicodeIdentifierStart(logchar c);
155 static bool isUnicodeIdentifierPart(logchar c);