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

Side by Side Diff: pkg/intl/lib/date_format.dart

Issue 11366016: Update intl to new import syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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
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 part of intl;
6
5 /** 7 /**
6 * DateFormat is for formatting and parsing dates in a locale-sensitive 8 * DateFormat is for formatting and parsing dates in a locale-sensitive
7 * manner. 9 * manner.
8 * It allows the user to choose from a set of standard date time formats as well 10 * It allows the user to choose from a set of standard date time formats as well
9 * as specify a customized pattern under certain locales. Date elements that 11 * as specify a customized pattern under certain locales. Date elements that
10 * vary across locales include month name, week name, field order, etc. 12 * vary across locales include month name, week name, field order, etc.
11 * <!-- TODO(efortuna): Customized pattern system -- suggested by i18n needs 13 * <!-- TODO(efortuna): Customized pattern system -- suggested by i18n needs
12 * feedback on appropriateness. --> 14 * feedback on appropriateness. -->
13 * We also allow the user to use any customized pattern to parse or format 15 * We also allow the user to use any customized pattern to parse or format
14 * date-time strings under certain locales. Date elements that vary across 16 * date-time strings under certain locales. Date elements that vary across
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 List _reverse(List list) { 561 List _reverse(List list) {
560 // TODO(alanknight): Use standardized list reverse when implemented. 562 // TODO(alanknight): Use standardized list reverse when implemented.
561 // See Issue 2804. 563 // See Issue 2804.
562 var result = new List(); 564 var result = new List();
563 for (var i = list.length-1; i >= 0; i--) { 565 for (var i = list.length-1; i >= 0; i--) {
564 result.addLast(list[i]); 566 result.addLast(list[i]);
565 } 567 }
566 return result; 568 return result;
567 } 569 }
568 } 570 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698