OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 virtual void initializeLocaleData() override; | 72 virtual void initializeLocaleData() override; |
73 | 73 |
74 bool detectSignAndGetDigitRange(const String& input, bool& isNegative, unsig
ned& startIndex, unsigned& endIndex); | 74 bool detectSignAndGetDigitRange(const String& input, bool& isNegative, unsig
ned& startIndex, unsigned& endIndex); |
75 unsigned matchedDecimalSymbolIndex(const String& input, unsigned& position); | 75 unsigned matchedDecimalSymbolIndex(const String& input, unsigned& position); |
76 | 76 |
77 bool initializeShortDateFormat(); | 77 bool initializeShortDateFormat(); |
78 UDateFormat* openDateFormat(UDateFormatStyle timeStyle, UDateFormatStyle dat
eStyle) const; | 78 UDateFormat* openDateFormat(UDateFormatStyle timeStyle, UDateFormatStyle dat
eStyle) const; |
79 | 79 |
80 void initializeCalendar(); | 80 void initializeCalendar(); |
81 | 81 |
82 PassOwnPtr<Vector<String> > createLabelVector(const UDateFormat*, UDateForma
tSymbolType, int32_t startIndex, int32_t size); | 82 PassOwnPtr<Vector<String>> createLabelVector(const UDateFormat*, UDateFormat
SymbolType, int32_t startIndex, int32_t size); |
83 void initializeDateTimeFormat(); | 83 void initializeDateTimeFormat(); |
84 | 84 |
85 CString m_locale; | 85 CString m_locale; |
86 UNumberFormat* m_numberFormat; | 86 UNumberFormat* m_numberFormat; |
87 UDateFormat* m_shortDateFormat; | 87 UDateFormat* m_shortDateFormat; |
88 bool m_didCreateDecimalFormat; | 88 bool m_didCreateDecimalFormat; |
89 bool m_didCreateShortDateFormat; | 89 bool m_didCreateShortDateFormat; |
90 | 90 |
91 OwnPtr<Vector<String> > m_weekDayShortLabels; | 91 OwnPtr<Vector<String>> m_weekDayShortLabels; |
92 unsigned m_firstDayOfWeek; | 92 unsigned m_firstDayOfWeek; |
93 OwnPtr<Vector<String> > m_monthLabels; | 93 OwnPtr<Vector<String>> m_monthLabels; |
94 String m_dateFormat; | 94 String m_dateFormat; |
95 String m_monthFormat; | 95 String m_monthFormat; |
96 String m_shortMonthFormat; | 96 String m_shortMonthFormat; |
97 String m_timeFormatWithSeconds; | 97 String m_timeFormatWithSeconds; |
98 String m_timeFormatWithoutSeconds; | 98 String m_timeFormatWithoutSeconds; |
99 String m_dateTimeFormatWithSeconds; | 99 String m_dateTimeFormatWithSeconds; |
100 String m_dateTimeFormatWithoutSeconds; | 100 String m_dateTimeFormatWithoutSeconds; |
101 UDateFormat* m_mediumTimeFormat; | 101 UDateFormat* m_mediumTimeFormat; |
102 UDateFormat* m_shortTimeFormat; | 102 UDateFormat* m_shortTimeFormat; |
103 Vector<String> m_shortMonthLabels; | 103 Vector<String> m_shortMonthLabels; |
104 Vector<String> m_standAloneMonthLabels; | 104 Vector<String> m_standAloneMonthLabels; |
105 Vector<String> m_shortStandAloneMonthLabels; | 105 Vector<String> m_shortStandAloneMonthLabels; |
106 Vector<String> m_timeAMPMLabels; | 106 Vector<String> m_timeAMPMLabels; |
107 bool m_didCreateTimeFormat; | 107 bool m_didCreateTimeFormat; |
108 }; | 108 }; |
109 | 109 |
110 } // namespace blink | 110 } // namespace blink |
111 #endif | 111 #endif |
OLD | NEW |