Gets the list of the locales supported by the formatter, as an array of
valid microedition.locale
values.
If no locales are supported, the list MUST be empty. It MUST NOT be
null
. As the value null
is not technically a
valid locale, but a special value to trigger locale-neutral formatting,
it MUST NOT appear in the array.
int lcount = getFormatLocalesCount();
if (lcount == 0) return new String[0];
int index = 0;
String locale = getFormatLocaleName(0);
if (locale == null || locale.equals("")){
index = 1;
}
String[] locales = new String[lcount-index];
for (int i=0; index < lcount; index++) {
locales[i++] = getFormatLocaleName(index);
}
return locales;