Lines Matching refs:aBoundary
348 i18n::Boundary aBoundary; in getTextAtIndex() local
368 implGetGlyphBoundary( aBoundary, nIndex ); in getTextAtIndex()
369 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextAtIndex()
371 aResult.SegmentText = sText.copy( aBoundary.startPos, aBoundary.endPos - aBoundary.startPos ); in getTextAtIndex()
372 aResult.SegmentStart = aBoundary.startPos; in getTextAtIndex()
373 aResult.SegmentEnd = aBoundary.endPos; in getTextAtIndex()
380 sal_Bool bWord = implGetWordBoundary( aBoundary, nIndex ); in getTextAtIndex()
381 if ( bWord && implIsValidBoundary( aBoundary, nLength ) ) in getTextAtIndex()
383 aResult.SegmentText = sText.copy( aBoundary.startPos, aBoundary.endPos - aBoundary.startPos ); in getTextAtIndex()
384 aResult.SegmentStart = aBoundary.startPos; in getTextAtIndex()
385 aResult.SegmentEnd = aBoundary.endPos; in getTextAtIndex()
392 implGetSentenceBoundary( aBoundary, nIndex ); in getTextAtIndex()
393 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextAtIndex()
395 aResult.SegmentText = sText.copy( aBoundary.startPos, aBoundary.endPos - aBoundary.startPos ); in getTextAtIndex()
396 aResult.SegmentStart = aBoundary.startPos; in getTextAtIndex()
397 aResult.SegmentEnd = aBoundary.endPos; in getTextAtIndex()
404 implGetParagraphBoundary( aBoundary, nIndex ); in getTextAtIndex()
405 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextAtIndex()
407 aResult.SegmentText = sText.copy( aBoundary.startPos, aBoundary.endPos - aBoundary.startPos ); in getTextAtIndex()
408 aResult.SegmentStart = aBoundary.startPos; in getTextAtIndex()
409 aResult.SegmentEnd = aBoundary.endPos; in getTextAtIndex()
416 implGetLineBoundary( aBoundary, nIndex ); in getTextAtIndex()
417 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextAtIndex()
419 aResult.SegmentText = sText.copy( aBoundary.startPos, aBoundary.endPos - aBoundary.startPos ); in getTextAtIndex()
420 aResult.SegmentStart = aBoundary.startPos; in getTextAtIndex()
421 aResult.SegmentEnd = aBoundary.endPos; in getTextAtIndex()
453 i18n::Boundary aBoundary; in getTextBeforeIndex() local
473 implGetGlyphBoundary( aBoundary, nIndex ); in getTextBeforeIndex()
475 if ( aBoundary.startPos > 0 ) in getTextBeforeIndex()
477 implGetGlyphBoundary( aBoundary, aBoundary.startPos - 1 ); in getTextBeforeIndex()
478 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextBeforeIndex()
480 aResult.SegmentText = sText.copy( aBoundary.startPos, aBoundary.endPos - aBoundary.startPos ); in getTextBeforeIndex()
481 aResult.SegmentStart = aBoundary.startPos; in getTextBeforeIndex()
482 aResult.SegmentEnd = aBoundary.endPos; in getTextBeforeIndex()
490 implGetWordBoundary( aBoundary, nIndex ); in getTextBeforeIndex()
493 while ( !bWord && aBoundary.startPos > 0 ) in getTextBeforeIndex()
494 bWord = implGetWordBoundary( aBoundary, aBoundary.startPos - 1 ); in getTextBeforeIndex()
495 if ( bWord && implIsValidBoundary( aBoundary, nLength ) ) in getTextBeforeIndex()
497 aResult.SegmentText = sText.copy( aBoundary.startPos, aBoundary.endPos - aBoundary.startPos ); in getTextBeforeIndex()
498 aResult.SegmentStart = aBoundary.startPos; in getTextBeforeIndex()
499 aResult.SegmentEnd = aBoundary.endPos; in getTextBeforeIndex()
506 implGetSentenceBoundary( aBoundary, nIndex ); in getTextBeforeIndex()
508 if ( aBoundary.startPos > 0 ) in getTextBeforeIndex()
510 implGetSentenceBoundary( aBoundary, aBoundary.startPos - 1 ); in getTextBeforeIndex()
511 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextBeforeIndex()
513 aResult.SegmentText = sText.copy( aBoundary.startPos, aBoundary.endPos - aBoundary.startPos ); in getTextBeforeIndex()
514 aResult.SegmentStart = aBoundary.startPos; in getTextBeforeIndex()
515 aResult.SegmentEnd = aBoundary.endPos; in getTextBeforeIndex()
523 implGetParagraphBoundary( aBoundary, nIndex ); in getTextBeforeIndex()
525 if ( aBoundary.startPos > 0 ) in getTextBeforeIndex()
527 implGetParagraphBoundary( aBoundary, aBoundary.startPos - 1 ); in getTextBeforeIndex()
528 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextBeforeIndex()
530 aResult.SegmentText = sText.copy( aBoundary.startPos, aBoundary.endPos - aBoundary.startPos ); in getTextBeforeIndex()
531 aResult.SegmentStart = aBoundary.startPos; in getTextBeforeIndex()
532 aResult.SegmentEnd = aBoundary.endPos; in getTextBeforeIndex()
540 implGetLineBoundary( aBoundary, nIndex ); in getTextBeforeIndex()
542 if ( aBoundary.startPos > 0 ) in getTextBeforeIndex()
544 implGetLineBoundary( aBoundary, aBoundary.startPos - 1 ); in getTextBeforeIndex()
545 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextBeforeIndex()
547 aResult.SegmentText = sText.copy( aBoundary.startPos, aBoundary.endPos - aBoundary.startPos ); in getTextBeforeIndex()
548 aResult.SegmentStart = aBoundary.startPos; in getTextBeforeIndex()
549 aResult.SegmentEnd = aBoundary.endPos; in getTextBeforeIndex()
578 i18n::Boundary aBoundary; in getTextBehindIndex() local
598 implGetGlyphBoundary( aBoundary, nIndex ); in getTextBehindIndex()
600 if ( aBoundary.endPos < nLength ) in getTextBehindIndex()
602 implGetGlyphBoundary( aBoundary, aBoundary.endPos ); in getTextBehindIndex()
603 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextBehindIndex()
605 aResult.SegmentText = sText.copy( aBoundary.startPos, aBoundary.endPos - aBoundary.startPos ); in getTextBehindIndex()
606 aResult.SegmentStart = aBoundary.startPos; in getTextBehindIndex()
607 aResult.SegmentEnd = aBoundary.endPos; in getTextBehindIndex()
615 implGetWordBoundary( aBoundary, nIndex ); in getTextBehindIndex()
618 while ( !bWord && aBoundary.endPos < nLength ) in getTextBehindIndex()
619 bWord = implGetWordBoundary( aBoundary, aBoundary.endPos ); in getTextBehindIndex()
620 if ( bWord && implIsValidBoundary( aBoundary, nLength ) ) in getTextBehindIndex()
622 aResult.SegmentText = sText.copy( aBoundary.startPos, aBoundary.endPos - aBoundary.startPos ); in getTextBehindIndex()
623 aResult.SegmentStart = aBoundary.startPos; in getTextBehindIndex()
624 aResult.SegmentEnd = aBoundary.endPos; in getTextBehindIndex()
631 implGetSentenceBoundary( aBoundary, nIndex ); in getTextBehindIndex()
633 sal_Int32 nEnd = aBoundary.endPos; in getTextBehindIndex()
634 sal_Int32 nI = aBoundary.endPos; in getTextBehindIndex()
638 implGetSentenceBoundary( aBoundary, nI ); in getTextBehindIndex()
639 bFound = ( aBoundary.endPos > nEnd ); in getTextBehindIndex()
641 if ( bFound && implIsValidBoundary( aBoundary, nLength ) ) in getTextBehindIndex()
643 aResult.SegmentText = sText.copy( aBoundary.startPos, aBoundary.endPos - aBoundary.startPos ); in getTextBehindIndex()
644 aResult.SegmentStart = aBoundary.startPos; in getTextBehindIndex()
645 aResult.SegmentEnd = aBoundary.endPos; in getTextBehindIndex()
652 implGetParagraphBoundary( aBoundary, nIndex ); in getTextBehindIndex()
654 if ( aBoundary.endPos < nLength ) in getTextBehindIndex()
656 implGetParagraphBoundary( aBoundary, aBoundary.endPos ); in getTextBehindIndex()
657 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextBehindIndex()
659 aResult.SegmentText = sText.copy( aBoundary.startPos, aBoundary.endPos - aBoundary.startPos ); in getTextBehindIndex()
660 aResult.SegmentStart = aBoundary.startPos; in getTextBehindIndex()
661 aResult.SegmentEnd = aBoundary.endPos; in getTextBehindIndex()
669 implGetLineBoundary( aBoundary, nIndex ); in getTextBehindIndex()
671 if ( aBoundary.endPos < nLength ) in getTextBehindIndex()
673 implGetLineBoundary( aBoundary, aBoundary.endPos ); in getTextBehindIndex()
674 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextBehindIndex()
676 aResult.SegmentText = sText.copy( aBoundary.startPos, aBoundary.endPos - aBoundary.startPos ); in getTextBehindIndex()
677 aResult.SegmentStart = aBoundary.startPos; in getTextBehindIndex()
678 aResult.SegmentEnd = aBoundary.endPos; in getTextBehindIndex()