• Home
  • Raw
  • Download

Lines Matching refs:boundary

51 void printEachForward( BreakIterator& boundary)  in printEachForward()  argument
53 int32_t start = boundary.first(); in printEachForward()
54 for (int32_t end = boundary.next(); in printEachForward()
56 start = end, end = boundary.next()) in printEachForward()
58 printTextRange( boundary, start, end ); in printEachForward()
63 void printEachBackward( BreakIterator& boundary) in printEachBackward() argument
65 int32_t end = boundary.last(); in printEachBackward()
66 for (int32_t start = boundary.previous(); in printEachBackward()
68 end = start, start = boundary.previous()) in printEachBackward()
70 printTextRange( boundary, start, end ); in printEachBackward()
75 void printFirst(BreakIterator& boundary) in printFirst() argument
77 int32_t start = boundary.first(); in printFirst()
78 int32_t end = boundary.next(); in printFirst()
79 printTextRange( boundary, start, end ); in printFirst()
83 void printLast(BreakIterator& boundary) in printLast() argument
85 int32_t end = boundary.last(); in printLast()
86 int32_t start = boundary.previous(); in printLast()
87 printTextRange( boundary, start, end ); in printLast()
91 void printAt(BreakIterator &boundary, int32_t pos ) in printAt() argument
93 int32_t end = boundary.following(pos); in printAt()
94 int32_t start = boundary.previous(); in printAt()
95 printTextRange( boundary, start, end ); in printAt()
103 BreakIterator* boundary; in main() local
111 boundary = BreakIterator::createSentenceInstance( in main()
119 boundary->setText(stringToExamine); in main()
122 printEachForward(*boundary); in main()
124 printEachBackward(*boundary); in main()
125 delete boundary; in main()
129 boundary = BreakIterator::createWordInstance( in main()
131 boundary->setText(stringToExamine); in main()
133 printEachForward(*boundary); in main()
136 printFirst(*boundary); in main()
139 printLast(*boundary); in main()
142 printAt(*boundary, 10 ); in main()
144 delete boundary; in main()