Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: pkg/intl/lib/src/date_format_internal.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/intl/lib/message_lookup_local.dart ('k') | pkg/intl/lib/src/file_data_reader.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 * code should import one of the `date_symbol_data...` libraries and call the 11 * code should import one of the `date_symbol_data...` libraries and call the
12 * `initializeDateFormatting` method exposed there. 12 * `initializeDateFormatting` method exposed there.
13 */ 13 */
14 14
15 library date_format_internal; 15 library date_format_internal;
16 import 'dart:async';
16 import 'intl_helpers.dart'; 17 import 'intl_helpers.dart';
17 import '../date_symbols.dart'; 18 import '../date_symbols.dart';
18 19
19 /** 20 /**
20 * This holds the symbols to be used for date/time formatting, indexed 21 * This holds the symbols to be used for date/time formatting, indexed
21 * by locale. Note that it will be set differently during initialization, 22 * by locale. Note that it will be set differently during initialization,
22 * depending on what implementation we are using. By default, it is initialized 23 * depending on what implementation we are using. By default, it is initialized
23 * to an instance of UninitializedLocaleData, so any attempt to use it will 24 * to an instance of UninitializedLocaleData, so any attempt to use it will
24 * result in an informative error message. 25 * result in an informative error message.
25 */ 26 */
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 * no matter how many times this method is called. 58 * no matter how many times this method is called.
58 */ 59 */
59 void initializeDatePatterns(Function patterns) { 60 void initializeDatePatterns(Function patterns) {
60 if (dateTimePatterns is UninitializedLocaleData) { 61 if (dateTimePatterns is UninitializedLocaleData) {
61 dateTimePatterns = patterns(); 62 dateTimePatterns = patterns();
62 } 63 }
63 } 64 }
64 65
65 Future initializeIndividualLocaleDateFormatting(Function init) { 66 Future initializeIndividualLocaleDateFormatting(Function init) {
66 return init(dateTimeSymbols, dateTimePatterns); 67 return init(dateTimeSymbols, dateTimePatterns);
67 } 68 }
OLDNEW
« no previous file with comments | « pkg/intl/lib/message_lookup_local.dart ('k') | pkg/intl/lib/src/file_data_reader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698