int leftMin = 2;
int rightMin = 2;
int pos = s.indexOf('_');
if (pos == -1) {
return new HyphenationAuto(lang, country, leftMin, rightMin);
}
lang = s.substring(0, pos);
country = s.substring(pos + 1);
pos = country.indexOf(',');
if (pos == -1) {
return new HyphenationAuto(lang, country, leftMin, rightMin);
}
s = country.substring(pos + 1);
country = country.substring(0, pos);
pos = s.indexOf(',');
if (pos == -1) {
leftMin = Integer.parseInt(s);
} else {
leftMin = Integer.parseInt(s.substring(0, pos));
rightMin = Integer.parseInt(s.substring(pos + 1));
}
return new HyphenationAuto(lang, country, leftMin, rightMin);
}