OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * This contains internal implementation details of the date formatting code | 6 * This contains internal implementation details of the date formatting code |
7 * which are exposed as public functions because they must be called by other | 7 * which are exposed as public functions because they must be called by other |
8 * libraries in order to configure the source for the locale data. We don't want | 8 * libraries in order to configure the source for the locale data. We don't want |
9 * them exposed as public API functions in the date formatting library, so they | 9 * them exposed as public API functions in the date formatting library, so they |
10 * are put in a separate library here. These are for internal use only. User | 10 * are put in a separate library here. These are for internal use only. User |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 */ | 58 */ |
59 void initializeDatePatterns(Function patterns) { | 59 void initializeDatePatterns(Function patterns) { |
60 if (dateTimePatterns is UninitializedLocaleData) { | 60 if (dateTimePatterns is UninitializedLocaleData) { |
61 dateTimePatterns = patterns(); | 61 dateTimePatterns = patterns(); |
62 } | 62 } |
63 } | 63 } |
64 | 64 |
65 Future initializeIndividualLocaleDateFormatting(Function init) { | 65 Future initializeIndividualLocaleDateFormatting(Function init) { |
66 return init(dateTimeSymbols, dateTimePatterns); | 66 return init(dateTimeSymbols, dateTimePatterns); |
67 } | 67 } |
OLD | NEW |