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

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

Issue 20071003: Make _shortLocale public (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/intl.dart
diff --git a/pkg/intl/lib/intl.dart b/pkg/intl/lib/intl.dart
index 8801031e1600c833706f2b89b98ce4b39c956549..86d317bbfa779f6a1a0ee19f5a283b35a014cd68 100644
--- a/pkg/intl/lib/intl.dart
+++ b/pkg/intl/lib/intl.dart
@@ -193,7 +193,7 @@ class Intl {
return newLocale;
}
for (var each in
- [canonicalizedLocale(newLocale), _shortLocale(newLocale)]) {
+ [canonicalizedLocale(newLocale), shortLocale(newLocale)]) {
if (localeExists(each)) {
return each;
}
@@ -210,7 +210,7 @@ class Intl {
}
/** Return the short version of a locale name, e.g. 'en_US' => 'en' */
- static String _shortLocale(String aLocale) {
+ static String shortLocale(String aLocale) {
if (aLocale.length < 2) return aLocale;
return aLocale.substring(0, 2).toLowerCase();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698