Home
last modified time | relevance | path

Searched refs:possibleSublocale (Results 1 – 1 of 1) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/util/
DXPathParts.java1098 public static int isSubLocale(String parent, String possibleSublocale) { in isSubLocale() argument
1100 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()