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

Unified Diff: pkg/intl/lib/src/intl/date_format.dart

Issue 670933004: Fix a couple of Dart style naming violations in Intl (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review fixes Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/intl/lib/src/icu_parser.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/src/intl/date_format.dart
diff --git a/pkg/intl/lib/src/intl/date_format.dart b/pkg/intl/lib/src/intl/date_format.dart
index 54fb3f0c4d11f247530cf766d9105ff2f30eb5f6..3aede3676463472f2be68972f5ac67bda6cffde2 100644
--- a/pkg/intl/lib/src/intl/date_format.dart
+++ b/pkg/intl/lib/src/intl/date_format.dart
@@ -291,10 +291,24 @@ class DateFormat {
/**
* Given user input, attempt to parse the [inputString] into the anticipated
* format, treating it as being in UTC.
+ *
+ * The canonical Dart style name
+ * is [parseUtc], but [parseUTC] is retained
+ * for backward-compatibility.
*/
DateTime parseUTC(String inputString) => parse(inputString, true);
/**
+ * Given user input, attempt to parse the [inputString] into the anticipated
+ * format, treating it as being in UTC.
+ *
+ * The canonical Dart style name
+ * is [parseUtc], but [parseUTC] is retained
+ * for backward-compatibility.
+ */
+ DateTime parseUtc(String inputString) => parse(inputString, true);
+
+ /**
* Return the locale code in which we operate, e.g. 'en_US' or 'pt'.
*/
String get locale => _locale;
« no previous file with comments | « pkg/intl/lib/src/icu_parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698