#ifndef LocaleWin_h
#define LocaleWin_h
#include <windows.h>
#include "platform/text/PlatformLocale.h"
#include "wtf/Forward.h"
#include "wtf/Vector.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
class DateComponents;
struct DateFormatToken;
class PLATFORM_EXPORT LocaleWin : public Locale {
public:
static PassOwnPtr<LocaleWin> create(LCID, bool defaultsForLocale);
~LocaleWin();
virtual const Vector<String>& weekDayShortLabels() OVERRIDE;
virtual unsigned firstDayOfWeek() OVERRIDE;
virtual bool isRTL() OVERRIDE;
virtual String dateFormat() OVERRIDE;
virtual String monthFormat() OVERRIDE;
virtual String shortMonthFormat() OVERRIDE;
virtual String timeFormat() OVERRIDE;
virtual String shortTimeFormat() OVERRIDE;
virtual String dateTimeFormatWithSeconds() OVERRIDE;
virtual String dateTimeFormatWithoutSeconds() OVERRIDE;
virtual const Vector<String>& monthLabels() OVERRIDE;
virtual const Vector<String>& shortMonthLabels() OVERRIDE;
virtual const Vector<String>& standAloneMonthLabels() OVERRIDE;
virtual const Vector<String>& shortStandAloneMonthLabels() OVERRIDE;
virtual const Vector<String>& timeAMPMLabels() OVERRIDE;
static String dateFormat(const String&);
private:
explicit LocaleWin(LCID, bool defaultsForLocale);
String getLocaleInfoString(LCTYPE);
void getLocaleInfo(LCTYPE, DWORD&);
void ensureShortMonthLabels();
void ensureMonthLabels();
void ensureWeekDayShortLabels();
virtual void initializeLocaleData() OVERRIDE;
LCID m_lcid;
Vector<String> m_shortMonthLabels;
Vector<String> m_monthLabels;
String m_dateFormat;
String m_monthFormat;
String m_shortMonthFormat;
String m_timeFormatWithSeconds;
String m_timeFormatWithoutSeconds;
String m_dateTimeFormatWithSeconds;
String m_dateTimeFormatWithoutSeconds;
Vector<String> m_timeAMPMLabels;
Vector<String> m_weekDayShortLabels;
unsigned m_firstDayOfWeek;
bool m_didInitializeNumberData;
bool m_defaultsForLocale;
};
}
#endif