Lines Matching defs:locale
1206 * @param oneMore the string for "1 more" in the current locale
1207 * @param more the string for "%d more" in the current locale
1749 * @param locale the Locale for which we want the layout direction. Can be null.
1756 public static int getLayoutDirectionFromLocale(Locale locale) {
1757 if (locale != null && !locale.equals(Locale.ROOT)) {
1758 final String scriptSubtag = ICU.addLikelySubtags(locale).getScript();
1759 if (scriptSubtag == null) return getLayoutDirectionFromFirstChar(locale);
1773 * Fallback algorithm to detect the locale direction. Rely on the fist char of the
1774 * localized locale name. This will not work if the localized locale name is in English
1777 * @param locale
1786 private static int getLayoutDirectionFromFirstChar(Locale locale) {
1787 switch(Character.getDirectionality(locale.getDisplayName(locale).charAt(0))) {