Home | History | Annotate | Download | only in break

Lines Matching defs:boundary

50 void printEachForward( BreakIterator& boundary)
52 int32_t start = boundary.first();
53 for (int32_t end = boundary.next();
55 start = end, end = boundary.next())
57 printTextRange( boundary, start, end );
62 void printEachBackward( BreakIterator& boundary)
64 int32_t end = boundary.last();
65 for (int32_t start = boundary.previous();
67 end = start, start = boundary.previous())
69 printTextRange( boundary, start, end );
74 void printFirst(BreakIterator& boundary)
76 int32_t start = boundary.first();
77 int32_t end = boundary.next();
78 printTextRange( boundary, start, end );
82 void printLast(BreakIterator& boundary)
84 int32_t end = boundary.last();
85 int32_t start = boundary.previous();
86 printTextRange( boundary, start, end );
90 void printAt(BreakIterator &boundary, int32_t pos )
92 int32_t end = boundary.following(pos);
93 int32_t start = boundary.previous();
94 printTextRange( boundary, start, end );
102 BreakIterator* boundary;
110 boundary = BreakIterator::createSentenceInstance(
118 boundary->setText(stringToExamine);
121 printEachForward(*boundary);
123 printEachBackward(*boundary);
124 delete boundary;
128 boundary = BreakIterator::createWordInstance(
130 boundary->setText(stringToExamine);
132 printEachForward(*boundary);
135 printFirst(*boundary);
138 printLast(*boundary);
141 printAt(*boundary, 10 );
143 delete boundary;