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

Unified Diff: pkg/i18n/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: 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
Index: pkg/i18n/lib/date_format_helpers.dart
diff --git a/pkg/i18n/lib/date_format_helpers.dart b/pkg/i18n/lib/date_format_helpers.dart
index 62e48a8f7f9077ee1b6ab9d8b3c329eefe5a3f70..2ac21f6d0a82f3c34bc552bb09aa2ef98a5f97ff 100644
--- a/pkg/i18n/lib/date_format_helpers.dart
+++ b/pkg/i18n/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);
@@ -133,6 +133,6 @@ class _Stream {
while (!atEnd() && (digitMatcher.hasMatch(peek()))) {
digits.add(next().charCodeAt(0));
}
- return Math.parseInt(new String.fromCharCodes(digits));
+ return parseInt(new String.fromCharCodes(digits));
}
-}
+}

Powered by Google App Engine
This is Rietveld 408576698