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

Unified Diff: pkg/intl/date_symbol_data_file.dart

Issue 10952004: Change intl to use new pub layout (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/intl/date_format.dart ('k') | pkg/intl/date_symbol_data_local.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/date_symbol_data_file.dart
===================================================================
--- pkg/intl/date_symbol_data_file.dart (revision 12515)
+++ pkg/intl/date_symbol_data_file.dart (working copy)
@@ -1,44 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-/**
- * This file should be imported, along with date_format.dart in order to read
- * locale data from files in the file system.
- */
-
-#library('date_symbol_data_json');
-
-#import("date_symbols.dart");
-#import("lib/lazy_locale_data.dart");
-#import('lib/date_format_internal.dart');
-#import('lib/file_data_reader.dart');
-#import('dart:io');
-
-#source("data/dates/localeList.dart");
-
-/**
- * This should be called for at least one [locale] before any date formatting
- * methods are called. It sets up the lookup for date symbols using [path].
- * The [path] parameter should end with a directory separator appropriate
- * for the platform.
- */
-Future initializeDateFormatting(String locale, String path) {
- var reader = new FileDataReader('${path}symbols${Platform.pathSeparator}');
- initializeDateSymbols(() => new LazyLocaleData(
- reader, _createDateSymbol, availableLocalesForDateFormatting));
- var reader2 = new FileDataReader('${path}patterns${Platform.pathSeparator}');
- initializeDatePatterns(() => new LazyLocaleData(
- reader2, (x) => x, availableLocalesForDateFormatting));
- return initializeIndividualLocaleDateFormatting(
- (symbols, patterns) {
- return Futures.wait([
- symbols.initLocale(locale),
- patterns.initLocale(locale)]);
- });
-}
-
-/** Defines how new date symbol entries are created. */
-DateSymbols _createDateSymbol(Map map) {
- return new DateSymbols.deserializeFromMap(map);
-}
« no previous file with comments | « pkg/intl/date_format.dart ('k') | pkg/intl/date_symbol_data_local.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698