Lines Matching full:boundary
44 void printEachForward( BreakIterator& boundary)
46 int32_t start = boundary.first();
47 for (int32_t end = boundary.next();
49 start = end, end = boundary.next())
51 printTextRange( boundary, start, end );
56 void printEachBackward( BreakIterator& boundary)
58 int32_t end = boundary.last();
59 for (int32_t start = boundary.previous();
61 end = start, start = boundary.previous())
63 printTextRange( boundary, start, end );
68 void printFirst(BreakIterator& boundary)
70 int32_t start = boundary.first();
71 int32_t end = boundary.next();
72 printTextRange( boundary, start, end );
76 void printLast(BreakIterator& boundary)
78 int32_t end = boundary.last();
79 int32_t start = boundary.previous();
80 printTextRange( boundary, start, end );
84 void printAt(BreakIterator &boundary, int32_t pos )
86 int32_t end = boundary.following(pos);
87 int32_t start = boundary.previous();
88 printTextRange( boundary, start, end );
96 BreakIterator* boundary;
104 boundary = BreakIterator::createSentenceInstance(
112 boundary->setText(stringToExamine);
115 printEachForward(*boundary);
117 printEachBackward(*boundary);
118 delete boundary;
122 boundary = BreakIterator::createWordInstance(
124 boundary->setText(stringToExamine);
126 printEachForward(*boundary);
129 printFirst(*boundary);
132 printLast(*boundary);
135 printAt(*boundary, 10 );
137 delete boundary;