diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-09-13 12:45:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-13 15:24:45 +0100 |
commit | 8b3cbc71151cf91a97e4c4340430876c8d02d030 (patch) | |
tree | bb502a9202c87b10883567bacf2fe3db3a84006f /editeng | |
parent | 0a5f063797d39913536a690cda9426ba20300b73 (diff) |
Related: fdo#38838 remove UniString::ToLowerAscii
Change-Id: Iecb8104ea2891d5229e3ecace54e12287d9b0ac6
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 71f70f40486c..eee5bfe84759 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -1782,14 +1782,14 @@ sal_Bool SvxAutoCorrect::FindInWrdSttExceptList( LanguageType eLang, return sal_False; } -static sal_Bool lcl_FindAbbreviation( const SvStringsISortDtor* pList, const String& sWord) +static sal_Bool lcl_FindAbbreviation(const SvStringsISortDtor* pList, const OUString& sWord) { OUString sAbk('~'); SvStringsISortDtor::const_iterator it = pList->find( sAbk ); sal_uInt16 nPos = it - pList->begin(); if( nPos < pList->size() ) { - String sLowerWord( sWord ); sLowerWord.ToLowerAscii(); + OUString sLowerWord(sWord.toAsciiLowerCase()); OUString pAbk; for( sal_uInt16 n = nPos; n < pList->size() && @@ -1797,15 +1797,15 @@ static sal_Bool lcl_FindAbbreviation( const SvStringsISortDtor* pList, const Str ++n ) { // ~ and ~. are not allowed! - if( 2 < pAbk.getLength() && pAbk.getLength() - 1 <= sWord.Len() ) + if( 2 < pAbk.getLength() && pAbk.getLength() - 1 <= sWord.getLength() ) { - String sLowerAbk( pAbk ); sLowerAbk.ToLowerAscii(); - for( xub_StrLen i = sLowerAbk.Len(), ii = sLowerWord.Len(); i; ) + OUString sLowerAbk(pAbk.toAsciiLowerCase()); + for (sal_Int32 i = sLowerAbk.getLength(), ii = sLowerWord.getLength(); i;) { if( !--i ) // agrees return sal_True; - if( sLowerAbk.GetChar( i ) != sLowerWord.GetChar( --ii )) + if( sLowerAbk[i] != sLowerWord[--ii]) break; } } |