18 #ifndef _LOG4CXX_HELPERS_CACHED_DATE_FORMAT_H 19 #define _LOG4CXX_HELPERS_CACHED_DATE_FORMAT_H 24 #pragma warning ( push ) 25 #pragma warning ( disable: 4251 ) 46 UNRECOGNIZED_MILLISECONDS = -1
56 static const logchar digits[];
63 static const int magic1;
69 static const logchar magicString1[];
76 static const int magic2;
82 static const logchar magicString2[];
88 static const logchar zeroString[];
93 log4cxx::helpers::DateFormatPtr formatter;
99 mutable int millisecondStart;
104 mutable log4cxx_time_t slotBegin;
118 const int expiration;
123 mutable log4cxx_time_t previousTime;
134 CachedDateFormat(
const log4cxx::helpers::DateFormatPtr& dateFormat,
int expiration);
146 static int findMillisecondStart(
147 log4cxx_time_t time,
const LogString& formatted,
148 const log4cxx::helpers::DateFormatPtr& formatter,
170 static void millisecondFormat(
int millis,
183 virtual void setTimeZone(
const log4cxx::helpers::TimeZonePtr& zone);
202 static int getMaximumCacheValidity(
const LogString& pattern);
217 static bool regionMatches(
231 #if defined(_MSC_VER) 232 #pragma warning (pop) 235 #endif // _LOG4CXX_HELPERS_SIMPLE_DATE_FORMAT_H
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:66