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

Unified Diff: pkg/intl/lib/date_format_helpers.dart

Issue 10829459: Deprecate Math object in corelib in favor of dart:math library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 4 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/number_format.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/date_format_helpers.dart
diff --git a/pkg/intl/lib/date_format_helpers.dart b/pkg/intl/lib/date_format_helpers.dart
index 3deda226ebda9b51dae75e5f225e0933ff0cb526..6ac16b9b4bc72f520ef5406d20dad0d477a214fd 100644
--- a/pkg/intl/lib/date_format_helpers.dart
+++ b/pkg/intl/lib/date_format_helpers.dart
@@ -87,7 +87,7 @@ class _Stream {
if (contents is String) {
result = contents.substring(
index,
- Math.min(index + howMany, contents.length));
+ min(index + howMany, contents.length));
} else {
// Assume List
result = contents.getRange(index, howMany);
@@ -130,6 +130,6 @@ class _Stream {
var string = digitMatcher.stringMatch(rest());
if (string == null || string.isEmpty()) return null;
read(string.length);
- return Math.parseInt(string);
+ return parseInt(string);
}
-}
+}
« no previous file with comments | « pkg/intl/date_format.dart ('k') | pkg/intl/number_format.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698