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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 10 matching lines...) Expand all Loading... |
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH |
23 * DAMAGE. | 23 * DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef DateTimeFormat_h | 26 #ifndef DateTimeFormat_h |
27 #define DateTimeFormat_h | 27 #define DateTimeFormat_h |
28 | 28 |
29 #include "platform/PlatformExport.h" | 29 #include "platform/PlatformExport.h" |
30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
31 #include "wtf/Allocator.h" | 31 #include "platform/wtf/Allocator.h" |
32 #include "wtf/Forward.h" | 32 #include "platform/wtf/Forward.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 // DateTimeFormat parses date time format defined in Unicode Technical | 36 // DateTimeFormat parses date time format defined in Unicode Technical |
37 // standard 35, Locale Data Markup Language (LDML)[1]. | 37 // standard 35, Locale Data Markup Language (LDML)[1]. |
38 // [1] LDML http://unicode.org/reports/tr35/tr35-6.html#Date_Format_Patterns | 38 // [1] LDML http://unicode.org/reports/tr35/tr35-6.html#Date_Format_Patterns |
39 class PLATFORM_EXPORT DateTimeFormat { | 39 class PLATFORM_EXPORT DateTimeFormat { |
40 STATIC_ONLY(DateTimeFormat); | 40 STATIC_ONLY(DateTimeFormat); |
41 | 41 |
42 public: | 42 public: |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 }; | 110 }; |
111 | 111 |
112 // Returns true if succeeded, false if failed. | 112 // Returns true if succeeded, false if failed. |
113 static bool parse(const String&, TokenHandler&); | 113 static bool parse(const String&, TokenHandler&); |
114 static void quoteAndappend(const String&, StringBuilder&); | 114 static void quoteAndappend(const String&, StringBuilder&); |
115 }; | 115 }; |
116 | 116 |
117 } // namespace blink | 117 } // namespace blink |
118 | 118 |
119 #endif // DateTimeFormat_h | 119 #endif // DateTimeFormat_h |
OLD | NEW |