Lines Matching defs:bi

42         BreakIterator bi = BreakIterator.getWordInstance();
43 bi.setText(text);
44 MirroredBreakIterator mirror = new MirroredBreakIterator(bi);
45 final int first = bi.first();
49 final int last = bi.last();
50 bi = BreakIterator.getWordInstance();
51 bi.setText(text);
59 check(bi.following(i), DONE);
61 check(bi.following(i), mirror.following(i));
62 check(bi.current(), mirror.current());
65 checkFollowingException(bi, i);
67 check(bi.current(), mirror.current());
70 checkFollowingException(bi, length + i);
72 check(bi.current(), mirror.current());
80 check(bi.preceding(i), DONE);
82 check(bi.preceding(i), mirror.preceding(i));
83 check(bi.current(), mirror.current());
86 checkPrecedingException(bi, i);
88 check(bi.current(), mirror.current());
91 checkPrecedingException(bi, length + i);
93 check(bi.current(), mirror.current());
100 check(bi.isBoundary(i), mirror.isBoundary(i));
101 check(bi.current(), mirror.current());
104 checkIsBoundaryException(bi, i);
108 checkIsBoundaryException(bi, length + i);
125 private static void checkFollowingException(BreakIterator bi, int offset) {
127 bi.following(offset);
131 throw new RuntimeException(bi + ": following() doesn't throw an IAE with offset "
135 private static void checkPrecedingException(BreakIterator bi, int offset) {
137 bi.preceding(offset);
141 throw new RuntimeException(bi + ": preceding() doesn't throw an IAE with offset "
145 private static void checkIsBoundaryException(BreakIterator bi, int offset) {
147 bi.isBoundary(offset);
151 throw new RuntimeException(bi + ": isBoundary() doesn't throw an IAE with offset "