Lines Matching refs:nSuchIdx
575 sal_Int32 nSuchIdx = aStr.getLength(); in NSrchFrwrd() local
577 if( !nSuchIdx || !sSearchKey.getLength() || sSearchKey.getLength() > nSuchIdx ) in NSrchFrwrd()
600 nSuchIdx = sSearchKey.getLength() - 1; in NSrchFrwrd()
601 while( nSuchIdx >= 0 && sSearchKey[nSuchIdx] == aStr[nCmpIdx + nSuchIdx]) in NSrchFrwrd()
603 if( nSuchIdx == 0 ) in NSrchFrwrd()
632 nSuchIdx--; in NSrchFrwrd()
647 sal_Int32 nSuchIdx = aStr.getLength(); in NSrchBkwrd() local
649 if( nSuchIdx == 0 || sSearchKey.getLength() == 0 || sSearchKey.getLength() > nSuchIdx) in NSrchBkwrd()
657 if( nEnde == nSuchIdx ) // end position for the search in NSrchBkwrd()
671 nSuchIdx = 0; in NSrchBkwrd()
672 while( nSuchIdx < sSearchKey.getLength() && sSearchKey[nSuchIdx] == in NSrchBkwrd()
673 aStr[nCmpIdx + nSuchIdx - sSearchKey.getLength()] ) in NSrchBkwrd()
674 nSuchIdx++; in NSrchBkwrd()
675 if( nSuchIdx >= sSearchKey.getLength() ) in NSrchBkwrd()
713 nSuchIdx = GetDiff( aStr[nCmpIdx - sSearchKey.getLength()] ); in NSrchBkwrd()
714 if( nCmpIdx < nSuchIdx ) in NSrchBkwrd()
716 nCmpIdx -= nSuchIdx; in NSrchBkwrd()