Home | History | Annotate | Download | only in text

Lines Matching refs:where

37  * <li>getLineInstance() returns a BreakIterator that locates positions where it is
453 * @param where A locale specifying the language of the text to be
458 public static BreakIterator getWordInstance(Locale where)
460 return getBreakInstance(where, KIND_WORD);
465 * @param where A locale specifying the language of the text to be
470 public static BreakIterator getWordInstance(ULocale where)
472 return getBreakInstance(where.toLocale(), KIND_WORD);
491 * @param where A Locale specifying the language of the text being broken.
496 public static BreakIterator getLineInstance(Locale where)
498 return getBreakInstance(where, KIND_LINE);
504 * @param where A Locale specifying the language of the text being broken.
509 public static BreakIterator getLineInstance(ULocale where)
511 return getBreakInstance(where.toLocale(), KIND_LINE);
530 * @param where A Locale specifying the language of the text being analyzed.
535 public static BreakIterator getCharacterInstance(Locale where)
537 return getBreakInstance(where, KIND_CHARACTER);
543 * @param where A Locale specifying the language of the text being analyzed.
548 public static BreakIterator getCharacterInstance(ULocale where)
550 return getBreakInstance(where.toLocale(), KIND_CHARACTER);
567 * @param where A Locale specifying the language of the text being analyzed.
571 public static BreakIterator getSentenceInstance(Locale where)
573 return getBreakInstance(where, KIND_SENTENCE);
578 * @param where A Locale specifying the language of the text being analyzed.
582 public static BreakIterator getSentenceInstance(ULocale where)
584 return getBreakInstance(where.toLocale(), KIND_SENTENCE);
606 // * @param where A Locale specifying the language of the text being analyzed.
610 // public static BreakIterator getTitleInstance(Locale where)
612 // return getBreakInstance(where, KIND_TITLE);
620 // * @param where A Locale specifying the language of the text being analyzed.
624 // public static BreakIterator getTitleInstance(ULocale where)
626 // return getBreakInstance(where.toLocale(), KIND_TITLE);
673 * Avoids writing a switch statement with getXYZInstance(where) calls.
677 public static BreakIterator getBreakInstance(ULocale where, int kind) {
678 return getBreakInstance(where.toLocale(), KIND_SENTENCE);
681 private static BreakIterator getBreakInstance(Locale where, int kind) {
684 case KIND_CHARACTER: br = java.text.BreakIterator.getCharacterInstance(where); break;
685 case KIND_WORD: br = java.text.BreakIterator.getWordInstance(where); break;
686 case KIND_LINE: br = java.text.BreakIterator.getLineInstance(where); break;
687 case KIND_SENTENCE: br = java.text.BreakIterator.getSentenceInstance(where); break;