Kaydet (Commit) 7fff7c6a authored tarafından Caolán McNamara's avatar Caolán McNamara

unfold this god-awful mess, logic unchanged

Change-Id: Ib76617e3c500268dfe423b9947100f6ce7f0eaec
üst e2aa5ab2
...@@ -832,16 +832,24 @@ sal_Bool SvxAutoCorrect::FnCptlSttSntnc( SvxAutoCorrDoc& rDoc, ...@@ -832,16 +832,24 @@ sal_Bool SvxAutoCorrect::FnCptlSttSntnc( SvxAutoCorrDoc& rDoc,
} }
} while( 0 == ( bAtStart = (pStart == pStr)) ); } while( 0 == ( bAtStart = (pStart == pStr)) );
if( !pWordStt || if (!pWordStt)
rCC.isDigit( return sal_False; // no character to be replaced
aText, sal::static_int_cast< xub_StrLen >( pStr - pStart ) ) ||
IsUpperLetter(
if (rCC.isDigit( aText, sal::static_int_cast< xub_StrLen >( pStr - pStart ) ))
return sal_False; // already ok
if (IsUpperLetter(
rCC.getCharacterType( rCC.getCharacterType(
aText, aText,
sal::static_int_cast< xub_StrLen >( pWordStt - pStart ) ) ) || sal::static_int_cast< xub_StrLen >( pWordStt - pStart ) ) ) )
INetURLObject::CompareProtocolScheme(rTxt.copy(pWordStt - pStart, pDelim - pWordStt + 1)) != INET_PROT_NOT_VALID || return sal_False; // already ok
0x1 == *pWordStt || 0x2 == *pWordStt )
return sal_False; // no character to be replaced, or already ok if (INetURLObject::CompareProtocolScheme(rTxt.copy(pWordStt - pStart, pDelim - pWordStt + 1)) != INET_PROT_NOT_VALID)
return sal_False; // already ok
if (0x1 == *pWordStt || 0x2 == *pWordStt)
return sal_False; // already ok
if( *pDelim && 2 >= pDelim - pWordStt && if( *pDelim && 2 >= pDelim - pWordStt &&
lcl_IsInAsciiArr( ".-)>", *pDelim ) ) lcl_IsInAsciiArr( ".-)>", *pDelim ) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment