Lines Matching refs:nSttPos

459 									xub_StrLen nSttPos, xub_StrLen nEndPos,  in FnCptlSttWrd()  argument
467 for( ; nSttPos < nEndPos; ++nSttPos ) in FnCptlSttWrd()
468 if( rCC.isLetterNumeric( rTxt, nSttPos )) in FnCptlSttWrd()
470 for( ; nSttPos < nEndPos; --nEndPos ) in FnCptlSttWrd()
475 if( nSttPos+2 < nEndPos && in FnCptlSttWrd()
476 IsUpperLetter( rCC.getCharacterType( rTxt, nSttPos )) && in FnCptlSttWrd()
477 IsUpperLetter( rCC.getCharacterType( rTxt, ++nSttPos )) && in FnCptlSttWrd()
479 IsLowerLetter( rCC.getCharacterType( rTxt, nSttPos +1 )) && in FnCptlSttWrd()
481 0x1 != rTxt.GetChar( nSttPos ) && 0x2 != rTxt.GetChar( nSttPos )) in FnCptlSttWrd()
484 String sWord( rTxt.Copy( nSttPos - 1, nEndPos - nSttPos + 1 )); in FnCptlSttWrd()
487 sal_Unicode cSave = rTxt.GetChar( nSttPos ); in FnCptlSttWrd()
490 if( sChar.GetChar(0) != cSave && rDoc.ReplaceRange( nSttPos, 1, sChar )) in FnCptlSttWrd()
493 rDoc.SaveCpltSttWord( CptlSttWrd, nSttPos, sWord, cSave ); in FnCptlSttWrd()
504 xub_StrLen nSttPos, xub_StrLen nEndPos, in FnChgOrdinalNumber() argument
513 for( ; nSttPos < nEndPos; ++nSttPos ) in FnChgOrdinalNumber()
514 if( !lcl_IsInAsciiArr( sImplSttSkipChars, rTxt.GetChar( nSttPos ) )) in FnChgOrdinalNumber()
516 for( ; nSttPos < nEndPos; --nEndPos ) in FnChgOrdinalNumber()
520 if( 2 < nEndPos - nSttPos && in FnChgOrdinalNumber()
541 ( 3 < nEndPos - nSttPos && in FnChgOrdinalNumber()
548 for( xub_StrLen n = nEndPos - 3; nSttPos < n; ) in FnChgOrdinalNumber()
572 xub_StrLen nSttPos, xub_StrLen nEndPos, in FnChgToEnEmDash() argument
582 if( cEnDash && 1 < nSttPos && 1 <= nEndPos - nSttPos ) in FnChgToEnEmDash()
584 sal_Unicode cCh = rTxt.GetChar( nSttPos ); in FnChgToEnEmDash()
587 if( ' ' == rTxt.GetChar( nSttPos-1 ) && in FnChgToEnEmDash()
588 '-' == rTxt.GetChar( nSttPos+1 )) in FnChgToEnEmDash()
591 for( n = nSttPos+2; n < nEndPos && lcl_IsInAsciiArr( in FnChgToEnEmDash()
599 for( n = nSttPos-1; n && lcl_IsInAsciiArr( in FnChgToEnEmDash()
606 rDoc.Delete( nSttPos, nSttPos + 2 ); in FnChgToEnEmDash()
607 rDoc.Insert( nSttPos, bAlwaysUseEmDash ? cEmDash : cEnDash ); in FnChgToEnEmDash()
613 else if( 3 < nSttPos && in FnChgToEnEmDash()
614 ' ' == rTxt.GetChar( nSttPos-1 ) && in FnChgToEnEmDash()
615 '-' == rTxt.GetChar( nSttPos-2 )) in FnChgToEnEmDash()
617 xub_StrLen n, nLen = 1, nTmpPos = nSttPos - 2; in FnChgToEnEmDash()
626 for( n = nSttPos; n < nEndPos && lcl_IsInAsciiArr( in FnChgToEnEmDash()
653 if( ((cEmDash && !bEnDash) || (cEnDash && bEnDash)) && 4 <= nEndPos - nSttPos ) in FnChgToEnEmDash()
655 String sTmp( rTxt.Copy( nSttPos, nEndPos - nSttPos ) ); in FnChgToEnEmDash()
664 nSttPos = nSttPos + nFndPos; in FnChgToEnEmDash()
665 rDoc.Delete( nSttPos, nSttPos + 2 ); in FnChgToEnEmDash()
666 rDoc.Insert( nSttPos, (bEnDash ? cEnDash : cEmDash) ); in FnChgToEnEmDash()
752 xub_StrLen nSttPos, xub_StrLen nEndPos, in FnSetINetAttr() argument
755 String sURL( URIHelper::FindFirstURLInText( rTxt, nSttPos, nEndPos, in FnSetINetAttr()
759 rDoc.SetINetAttr( nSttPos, nEndPos, sURL ); in FnSetINetAttr()
835 xub_StrLen nSttPos, xub_StrLen nEndPos, in FnCptlSttSntnc() argument
839 if( !rTxt.Len() || nEndPos <= nSttPos ) in FnCptlSttSntnc()
1099 nSttPos = sal::static_int_cast< xub_StrLen >( pWordStt - rTxt.GetBuffer() ); in FnCptlSttSntnc()
1102 sal_Bool bRet = sChar.GetChar(0) != cSave && rDoc.ReplaceRange( nSttPos, 1, sChar ); in FnCptlSttSntnc()
1106 rDoc.SaveCpltSttWord( CptlSttSntnc, nSttPos, sWord, cSave ); in FnCptlSttSntnc()