Searched refs:possibleSublocale (Results 1 – 1 of 1) sorted by relevance
1123 public static int isSubLocale(String parent, String possibleSublocale) { in isSubLocale() argument1125 if (parent.equals(possibleSublocale)) return 0; in isSubLocale()1128 if (parent.length() > possibleSublocale.length()) return -1; in isSubLocale()1129 if (!possibleSublocale.startsWith(parent)) return -1; in isSubLocale()1130 if (parent.length() == possibleSublocale.length()) return 0; in isSubLocale()1131 if (possibleSublocale.charAt(parent.length()) != '_') return -1; // last subtag too long in isSubLocale()