equal
deleted
inserted
replaced
98 HB_GetWordBoundaries(string, length, scriptItems.data(), scriptItems.count(), attributes); |
98 HB_GetWordBoundaries(string, length, scriptItems.data(), scriptItems.count(), attributes); |
99 else if (type == QTextBoundaryFinder::Sentence) |
99 else if (type == QTextBoundaryFinder::Sentence) |
100 HB_GetSentenceBoundaries(string, length, scriptItems.data(), scriptItems.count(), attributes); |
100 HB_GetSentenceBoundaries(string, length, scriptItems.data(), scriptItems.count(), attributes); |
101 } |
101 } |
102 |
102 |
103 /*! \class QTextBoundaryFinder |
103 /*! |
|
104 \class QTextBoundaryFinder |
104 |
105 |
105 \brief The QTextBoundaryFinder class provides a way of finding Unicode text boundaries in a string. |
106 \brief The QTextBoundaryFinder class provides a way of finding Unicode text boundaries in a string. |
106 |
107 |
107 \since 4.4 |
108 \since 4.4 |
108 \ingroup tools |
109 \ingroup tools |
329 |
330 |
330 |
331 |
331 /*! |
332 /*! |
332 Moves the QTextBoundaryFinder to the next boundary position and returns that position. |
333 Moves the QTextBoundaryFinder to the next boundary position and returns that position. |
333 |
334 |
334 Returns -1 is there is no next boundary. |
335 Returns -1 if there is no next boundary. |
335 */ |
336 */ |
336 int QTextBoundaryFinder::toNextBoundary() |
337 int QTextBoundaryFinder::toNextBoundary() |
337 { |
338 { |
338 if (!d) { |
339 if (!d) { |
339 pos = -1; |
340 pos = -1; |
371 } |
372 } |
372 |
373 |
373 /*! |
374 /*! |
374 Moves the QTextBoundaryFinder to the previous boundary position and returns that position. |
375 Moves the QTextBoundaryFinder to the previous boundary position and returns that position. |
375 |
376 |
376 Returns -1 is there is no previous boundary. |
377 Returns -1 if there is no previous boundary. |
377 */ |
378 */ |
378 int QTextBoundaryFinder::toPreviousBoundary() |
379 int QTextBoundaryFinder::toPreviousBoundary() |
379 { |
380 { |
380 if (!d) { |
381 if (!d) { |
381 pos = -1; |
382 pos = -1; |