Home | History | Annotate | Download | only in text

Lines Matching defs:where

42  * <li>getLineInstance() returns a BreakIterator that locates positions where it is
593 * @param where A locale specifying the language of the text to be
596 * @throws NullPointerException if <code>where</code> is null.
599 public static BreakIterator getWordInstance(Locale where)
601 return getBreakInstance(ULocale.forLocale(where), KIND_WORD);
606 * @param where A locale specifying the language of the text to be
609 * @throws NullPointerException if <code>where</code> is null.
612 public static BreakIterator getWordInstance(ULocale where)
614 return getBreakInstance(where, KIND_WORD);
633 * @param where A Locale specifying the language of the text being broken.
636 * @throws NullPointerException if <code>where</code> is null.
639 public static BreakIterator getLineInstance(Locale where)
641 return getBreakInstance(ULocale.forLocale(where), KIND_LINE);
647 * @param where A Locale specifying the language of the text being broken.
650 * @throws NullPointerException if <code>where</code> is null.
653 public static BreakIterator getLineInstance(ULocale where)
655 return getBreakInstance(where, KIND_LINE);
674 * @param where A Locale specifying the language of the text being analyzed.
677 * @throws NullPointerException if <code>where</code> is null.
680 public static BreakIterator getCharacterInstance(Locale where)
682 return getBreakInstance(ULocale.forLocale(where), KIND_CHARACTER);
688 * @param where A Locale specifying the language of the text being analyzed.
691 * @throws NullPointerException if <code>where</code> is null.
694 public static BreakIterator getCharacterInstance(ULocale where)
696 return getBreakInstance(where, KIND_CHARACTER);
713 * @param where A Locale specifying the language of the text being analyzed.
715 * @throws NullPointerException if <code>where</code> is null.
718 public static BreakIterator getSentenceInstance(Locale where)
720 return getBreakInstance(ULocale.forLocale(where), KIND_SENTENCE);
725 * @param where A Locale specifying the language of the text being analyzed.
727 * @throws NullPointerException if <code>where</code> is null.
730 public static BreakIterator getSentenceInstance(ULocale where)
732 return getBreakInstance(where, KIND_SENTENCE);
754 * @param where A Locale specifying the language of the text being analyzed.
756 * @throws NullPointerException if <code>where</code> is null.
759 public static BreakIterator getTitleInstance(Locale where)
761 return getBreakInstance(ULocale.forLocale(where), KIND_TITLE);
769 * @param where A Locale specifying the language of the text being analyzed.
771 * @throws NullPointerException if <code>where</code> is null.
774 public static BreakIterator getTitleInstance(ULocale where)
776 return getBreakInstance(where, KIND_TITLE);
866 * Avoids writing a switch statement with getXYZInstance(where) calls.
871 public static BreakIterator getBreakInstance(ULocale where, int kind) {
872 if (where == null) {
878 if (cache.getLocale().equals(where)) {
885 BreakIterator result = getShim().createBreakIterator(where, kind);
887 BreakIteratorCache cache = new BreakIteratorCache(where, result);
926 private ULocale where;
928 BreakIteratorCache(ULocale where, BreakIterator iter) {
929 this.where = where;
934 return where;