• Home
  • Raw
  • Download

Lines Matching refs:boundary

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