Methods Summary |
---|
public abstract java.lang.Object | clone()
|
public abstract int | current()
|
public abstract int | first()
|
public abstract int | following(int offset)
|
public static java.util.Locale[] | getAvailableLocales()
String[] locales = NativeBreakIterator.getAvailableLocalesImpl();
Locale[] result = new Locale[locales.length];
String locale;
int index, index2;
for(int i = 0; i < locales.length; i++) {
locale = locales[i];
index = locale.indexOf('_");
index2 = locale.lastIndexOf('_");
if(index == -1) {
result[i] = new Locale(locales[i]);
} else if(index > 0 && index == index2) {
result[i] = new Locale(
locale.substring(0,index),
locale.substring(index+1));
} else if(index > 0 && index2 > index) {
result[i] = new Locale(
locale.substring(0,index),
locale.substring(index+1,index2),
locale.substring(index2+1));
}
}
return result;
|
public static com.ibm.icu4jni.text.BreakIterator | getCharacterInstance()
int iter = NativeBreakIterator.getCharacterInstanceImpl("");
return new RuleBasedBreakIterator(iter, BI_CHAR_INSTANCE);
|
public static com.ibm.icu4jni.text.BreakIterator | getCharacterInstance(java.util.Locale where)
int iter = NativeBreakIterator.getCharacterInstanceImpl(where.toString());
return new RuleBasedBreakIterator(iter, BI_CHAR_INSTANCE);
|
public static com.ibm.icu4jni.text.BreakIterator | getLineInstance()
int iter = NativeBreakIterator.getLineInstanceImpl("");
return new RuleBasedBreakIterator(iter, BI_LINE_INSTANCE);
|
public static com.ibm.icu4jni.text.BreakIterator | getLineInstance(java.util.Locale where)
int iter = NativeBreakIterator.getLineInstanceImpl(where.toString());
return new RuleBasedBreakIterator(iter, BI_LINE_INSTANCE);
|
public static com.ibm.icu4jni.text.BreakIterator | getSentenceInstance()
int iter = NativeBreakIterator.getSentenceInstanceImpl("");
return new RuleBasedBreakIterator(iter, BI_SENT_INSTANCE);
|
public static com.ibm.icu4jni.text.BreakIterator | getSentenceInstance(java.util.Locale where)
int iter = NativeBreakIterator.getSentenceInstanceImpl(where.toString());
return new RuleBasedBreakIterator(iter, BI_SENT_INSTANCE);
|
public abstract java.text.CharacterIterator | getText()
|
public static com.ibm.icu4jni.text.BreakIterator | getWordInstance()
int iter = NativeBreakIterator.getWordInstanceImpl("");
return new RuleBasedBreakIterator(iter, BI_WORD_INSTANCE);
|
public static com.ibm.icu4jni.text.BreakIterator | getWordInstance(java.util.Locale where)
int iter = NativeBreakIterator.getWordInstanceImpl(where.toString());
return new RuleBasedBreakIterator(iter, BI_WORD_INSTANCE);
|
public abstract boolean | isBoundary(int offset)
|
public abstract int | last()
|
public abstract int | next(int n)
|
public abstract int | next()
|
public abstract int | preceding(int offset)
|
public abstract int | previous()
|
public void | setText(java.lang.String newText)
setText(new StringCharacterIterator(newText));
|
public abstract void | setText(java.text.CharacterIterator newText)
|