Searched refs:possibleSublocale (Results 1 – 1 of 1) sorted by relevance
1098 public static int isSubLocale(String parent, String possibleSublocale) { in isSubLocale() argument1100 if (parent.equals(possibleSublocale)) return 0; in isSubLocale()1103 if (parent.length() > possibleSublocale.length()) return -1; in isSubLocale()1104 if (!possibleSublocale.startsWith(parent)) return -1; in isSubLocale()1105 if (parent.length() == possibleSublocale.length()) return 0; in isSubLocale()1106 if (possibleSublocale.charAt(parent.length()) != '_') return -1; // last subtag too long in isSubLocale()