Lines Matching refs:rTxt
139 bool lcl_IsUnsupportedUnicodeChar( CharClass& rCC, const String& rTxt, in lcl_IsUnsupportedUnicodeChar() argument
147 nCharType = rCC.getCharacterType( rTxt, nStt ); in lcl_IsUnsupportedUnicodeChar()
148 nChType = rCC.getType( rTxt, nStt ); in lcl_IsUnsupportedUnicodeChar()
150 short nScript = rCC.getScript( rTxt, nStt ); in lcl_IsUnsupportedUnicodeChar()
174 sal_Bool lcl_IsSymbolChar( CharClass& rCC, const String& rTxt, in lcl_IsSymbolChar() argument
182 nCharType = rCC.getCharacterType( rTxt, nStt ); in lcl_IsSymbolChar()
183 nChType = rCC.getType( rTxt, nStt ); in lcl_IsSymbolChar()
186 rCC.getType( rTxt, nStt )) in lcl_IsSymbolChar()
458 sal_Bool SvxAutoCorrect::FnCptlSttWrd( SvxAutoCorrDoc& rDoc, const String& rTxt, in FnCptlSttWrd() argument
468 if( rCC.isLetterNumeric( rTxt, nSttPos )) in FnCptlSttWrd()
471 if( rCC.isLetterNumeric( rTxt, nEndPos - 1 )) 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()
503 SvxAutoCorrDoc& rDoc, const String& rTxt, in FnChgOrdinalNumber() argument
514 if( !lcl_IsInAsciiArr( sImplSttSkipChars, rTxt.GetChar( nSttPos ) )) in FnChgOrdinalNumber()
517 if( !lcl_IsInAsciiArr( sImplEndSkipChars, rTxt.GetChar( nEndPos - 1 ) )) in FnChgOrdinalNumber()
521 rCC.isDigit( rTxt, nEndPos - 3 ) ) in FnChgOrdinalNumber()
533 sal_Unicode c = rTxt.GetChar( nEndPos - 3 ); in FnChgOrdinalNumber()
538 rTxt.GetChar( nEndPos - 2 ) && in FnChgOrdinalNumber()
540 rTxt.GetChar( nEndPos - 1 )) || in FnChgOrdinalNumber()
542 ( ((sal_Unicode)*(sAll+0)) == rTxt.GetChar( nEndPos - 2 ) && in FnChgOrdinalNumber()
543 ((sal_Unicode)*(sAll+1)) == rTxt.GetChar( nEndPos - 1 ))); in FnChgOrdinalNumber()
549 if( !rCC.isDigit( rTxt, --n ) ) in FnChgOrdinalNumber()
551 bChg = !rCC.isLetter( rTxt, n ); in FnChgOrdinalNumber()
571 SvxAutoCorrDoc& rDoc, const String& rTxt, in FnChgToEnEmDash() argument
584 sal_Unicode cCh = rTxt.GetChar( nSttPos ); in FnChgToEnEmDash()
587 if( ' ' == rTxt.GetChar( nSttPos-1 ) && in FnChgToEnEmDash()
588 '-' == rTxt.GetChar( nSttPos+1 )) in FnChgToEnEmDash()
592 sImplSttSkipChars,(cCh = rTxt.GetChar( n ))); in FnChgToEnEmDash()
600 sImplEndSkipChars,(cCh = rTxt.GetChar( --n ))); ) in FnChgToEnEmDash()
614 ' ' == rTxt.GetChar( nSttPos-1 ) && in FnChgToEnEmDash()
615 '-' == rTxt.GetChar( nSttPos-2 )) in FnChgToEnEmDash()
618 if( '-' == ( cCh = rTxt.GetChar( nTmpPos-1 )) ) in FnChgToEnEmDash()
622 cCh = rTxt.GetChar( nTmpPos-1 ); in FnChgToEnEmDash()
627 sImplSttSkipChars,(cCh = rTxt.GetChar( n ))); in FnChgToEnEmDash()
636 sImplEndSkipChars,(cCh = rTxt.GetChar( --n ))); ) in FnChgToEnEmDash()
655 String sTmp( rTxt.Copy( nSttPos, nEndPos - nSttPos ) ); in FnChgToEnEmDash()
660 lcl_IsInAsciiArr( sImplEndSkipChars, rTxt.GetChar( nFndPos - 1 ) )) && in FnChgToEnEmDash()
662 lcl_IsInAsciiArr( sImplSttSkipChars, rTxt.GetChar( nFndPos + 2 ) ))) in FnChgToEnEmDash()
674 SvxAutoCorrDoc& rDoc, const String& rTxt, in FnAddNonBrkSpace() argument
691 sal_Unicode cChar = rTxt.GetChar( nEndPos ); in FnAddNonBrkSpace()
698 while( nSttWdPos && !IsWordDelim( rTxt.GetChar( --nSttWdPos ))) in FnAddNonBrkSpace()
702 xub_StrLen nStrPos = rTxt.Search( String::CreateFromAscii( "://" ), nSttWdPos + 1 ); in FnAddNonBrkSpace()
706 sal_Unicode cPrevChar = rTxt.GetChar( nEndPos - 1 ); in FnAddNonBrkSpace()
715 cPrevChar = rTxt.GetChar( nPos ); in FnAddNonBrkSpace()
735 else if ( cChar == '/' && nEndPos > 1 && rTxt.Len() > (nEndPos - 1) ) in FnAddNonBrkSpace()
738 sal_Unicode cPrevChar = rTxt.GetChar( nEndPos - 1 ); in FnAddNonBrkSpace()
739 sal_Unicode cMaybeSpaceChar = rTxt.GetChar( nEndPos - 2 ); in FnAddNonBrkSpace()
751 sal_Bool SvxAutoCorrect::FnSetINetAttr( SvxAutoCorrDoc& rDoc, const String& rTxt, in FnSetINetAttr() argument
755 String sURL( URIHelper::FindFirstURLInText( rTxt, nSttPos, nEndPos, in FnSetINetAttr()
764 sal_Bool SvxAutoCorrect::FnChgWeightUnderl( SvxAutoCorrDoc& rDoc, const String& rTxt, in FnChgWeightUnderl() argument
772 sal_Unicode c, cInsChar = rTxt.GetChar( nEndPos ); // unterstreichen oder fett in FnChgWeightUnderl()
773 if( ++nEndPos != rTxt.Len() && in FnChgWeightUnderl()
774 !IsWordDelim( rTxt.GetChar( nEndPos ) ) ) in FnChgWeightUnderl()
785 switch( c = rTxt.GetChar( --nPos ) ) in FnChgWeightUnderl()
792 IsWordDelim( rTxt.GetChar( nPos-1 ))) && in FnChgWeightUnderl()
793 !IsWordDelim( rTxt.GetChar( nPos+1 ))) in FnChgWeightUnderl()
803 bAlphaNum = rCC.isLetterNumeric( rTxt, nPos ); in FnChgWeightUnderl()
834 const String& rTxt, sal_Bool bNormalPos, in FnCptlSttSntnc() argument
839 if( !rTxt.Len() || nEndPos <= nSttPos ) in FnCptlSttSntnc()
843 String aText( rTxt ); in FnCptlSttSntnc()
1099 nSttPos = sal::static_int_cast< xub_StrLen >( pWordStt - rTxt.GetBuffer() ); in FnCptlSttSntnc()
1221 sal_uLong SvxAutoCorrect::AutoCorrect( SvxAutoCorrDoc& rDoc, const String& rTxt, in AutoCorrect() argument
1235 ' ' == rTxt.GetChar( nInsPos - 1 ) ) in AutoCorrect()
1249 IsWordDelim( ( cPrev = rTxt.GetChar( nInsPos-1 ))) || in AutoCorrect()
1270 … FnAddNonBrkSpace( rDoc, rTxt, 0, nInsPos, rDoc.GetLanguage( nInsPos, sal_False ) ) ) in AutoCorrect()
1277 if ( nInsPos != 0 && NeedsHardspaceAutocorr( rTxt.GetChar( nInsPos - 1 ) ) && in AutoCorrect()
1285 const sal_Unicode cTmpChar = rTxt.GetChar( nPos ); in AutoCorrect()
1307 if( IsWordDelim( rTxt.GetChar( nPos ))) in AutoCorrect()
1314 FnChgWeightUnderl( rDoc, rTxt, 0, nPos+1 ) ) in AutoCorrect()
1319 while( nPos && !IsWordDelim( rTxt.GetChar( --nPos ))) in AutoCorrect()
1325 if( !nPos && !IsWordDelim( rTxt.GetChar( 0 ))) in AutoCorrect()
1334 if( lcl_IsSymbolChar( rCC, rTxt, nCapLttrPos, nInsPos )) in AutoCorrect()
1352 lcl_IsInAsciiArr( sImplSttSkipChars, rTxt.GetChar( nCapLttrPos1 ) ) in AutoCorrect()
1356 lcl_IsInAsciiArr( sImplEndSkipChars, rTxt.GetChar( nInsPos1-1 ) ) in AutoCorrect()
1386 FnChgToEnEmDash( rDoc, rTxt, nCapLttrPos, nEnd, eLang ) ) in AutoCorrect()
1394 FnChgOrdinalNumber( rDoc, rTxt, nCapLttrPos, nInsPos, eLang ) ) || in AutoCorrect()
1397 FnSetINetAttr( rDoc, rTxt, nCapLttrPos, nInsPos, eLang ) ) ) in AutoCorrect()
1402 bool bUnsupported = lcl_IsUnsupportedUnicodeChar( rCC, rTxt, nCapLttrPos, nInsPos ); in AutoCorrect()
1406 FnCptlSttSntnc( rDoc, rTxt, sal_True, nCapLttrPos, nInsPos, eLang ) ) in AutoCorrect()
1412 FnCptlSttWrd( rDoc, rTxt, nCapLttrPos, nInsPos, eLang ) ) in AutoCorrect()
1416 FnChgToEnEmDash( rDoc, rTxt, nCapLttrPos, nInsPos, eLang ) ) in AutoCorrect()
1592 const String& rTxt, xub_StrLen nPos, in GetPrevAutoCorrWord() argument
1601 if( ( nPos < rTxt.Len() && in GetPrevAutoCorrWord()
1602 !IsWordDelim( rTxt.GetChar( nPos ))) || in GetPrevAutoCorrWord()
1603 IsWordDelim( rTxt.GetChar( --nPos ))) in GetPrevAutoCorrWord()
1606 while( nPos && !IsWordDelim( rTxt.GetChar( --nPos ))) in GetPrevAutoCorrWord()
1612 if( !nPos && !IsWordDelim( rTxt.GetChar( 0 ))) in GetPrevAutoCorrWord()
1615 while( lcl_IsInAsciiArr( sImplSttSkipChars, rTxt.GetChar( nCapLttrPos )) ) in GetPrevAutoCorrWord()
1631 if( lcl_IsSymbolChar( rCC, rTxt, nCapLttrPos, nEnde )) in GetPrevAutoCorrWord()
1634 rWord = rTxt.Copy( nCapLttrPos, nEnde - nCapLttrPos ); in GetPrevAutoCorrWord()
1768 SvxAutoCorrectLanguageListsPtr pList, const String& rTxt, in lcl_SearchWordsInList() argument
1782 IsWordDelim( rTxt.GetChar(nCalcStt - 1 ) ))) ) in lcl_SearchWordsInList()
1784 String sWord( rTxt.GetBuffer() + nCalcStt, rChk.Len() ); in lcl_SearchWordsInList()
1799 const String& rTxt, xub_StrLen& rStt, xub_StrLen nEndPos, in SearchWordsInList() argument
1815 pRet = lcl_SearchWordsInList( pList, rTxt, rStt, nEndPos, rDoc ); in SearchWordsInList()
1837 pRet = lcl_SearchWordsInList( pList, rTxt, rStt, nEndPos, rDoc); in SearchWordsInList()
1849 pRet = lcl_SearchWordsInList( pList, rTxt, rStt, nEndPos, rDoc); in SearchWordsInList()