Esempio n. 1
0
  /**
   * Return a new instance of BreakIterator used to iterate word-breaks using given locale.
   *
   * @param where the given locale
   * @return a new instance of BreakIterator used to iterate word-breaks using given locale.
   */
  public static BreakIterator getWordInstance(Locale where) {
    if (where == null) {
      throw new NullPointerException();
    }

    return new RuleBasedBreakIterator(com.ibm.icu4jni.text.BreakIterator.getWordInstance(where));
  }
Esempio n. 2
0
 /**
  * Return a new instance of BreakIterator used to iterate word-breaks using default locale.
  *
  * @return a new instance of BreakIterator used to iterate word-breaks using default locale.
  */
 public static BreakIterator getWordInstance() {
   return new RuleBasedBreakIterator(com.ibm.icu4jni.text.BreakIterator.getWordInstance());
 }