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

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

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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
OLDNEW
1 part of intl;
2
3 // 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
4 // 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
5 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
6 4
7 /** 5 /**
8 * This is a private class internal to DateFormat which is used for formatting 6 * This is a private class internal to DateFormat which is used for formatting
9 * particular fields in a template. e.g. if the format is hh:mm:ss then the 7 * particular fields in a template. e.g. if the format is hh:mm:ss then the
10 * fields would be "hh", ":", "mm", ":", and "ss". Each type of field knows 8 * fields would be "hh", ":", "mm", ":", and "ss". Each type of field knows
11 * how to format that portion of a date. 9 * how to format that portion of a date.
12 */ 10 */
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 var basicString = toBePrinted.toString(); 395 var basicString = toBePrinted.toString();
398 if (basicString.length >= width) return basicString; 396 if (basicString.length >= width) return basicString;
399 var buffer = new StringBuffer(); 397 var buffer = new StringBuffer();
400 for (var i = 0; i < width - basicString.length; i++) { 398 for (var i = 0; i < width - basicString.length; i++) {
401 buffer.add('0'); 399 buffer.add('0');
402 } 400 }
403 buffer.add(basicString); 401 buffer.add(basicString);
404 return buffer.toString(); 402 return buffer.toString();
405 } 403 }
406 } 404 }
OLDNEW
« no previous file with comments | « dart/pkg/intl/lib/src/data/dates/localeList.dart ('k') | dart/pkg/intl/lib/src/date_format_helpers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698