Lines Matching refs:nLength
101 sal_Bool OCommonAccessibleText::implIsValidBoundary( i18n::Boundary& rBoundary, sal_Int32 nLength ) in implIsValidBoundary() argument
103 …tartPos >= 0 ) && ( rBoundary.startPos < nLength ) && ( rBoundary.endPos >= 0 ) && ( rBoundary.end… in implIsValidBoundary()
108 sal_Bool OCommonAccessibleText::implIsValidIndex( sal_Int32 nIndex, sal_Int32 nLength ) in implIsValidIndex() argument
110 return ( nIndex >= 0 ) && ( nIndex < nLength ); in implIsValidIndex()
115 …onAccessibleText::implIsValidRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex, sal_Int32 nLength ) in implIsValidRange() argument
117 …return ( nStartIndex >= 0 ) && ( nStartIndex <= nLength ) && ( nEndIndex >= 0 ) && ( nEndIndex <= … in implIsValidRange()
238 sal_Int32 nLength = sText.getLength(); in implGetLineBoundary() local
240 if ( implIsValidIndex( nIndex, nLength ) || nIndex == nLength ) in implGetLineBoundary()
243 rBoundary.endPos = nLength; in implGetLineBoundary()
343 sal_Int32 nLength = sText.getLength(); in getTextAtIndex() local
345 if ( !implIsValidIndex( nIndex, nLength ) && nIndex != nLength ) in getTextAtIndex()
357 if ( implIsValidIndex( nIndex, nLength ) ) in getTextAtIndex()
369 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextAtIndex()
381 if ( bWord && implIsValidBoundary( aBoundary, nLength ) ) in getTextAtIndex()
393 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextAtIndex()
405 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextAtIndex()
417 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextAtIndex()
431 aResult.SegmentEnd = nLength; in getTextAtIndex()
448 sal_Int32 nLength = sText.getLength(); in getTextBeforeIndex() local
450 if ( !implIsValidIndex( nIndex, nLength ) && nIndex != nLength ) in getTextBeforeIndex()
462 if ( implIsValidIndex( nIndex - 1, nLength ) ) in getTextBeforeIndex()
478 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextBeforeIndex()
495 if ( bWord && implIsValidBoundary( aBoundary, nLength ) ) in getTextBeforeIndex()
511 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextBeforeIndex()
528 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextBeforeIndex()
545 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextBeforeIndex()
573 sal_Int32 nLength = sText.getLength(); in getTextBehindIndex() local
575 if ( !implIsValidIndex( nIndex, nLength ) && nIndex != nLength ) in getTextBehindIndex()
587 if ( implIsValidIndex( nIndex + 1, nLength ) ) in getTextBehindIndex()
600 if ( aBoundary.endPos < nLength ) in getTextBehindIndex()
603 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextBehindIndex()
618 while ( !bWord && aBoundary.endPos < nLength ) in getTextBehindIndex()
620 if ( bWord && implIsValidBoundary( aBoundary, nLength ) ) in getTextBehindIndex()
636 while ( !bFound && ++nI < nLength ) in getTextBehindIndex()
641 if ( bFound && implIsValidBoundary( aBoundary, nLength ) ) in getTextBehindIndex()
654 if ( aBoundary.endPos < nLength ) in getTextBehindIndex()
657 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextBehindIndex()
671 if ( aBoundary.endPos < nLength ) in getTextBehindIndex()
674 if ( implIsValidBoundary( aBoundary, nLength ) ) in getTextBehindIndex()