Searched refs:regionOrSubdivision (Results 1 – 3 of 3) sorted by relevance
128 public static boolean isRegionCode(String regionOrSubdivision) { in isRegionCode() argument129 return regionOrSubdivision.length() == 2 in isRegionCode()130 || (regionOrSubdivision.length() == 3 && regionOrSubdivision.compareTo("A") < 0); in isRegionCode()
177 private static String convertToCldr(String regionOrSubdivision) { in convertToCldr() argument178 return isRegionCode(regionOrSubdivision) ? regionOrSubdivision.toUpperCase(Locale.ROOT) in convertToCldr()179 : regionOrSubdivision.replace("-", "").toLowerCase(Locale.ROOT); in convertToCldr()
75 public static String convertToCldr(String regionOrSubdivision) { in convertToCldr() argument76 …return SubdivisionNames.isRegionCode(regionOrSubdivision) ? regionOrSubdivision.toUpperCase(Locale… in convertToCldr()77 : regionOrSubdivision.replace("-", "").toLowerCase(Locale.ROOT); in convertToCldr()