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

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

Issue 11086033: Make verifiedLocale work differently depending on what it's verifying for (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 side-by-side diff with in-line comments
Download patch
Index: pkg/intl/lib/date_format.dart
===================================================================
--- pkg/intl/lib/date_format.dart (revision 13446)
+++ pkg/intl/lib/date_format.dart (working copy)
@@ -184,7 +184,7 @@
// the constructor seems awkward, especially with the possibility of
// confusion with the locale. A "fluent" interface with cascading on an
// instance might work better? A list of patterns is also possible.
- _locale = Intl.verifiedLocale(locale);
+ _locale = Intl.verifiedLocale(locale, localeExists);
addPattern(newPattern);
}
@@ -508,7 +508,7 @@
* to use the default.
*/
_setLocale(String newLocale) {
- _locale = Intl.verifiedLocale(newLocale);
+ _locale = Intl.verifiedLocale(newLocale, localeExists);
}
/**

Powered by Google App Engine
This is Rietveld 408576698