Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - elixir@ubuntu:~/lo$ git diff --color
 - diff --git a/basctl/source/basicide/bastype3.cxx b/basctl/source/basicide/bastype3.cxx
 - index c734642..1a31330 100644
 - --- a/basctl/source/basicide/bastype3.cxx
 - +++ b/basctl/source/basicide/bastype3.cxx
 - @@ -221,7 +221,7 @@ SbxVariable* TreeListBox::FindVariable( SvTreeListEntry* pEntry )
 - // extract the module name from the string like "Sheet1 (Example1)"
 - if( bDocumentObjects )
 - {
 - - sal_uInt16 nIndex = 0;
 - + sal_Int32 nIndex = 0;
 - aName = aName.GetToken( 0, ' ', nIndex );
 - }
 - pVar = static_cast<StarBASIC*>(pVar)->FindModule( aName );
 - diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx
 - index cb843d6..f172160 100644
 - --- a/basctl/source/basicide/macrodlg.cxx
 - +++ b/basctl/source/basicide/macrodlg.cxx
 - @@ -355,7 +355,7 @@ SbMethod* MacroChooser::CreateMacro()
 - // extract the module name from the string like "Sheet1 (Example1)"
 - if( aDesc.GetLibSubName() == IDE_RESSTR(RID_STR_DOCUMENT_OBJECTS) )
 - {
 - - sal_uInt16 nIndex = 0;
 - + sal_Int32 nIndex = 0;
 - aModName = aModName.GetToken( 0, ' ', nIndex );
 - }
 - pModule = pBasic->FindModule( aModName );
 - @@ -663,7 +663,7 @@ IMPL_LINK( MacroChooser, ButtonHdl, Button *, pButton )
 - // extract the module name from the string like "Sheet1 (Example1)"
 - if( aDesc.GetLibSubName() == IDE_RESSTR(RID_STR_DOCUMENT_OBJECTS) )
 - {
 - - sal_uInt16 nIndex = 0;
 - + sal_Int32 nIndex = 0;
 - aMod = aMod.GetToken( 0, ' ', nIndex );
 - }
 - String aSub( aDesc.GetMethodName() );
 - diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx
 - index 7bfbbf5..cc3bcc0 100644
 - [4]+ Stopped git diff --color
 - elixir@ubuntu:~/lo$ git diff
 - diff --git a/basctl/source/basicide/bastype3.cxx b/basctl/source/basicide/bastype3.cxx
 - index c734642..1a31330 100644
 - --- a/basctl/source/basicide/bastype3.cxx
 - +++ b/basctl/source/basicide/bastype3.cxx
 - @@ -221,7 +221,7 @@ SbxVariable* TreeListBox::FindVariable( SvTreeListEntry* pEntry )
 - // extract the module name from the string like "Sheet1 (Example1)"
 - if( bDocumentObjects )
 - {
 - - sal_uInt16 nIndex = 0;
 - + sal_Int32 nIndex = 0;
 - aName = aName.GetToken( 0, ' ', nIndex );
 - }
 - pVar = static_cast<StarBASIC*>(pVar)->FindModule( aName );
 - diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx
 - index cb843d6..f172160 100644
 - --- a/basctl/source/basicide/macrodlg.cxx
 - +++ b/basctl/source/basicide/macrodlg.cxx
 - @@ -355,7 +355,7 @@ SbMethod* MacroChooser::CreateMacro()
 - // extract the module name from the string like "Sheet1 (Example1)"
 - if( aDesc.GetLibSubName() == IDE_RESSTR(RID_STR_DOCUMENT_OBJECTS) )
 - {
 - - sal_uInt16 nIndex = 0;
 - + sal_Int32 nIndex = 0;
 - aModName = aModName.GetToken( 0, ' ', nIndex );
 - }
 - pModule = pBasic->FindModule( aModName );
 - @@ -663,7 +663,7 @@ IMPL_LINK( MacroChooser, ButtonHdl, Button *, pButton )
 - // extract the module name from the string like "Sheet1 (Example1)"
 - if( aDesc.GetLibSubName() == IDE_RESSTR(RID_STR_DOCUMENT_OBJECTS) )
 - {
 - - sal_uInt16 nIndex = 0;
 - + sal_Int32 nIndex = 0;
 - aMod = aMod.GetToken( 0, ' ', nIndex );
 - }
 - String aSub( aDesc.GetMethodName() );
 - diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx
 - index 7bfbbf5..cc3bcc0 100644
 - [5]+ Stopped git diff
 - elixir@ubuntu:~/lo$ git diff --color
 - diff --git a/basctl/source/basicide/bastype3.cxx b/basctl/source/basicide/bastype3.cxx
 - index c734642..1a31330 100644
 - --- a/basctl/source/basicide/bastype3.cxx
 - +++ b/basctl/source/basicide/bastype3.cxx
 - @@ -221,7 +221,7 @@ SbxVariable* TreeListBox::FindVariable( SvTreeListEntry* pEntry )
 - // extract the module name from the string like "Sheet1 (Example1)"
 - if( bDocumentObjects )
 - {
 - - sal_uInt16 nIndex = 0;
 - + sal_Int32 nIndex = 0;
 - aName = aName.GetToken( 0, ' ', nIndex );
 - }
 - pVar = static_cast<StarBASIC*>(pVar)->FindModule( aName );
 - diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx
 - index cb843d6..f172160 100644
 - --- a/basctl/source/basicide/macrodlg.cxx
 - +++ b/basctl/source/basicide/macrodlg.cxx
 - @@ -355,7 +355,7 @@ SbMethod* MacroChooser::CreateMacro()
 - // extract the module name from the string like "Sheet1 (Example1)"
 - if( aDesc.GetLibSubName() == IDE_RESSTR(RID_STR_DOCUMENT_OBJECTS) )
 - {
 - - sal_uInt16 nIndex = 0;
 - + sal_Int32 nIndex = 0;
 - aModName = aModName.GetToken( 0, ' ', nIndex );
 - }
 - pModule = pBasic->FindModule( aModName );
 - @@ -663,7 +663,7 @@ IMPL_LINK( MacroChooser, ButtonHdl, Button *, pButton )
 - // extract the module name from the string like "Sheet1 (Example1)"
 - if( aDesc.GetLibSubName() == IDE_RESSTR(RID_STR_DOCUMENT_OBJECTS) )
 - {
 - - sal_uInt16 nIndex = 0;
 - + sal_Int32 nIndex = 0;
 - aMod = aMod.GetToken( 0, ' ', nIndex );
 - }
 - String aSub( aDesc.GetMethodName() );
 - diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx
 - index 7bfbbf5..cc3bcc0 100644
 - --- a/cui/source/dialogs/scriptdlg.cxx
 - +++ b/cui/source/dialogs/scriptdlg.cxx
 - @@ -1232,8 +1232,8 @@ void SvxScriptOrgDialog::RestorePreviousSelection()
 - if( aStoredEntry.Len() <= 0 )
 - return;
 - SvTreeListEntry* pEntry = 0;
 - - sal_uInt16 nIndex = 0;
 - - while ( nIndex != STRING_NOTFOUND )
 - + sal_Int32 nIndex = 0;
 - + while ( nIndex != -1 )
 - {
 - String aTmp( aStoredEntry.GetToken( 0, ';', nIndex ) );
 - SvTreeListEntry* pTmpEntry = m_pScriptsBox->FirstChild( pEntry );
 - diff --git a/filter/source/msfilter/util.cxx b/filter/source/msfilter/util.cxx
 - index db8aa6c..d3144fc 100644
 - --- a/filter/source/msfilter/util.cxx
 - +++ b/filter/source/msfilter/util.cxx
 - @@ -163,7 +163,7 @@ sal_Unicode bestFitOpenSymbolToMSFont(sal_Unicode cChar,
 - let words own font substitution kick in
 - */
 - rChrSet = RTL_TEXTENCODING_UNICODE;
 - - xub_StrLen nIndex = 0;
 - + sal_Int32 nIndex = 0;
 - rFontName = ::GetNextFontToken(rFontName, nIndex);
 - }
 - else
 - diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
 - index 74bf784..592005c 100644
 - --- a/fpicker/source/office/iodlg.cxx
 - +++ b/fpicker/source/office/iodlg.cxx
 - @@ -1467,8 +1467,8 @@ SvtFileDialogFilter_Impl* SvtFileDialog::FindFilter_Impl
 - if ( _bMultiExt )
 - {
 - - sal_uInt16 nIdx = 0;
 - - while ( !pFoundFilter && nIdx != STRING_NOTFOUND )
 - + sal_Int32 nIdx = 0;
 - + while ( !pFoundFilter && nIdx != -1 )
 - {
 - aSingleType = rType.GetToken( 0, FILEDIALOG_DEF_EXTSEP, nIdx );
 - #ifdef UNX
 - @@ -3305,7 +3305,8 @@ void SvtFileDialog::appendDefaultExtension(String& _rFileName,
 - if ( ! aType.EqualsAscii(FILEDIALOG_FILTER_ALL) )
 - {
 - sal_uInt16 nWildCard = comphelper::string::getTokenCount(aType, FILEDIALOG_DEF_EXTSEP);
 - - sal_uInt16 nIndex, nPos = 0;
 - + sal_uInt16 nIndex;
 - + sal_Int32 nPos = 0;
 - for ( nIndex = 0; nIndex < nWildCard; nIndex++ )
 - {
 - diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx
 - index 6d3869b..7ad8114 100644
 - --- a/sfx2/source/appl/childwin.cxx
 - +++ b/sfx2/source/appl/childwin.cxx
 - @@ -104,7 +104,7 @@ sal_Bool GetPosSizeFromString( const String& rStr, Point& rPos, Size& rSize )
 - if ( comphelper::string::getTokenCount(rStr, '/') != 4 )
 - return sal_False;
 - - xub_StrLen nIdx = 0;
 - + sal_Int32 nIdx = 0;
 - rPos.X() = rStr.GetToken(0, '/', nIdx).ToInt32();
 - rPos.Y() = rStr.GetToken(0, '/', nIdx).ToInt32();
 - rSize.Width() = rStr.GetToken(0, '/', nIdx).ToInt32();
 - diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx
 - index 91cf2e7..32d3919 100644
 - --- a/sfx2/source/appl/linkmgr2.cxx
 - +++ b/sfx2/source/appl/linkmgr2.cxx
 - @@ -238,7 +238,7 @@ bool LinkManager::GetDisplayNames( const SvBaseLink * pLink,
 - case OBJECT_CLIENT_GRF:
 - case OBJECT_CLIENT_OLE:
 - {
 - - sal_uInt16 nPos = 0;
 - + sal_Int32 nPos = 0;
 - String sFile( sLNm.GetToken( 0, ::sfx2::cTokenSeperator, nPos ) );
 - String sRange( sLNm.GetToken( 0, ::sfx2::cTokenSeperator, nPos ) );
 - @@ -262,7 +262,7 @@ bool LinkManager::GetDisplayNames( const SvBaseLink * pLink,
 - break;
 - case OBJECT_CLIENT_DDE:
 - {
 - - sal_uInt16 nTmp = 0;
 - + sal_Int32 nTmp = 0;
 - String sCmd( sLNm );
 - String sServer( sCmd.GetToken( 0, cTokenSeperator, nTmp ) );
 - String sTopic( sCmd.GetToken( 0, cTokenSeperator, nTmp ) );
 - diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx
 - index 9cbd3b2..f649c60 100644
 - --- a/sfx2/source/appl/lnkbase2.cxx
 - +++ b/sfx2/source/appl/lnkbase2.cxx
 - @@ -602,7 +602,7 @@ static DdeTopic* FindTopic( const String & rLinkName, sal_uInt16* pItemStt )
 - return 0;
 - String sNm( rLinkName );
 - - sal_uInt16 nTokenPos = 0;
 - + sal_Int32 nTokenPos = 0;
 - rtl::OUString sService( sNm.GetToken( 0, cTokenSeperator, nTokenPos ) );
 - DdeServices& rSvc = DdeService::GetServices();
 - diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
 - index 066de34..8fca1a3 100644
 - --- a/sfx2/source/appl/newhelp.cxx
 - +++ b/sfx2/source/appl/newhelp.cxx
 - @@ -320,7 +320,7 @@ void ContentListBox_Impl::InitRoot()
 - {
 - String aRow( pEntries[i] );
 - String aTitle, aURL;
 - - xub_StrLen nIdx = 0;
 - + sal_Int32 nIdx = 0;
 - aTitle = aRow.GetToken( 0, '\t', nIdx );
 - aURL = aRow.GetToken( 0, '\t', nIdx );
 - sal_Unicode cFolder = aRow.GetToken( 0, '\t', nIdx ).GetChar(0);
 - @@ -364,7 +364,7 @@ void ContentListBox_Impl::RequestingChildren( SvTreeListEntry* pParent )
 - {
 - String aRow( pEntries[i] );
 - String aTitle, aURL;
 - - xub_StrLen nIdx = 0;
 - + sal_Int32 nIdx = 0;
 - aTitle = aRow.GetToken( 0, '\t', nIdx );
 - aURL = aRow.GetToken( 0, '\t', nIdx );
 - sal_Unicode cFolder = aRow.GetToken( 0, '\t', nIdx ).GetChar(0);
 - @@ -1082,7 +1082,7 @@ IMPL_LINK_NOARG(SearchTabPage_Impl, SearchHdl)
 - {
 - String aRow( pFacs[i] );
 - String aTitle, aType;
 - - xub_StrLen nIdx = 0;
 - + sal_Int32 nIdx = 0;
 - aTitle = aRow.GetToken( 0, '\t', nIdx );
 - aType = aRow.GetToken( 0, '\t', nIdx );
 - String* pURL = new String( aRow.GetToken( 0, '\t', nIdx ) );
 - @@ -1601,7 +1601,7 @@ void SfxHelpIndexWindow_Impl::Initialize()
 - {
 - String aRow( pFacs[i] );
 - String aTitle, aType, aURL;
 - - xub_StrLen nIdx = 0;
 - + sal_Int32 nIdx = 0;
 - aTitle = aRow.GetToken( 0, '\t', nIdx );
 - aType = aRow.GetToken( 0, '\t', nIdx );
 - aURL = aRow.GetToken( 0, '\t', nIdx );
 - @@ -2952,7 +2952,7 @@ void SfxHelpWindow_Impl::LoadConfig()
 - {
 - aUserData = String( aTemp );
 - DBG_ASSERT( comphelper::string::getTokenCount(aUserData, ';') == 6, "invalid user data" );
 - - sal_uInt16 nIdx = 0;
 - + sal_Int32 nIdx = 0;
 - nIndexSize = aUserData.GetToken( 0, ';', nIdx ).ToInt32();
 - nTextSize = aUserData.GetToken( 0, ';', nIdx ).ToInt32();
 - sal_Int32 nWidth = aUserData.GetToken( 0, ';', nIdx ).ToInt32();
 - diff --git a/sfx2/source/dialog/srchdlg.cxx b/sfx2/source/dialog/srchdlg.cxx
 - index 7d7c45a..c5745f0 100644
 - --- a/sfx2/source/dialog/srchdlg.cxx
 - +++ b/sfx2/source/dialog/srchdlg.cxx
 - @@ -89,7 +89,7 @@ void SearchDialog::LoadConfig()
 - {
 - String sUserData( aTemp );
 - DBG_ASSERT( comphelper::string::getTokenCount(sUserData, ';') == 5, "invalid config data" );
 - - xub_StrLen nIdx = 0;
 - + sal_Int32 nIdx = 0;
 - String sSearchText = sUserData.GetToken( 0, ';', nIdx );
 - m_aWholeWordsBox.Check( sUserData.GetToken( 0, ';', nIdx ).ToInt32() == 1 );
 - m_aMatchCaseBox.Check( sUserData.GetToken( 0, ';', nIdx ).ToInt32() == 1 );
 - @@ -97,7 +97,7 @@ void SearchDialog::LoadConfig()
 - m_aBackwardsBox.Check( sUserData.GetToken( 0, ';', nIdx ).ToInt32() == 1 );
 - nIdx = 0;
 - - while ( nIdx != STRING_NOTFOUND )
 - + while ( nIdx != -1 )
 - m_aSearchEdit.InsertEntry( sSearchText.GetToken( 0, '\t', nIdx ) );
 - m_aSearchEdit.SelectEntryPos(0);
 - }
 - diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx
 - index dfb0a10..5b021fb 100644
 - --- a/svtools/source/contnr/fileview.cxx
 - +++ b/svtools/source/contnr/fileview.cxx
 - @@ -1599,7 +1599,7 @@ void SvtFileView::SetConfigString( const String& rCfgStr )
 - HeaderBar* pBar = mpImp->mpView->GetHeaderBar();
 - DBG_ASSERT( pBar, "invalid headerbar" );
 - - sal_uInt16 nIdx = 0;
 - + sal_Int32 nIdx = 0;
 - mpImp->mnSortColumn = (sal_uInt16)rCfgStr.GetToken( 0, ';', nIdx ).ToInt32();
 - sal_Bool bUp = (sal_Bool)(sal_uInt16)rCfgStr.GetToken( 0, ';', nIdx ).ToInt32();
 - HeaderBarItemBits nBits = pBar->GetItemBits( mpImp->mnSortColumn );
 - @@ -1616,7 +1616,7 @@ void SvtFileView::SetConfigString( const String& rCfgStr )
 - }
 - pBar->SetItemBits( mpImp->mnSortColumn, nBits );
 - - while ( nIdx != STRING_NOTFOUND )
 - + while ( nIdx != -1 )
 - {
 - sal_uInt16 nItemId = (sal_uInt16)rCfgStr.GetToken( 0, ';', nIdx ).ToInt32();
 - pBar->SetItemSize( nItemId, rCfgStr.GetToken( 0, ';', nIdx ).ToInt32() );
 - diff --git a/svtools/source/urlobj/inetimg.cxx b/svtools/source/urlobj/inetimg.cxx
 - index 185e024..263404c 100644
 - --- a/svtools/source/urlobj/inetimg.cxx
 - +++ b/svtools/source/urlobj/inetimg.cxx
 - @@ -64,7 +64,7 @@ sal_Bool INetImage::Read( SvStream& rIStm, sal_uLong nFormat )
 - case SOT_FORMATSTR_ID_INET_IMAGE:
 - {
 - String sINetImg = read_zeroTerminated_uInt8s_ToOUString(rIStm, RTL_TEXTENCODING_UTF8);
 - - xub_StrLen nStart = 0;
 - + sal_Int32 nStart = 0;
 - aImageURL = sINetImg.GetToken( 0, TOKEN_SEPARATOR, nStart );
 - aTargetURL = sINetImg.GetToken( 0, TOKEN_SEPARATOR, nStart );
 - aTargetFrame = sINetImg.GetToken( 0, TOKEN_SEPARATOR, nStart );
 - diff --git a/unotools/inc/unotools/fontdefs.hxx b/unotools/inc/unotools/fontdefs.hxx
 - index df79a0f..72a656e 100644
 - --- a/unotools/inc/unotools/fontdefs.hxx
 - +++ b/unotools/inc/unotools/fontdefs.hxx
 - @@ -84,9 +84,9 @@ public:
 - #define DEFAULTFONT_CTL_HEADING ((sal_uInt16)4003)
 - #define DEFAULTFONT_CTL_DISPLAY ((sal_uInt16)4004)
 - -UNOTOOLS_DLLPUBLIC String GetNextFontToken( const String& rTokenStr, xub_StrLen& rIndex );
 - +UNOTOOLS_DLLPUBLIC OUString GetNextFontToken( const OUString& rTokenStr, sal_Int32& rIndex );
 - -UNOTOOLS_DLLPUBLIC void GetEnglishSearchFontName( String& rName );
 - +UNOTOOLS_DLLPUBLIC void GetEnglishSearchFontName( OUString& rName );
 - #endif
 - diff --git a/unotools/source/misc/fontcvt.cxx b/unotools/source/misc/fontcvt.cxx
 - index a111488..06eeafc 100644
 - --- a/unotools/source/misc/fontcvt.cxx
 - +++ b/unotools/source/misc/fontcvt.cxx
 - @@ -1432,40 +1432,40 @@ static ConvertChar aImplStarSymbolCvt = { NULL, "StarBats", ImplStarSymbolToStar
 - const ConvertChar* ConvertChar::GetRecodeData( const String& rOrgFontName, const String& rMapFontName )
 - {
 - const ConvertChar* pCvt = NULL;
 - - String aOrgName( rOrgFontName );
 - + OUString aOrgName( rOrgFontName );
 - GetEnglishSearchFontName( aOrgName );
 - - String aMapName( rMapFontName );
 - + OUString aMapName( rMapFontName );
 - GetEnglishSearchFontName( aMapName );
 - - if( aMapName.EqualsAscii( "starsymbol" )
 - - || aMapName.EqualsAscii( "opensymbol" ) )
 - + if( aMapName == "starsymbol"
 - + || aMapName == "opensymbol" )
 - {
 - int nEntries = SAL_N_ELEMENTS(aStarSymbolRecodeTable);
 - for( int i = 0; i < nEntries; ++i)
 - {
 - RecodeTable& r = aStarSymbolRecodeTable[i];
 - - if( aOrgName.EqualsAscii( r.pOrgName ) )
 - + if( aOrgName.equalsAscii( r.pOrgName ) )
 - { pCvt = &r.aCvt; break; }
 - }
 - }
 - //It's plausible that it's better to implement this
 - //as an additional encoding alongside the existing
 - //adobe-symbol to unicode conversion in rtl instead
 - - else if( aMapName.EqualsAscii("applesymbol") )
 - + else if( aMapName == "applesymbol" )
 - {
 - int nEntries = SAL_N_ELEMENTS(aAppleSymbolRecodeTable);
 - for( int i = 0; i < nEntries; ++i)
 - {
 - RecodeTable& r = aAppleSymbolRecodeTable[i];
 - - if( aOrgName.EqualsAscii( r.pOrgName ) )
 - + if( aOrgName.equalsAscii( r.pOrgName ) )
 - { pCvt = &r.aCvt; break; }
 - }
 - }
 - - else if( aMapName.EqualsAscii( "starbats" ) )
 - + else if( aMapName == "starbats" )
 - {
 - - if( aOrgName.EqualsAscii( "starsymbol" ) )
 - + if( aOrgName == "starsymbol" )
 - pCvt = &aImplStarSymbolCvt;
 - - else if( aOrgName.EqualsAscii( "opensymbol" ) )
 - + else if( aOrgName == "opensymbol" )
 - pCvt = &aImplStarSymbolCvt;
 - }
 - @@ -1479,7 +1479,7 @@ FontToSubsFontConverter CreateFontToSubsFontConverter(
 - {
 - const ConvertChar* pCvt = NULL;
 - - String aName = rOrgName;
 - + OUString aName = rOrgName;
 - GetEnglishSearchFontName( aName );
 - if ( nFlags & FONTTOSUBSFONT_IMPORT )
 - @@ -1490,15 +1490,15 @@ FontToSubsFontConverter CreateFontToSubsFontConverter(
 - for( int i = 0; i < nEntries; ++i )
 - {
 - RecodeTable& r = aStarSymbolRecodeTable[i];
 - - if( aName.EqualsAscii( r.pOrgName ) )
 - + if( aName.equalsAscii( r.pOrgName ) )
 - { pCvt = &r.aCvt; break; }
 - }
 - }
 - else
 - {
 - // TODO: FONTTOSUBSFONT_ONLYOLDSOSYMBOLFONTS
 - - if( aName.EqualsAscii( "starsymbol" ) ) pCvt = &aImplStarSymbolCvt;
 - - else if( aName.EqualsAscii( "opensymbol" ) ) pCvt = &aImplStarSymbolCvt;
 - + if( aName == "starsymbol" ) pCvt = &aImplStarSymbolCvt;
 - + else if( aName == "opensymbol" ) pCvt = &aImplStarSymbolCvt;
 - }
 - return (FontToSubsFontConverter)pCvt;
 - diff --git a/unotools/source/misc/fontdefs.cxx b/unotools/source/misc/fontdefs.cxx
 - index 7785e807..6c4fdb1 100644
 - --- a/unotools/source/misc/fontdefs.cxx
 - +++ b/unotools/source/misc/fontdefs.cxx
 - @@ -20,6 +20,7 @@
 - #include <unotools/fontdefs.hxx>
 - #include <unotools/fontcfg.hxx>
 - #include <boost/unordered_map.hpp>
 - +#include <rtl/ustrbuf.hxx>
 - struct ImplLocalizedFontName
 - {
 - @@ -321,42 +322,42 @@ static ImplLocalizedFontName aImplLocalizedNamesList[] =
 - // -----------------------------------------------------------------------
 - -void GetEnglishSearchFontName( String& rName )
 - +void GetEnglishSearchFontName( OUString& rName )
 - {
 - bool bNeedTranslation = false;
 - - xub_StrLen nLen = rName.Len();
 - + sal_Int32 nLen = rName.getLength();
 - // Remove trailing whitespaces
 - - xub_StrLen i = nLen;
 - - while ( i && (rName.GetChar( i-1 ) < 32) )
 - + sal_Int32 i = nLen;
 - + while ( i && (rName[ i-1 ] < 32) )
 - i--;
 - if ( i != nLen )
 - - rName.Erase( i );
 - + rName.copy( 0, i );
 - // Remove Script at the end
 - // Scriptname must be the last part of the fontname and
 - // looks like "fontname (scriptname)". So there can only be a
 - // script name at the and of the fontname, when the last char is ')'
 - - if ( (nLen >= 3) && rName.GetChar( nLen-1 ) == ')' )
 - + if ( (nLen >= 3) && rName[ nLen-1 ] == ')' )
 - {
 - int nOpen = 1;
 - - xub_StrLen nTempLen = nLen-2;
 - + sal_Int32 nTempLen = nLen-2;
 - while ( nTempLen )
 - {
 - - if ( rName.GetChar( nTempLen ) == '(' )
 - + if ( rName[ nTempLen ] == '(' )
 - {
 - nOpen--;
 - if ( !nOpen )
 - {
 - // Remove Space at the end
 - - if ( nTempLen && (rName.GetChar( nTempLen-1 ) == ' ') )
 - + if ( nTempLen && (rName[ nTempLen-1 ] == ' ') )
 - nTempLen--;
 - - rName.Erase( nTempLen );
 - + rName.copy( 0, nTempLen );
 - nLen = nTempLen;
 - break;
 - }
 - }
 - - if ( rName.GetChar( nTempLen ) == ')' )
 - + if ( rName[ nTempLen ] == ')' )
 - nOpen++;
 - nTempLen--;
 - }
 - @@ -367,7 +368,7 @@ void GetEnglishSearchFontName( String& rName )
 - i = 0;
 - while ( i < nLen )
 - {
 - - sal_Unicode c = rName.GetChar( i );
 - + sal_Unicode c = rName[ i ];
 - if ( c > 127 )
 - {
 - // Translate to Lowercase-ASCII
 - @@ -378,8 +379,13 @@ void GetEnglishSearchFontName( String& rName )
 - // Upper to Lower
 - if ( (c >= 'A') && (c <= 'Z') )
 - c += 'a' - 'A';
 - - rName.SetChar( i, c );
 - - }
 - + //rName[ i ] = c ;
 - +
 - + OUStringBuffer aTmpStr( rName.getStr() ) ;
 - + aTmpStr[ i ] = c ;
 - + rName = aTmpStr.makeStringAndClear() ;
 - +
 - + }
 - else
 - {
 - // Only Fontnames with None-Ascii-Characters must be translated
 - @@ -393,12 +399,21 @@ void GetEnglishSearchFontName( String& rName )
 - if ( (c >= 'A') && (c <= 'Z') )
 - {
 - c += 'a' - 'A';
 - - rName.SetChar( i, c );
 - + //rName[ i ] = c ;
 - +
 - + OUStringBuffer aTmpStr( rName.getStr() ) ;
 - + aTmpStr[ i ] = c ;
 - + rName = aTmpStr.makeStringAndClear() ;
 - +
 - }
 - else if( ((c < '0') || (c > '9')) && (c != ';') ) // not 0-9 or semicolon
 - {
 - // Remove white spaces and special characters
 - - rName.Erase( i, 1 );
 - +
 - + OUStringBuffer aTmpStr( rName.getStr() ) ;
 - + aTmpStr.remove(i,1);
 - + rName = aTmpStr.makeStringAndClear() ;
 - +
 - nLen--;
 - continue;
 - }
 - @@ -423,41 +438,41 @@ void GetEnglishSearchFontName( String& rName )
 - FontNameDictionary::const_iterator it = aDictionary.find( rName );
 - if( it != aDictionary.end() )
 - - rName.AssignAscii( it->second );
 - + rName = OUString::createFromAscii ( it->second ) ;
 - }
 - }
 - // -----------------------------------------------------------------------
 - -String GetNextFontToken( const String& rTokenStr, xub_StrLen& rIndex )
 - +OUString GetNextFontToken( const OUString& rTokenStr, sal_Int32& rIndex )
 - {
 - // check for valid start index
 - - int nStringLen = rTokenStr.Len();
 - + int nStringLen = rTokenStr.getLength();
 - if( rIndex >= nStringLen )
 - {
 - - rIndex = STRING_NOTFOUND;
 - - return String();
 - + rIndex = -1;
 - + return OUString();
 - }
 - // find the next token delimiter and return the token substring
 - - const sal_Unicode* pStr = rTokenStr.GetBuffer() + rIndex;
 - - const sal_Unicode* pEnd = rTokenStr.GetBuffer() + nStringLen;
 - + const sal_Unicode* pStr = rTokenStr.getStr() + rIndex;
 - + const sal_Unicode* pEnd = rTokenStr.getStr() + nStringLen;
 - for(; pStr < pEnd; ++pStr )
 - if( (*pStr == ';') || (*pStr == ',') )
 - break;
 - - xub_StrLen nTokenStart = rIndex;
 - - xub_StrLen nTokenLen;
 - + sal_Int32 nTokenStart = rIndex;
 - + sal_Int32 nTokenLen;
 - if( pStr < pEnd )
 - {
 - - rIndex = sal::static_int_cast<xub_StrLen>(pStr - rTokenStr.GetBuffer());
 - + rIndex = sal::static_int_cast<sal_Int32>(pStr - rTokenStr.getStr());
 - nTokenLen = rIndex - nTokenStart;
 - ++rIndex; // skip over token separator
 - }
 - else
 - {
 - // no token delimiter found => handle last token
 - - rIndex = STRING_NOTFOUND;
 - + rIndex = -1;
 - nTokenLen = STRING_LEN;
 - // optimize if the token string consists of just one token
 - @@ -470,17 +485,17 @@ String GetNextFontToken( const String& rTokenStr, xub_StrLen& rIndex )
 - // =======================================================================
 - -static bool ImplIsFontToken( const String& rName, const String& rToken )
 - +static bool ImplIsFontToken( const OUString& rName, const String& rToken )
 - {
 - - String aTempName;
 - - xub_StrLen nIndex = 0;
 - + OUString aTempName;
 - + sal_Int32 nIndex = 0;
 - do
 - {
 - aTempName = GetNextFontToken( rName, nIndex );
 - if ( rToken == aTempName )
 - return true;
 - }
 - - while ( nIndex != STRING_NOTFOUND );
 - + while ( nIndex != -1 );
 - return false;
 - }
 - @@ -506,18 +521,18 @@ void AddTokenFontName( String& rName, const String& rNewToken )
 - // =======================================================================
 - -String GetSubsFontName( const String& rName, sal_uLong nFlags )
 - +String GetSubsFontName( const OUString& rName, sal_uLong nFlags )
 - {
 - String aName;
 - - xub_StrLen nIndex = 0;
 - - String aOrgName = GetNextFontToken( rName, nIndex );
 - + sal_Int32 nIndex = 0;
 - + OUString aOrgName = GetNextFontToken( rName, nIndex );
 - GetEnglishSearchFontName( aOrgName );
 - // #93662# do not try to replace StarSymbol with MS only font
 - if( nFlags == (SUBSFONT_MS|SUBSFONT_ONLYONE)
 - - && ( aOrgName.EqualsAscii( "starsymbol" )
 - - || aOrgName.EqualsAscii( "opensymbol" ) ) )
 - + && ( aOrgName == "starsymbol"
 - + || aOrgName == "opensymbol" ) )
 - return aName;
 - const utl::FontNameAttr* pAttr = utl::FontSubstConfiguration::get().getSubstInfo( aOrgName );
 - diff --git a/vcl/aqua/source/gdi/atsui/salatsuifontutils.cxx b/vcl/aqua/source/gdi/atsui/salatsuifontutils.cxx
 - index 8e2a4bb..93c487e 100644
 - --- a/vcl/aqua/source/gdi/atsui/salatsuifontutils.cxx
 - +++ b/vcl/aqua/source/gdi/atsui/salatsuifontutils.cxx
 - @@ -296,16 +296,16 @@ static bool GetDevFontAttributes( ATSUFontID nFontID, ImplDevFontAttributes& rDF
 - continue;
 - // convert to unicode name
 - - UniString aUtf16Name;
 - + OUString aUtf16Name;
 - if( eEncoding == RTL_TEXTENCODING_UNICODE ) // we are just interested in UTF16 encoded names
 - - aUtf16Name = rtl::OUString( (const sal_Unicode*)&aNameBuffer[0], nNameLength/2 );
 - + aUtf16Name = OUString( (const sal_Unicode*)&aNameBuffer[0], nNameLength/2 );
 - else if( eEncoding == RTL_TEXTENCODING_UCS4 )
 - - aUtf16Name = UniString(); // TODO
 - + aUtf16Name = OUString(); // TODO
 - else // assume the non-unicode encoded names are byte encoded
 - - aUtf16Name = UniString( &aNameBuffer[0], nNameLength, eEncoding );
 - + aUtf16Name = OUString( &aNameBuffer[0], nNameLength, eEncoding );
 - // ignore empty strings
 - - if( aUtf16Name.Len() <= 0 )
 - + if( aUtf16Name.getLength() <= 0 )
 - continue;
 - // handle the name depending on its namecode
 - @@ -313,7 +313,7 @@ static bool GetDevFontAttributes( ATSUFontID nFontID, ImplDevFontAttributes& rDF
 - {
 - case kFontFamilyName:
 - // ignore font names starting with '.'
 - - if( aUtf16Name.GetChar(0) == '.' )
 - + if( aUtf16Name[0] == '.' )
 - nNameValue = 0;
 - else if( rDFA.GetFamilyName().Len() )
 - {
 - diff --git a/vcl/generic/fontmanager/fontsubst.cxx b/vcl/generic/fontmanager/fontsubst.cxx
 - index 73d1d3a..53767ba 100644
 - --- a/vcl/generic/fontmanager/fontsubst.cxx
 - +++ b/vcl/generic/fontmanager/fontsubst.cxx
 - @@ -161,8 +161,8 @@ bool FcPreMatchSubstititution::FindFontSubstitute( FontSelectPattern &rFontSelDa
 - if( rFontSelData.IsSymbolFont() )
 - return false;
 - // StarSymbol is a unicode font, but it still deserves the symbol flag
 - - if( 0 == rFontSelData.maSearchName.CompareIgnoreCaseToAscii( "starsymbol", 10)
 - - || 0 == rFontSelData.maSearchName.CompareIgnoreCaseToAscii( "opensymbol", 10) )
 - + if( 0 == rFontSelData.maSearchName.compareTo( "starsymbol", 10)
 - + || 0 == rFontSelData.maSearchName.compareTo( "opensymbol", 10) )
 - return false;
 - //see fdo#41556 and fdo#47636
 - @@ -188,7 +188,7 @@ bool FcPreMatchSubstititution::FindFontSubstitute( FontSelectPattern &rFontSelDa
 - rtl::OUString aDummy;
 - const FontSelectPattern aOut = GetFcSubstitute( rFontSelData, aDummy );
 - - if( !aOut.maSearchName.Len() )
 - + if( !aOut.maSearchName.getLength() )
 - return false;
 - const bool bHaveSubstitute = !uselessmatch( rFontSelData, aOut );
 - @@ -230,8 +230,8 @@ bool FcGlyphFallbackSubstititution::FindFontSubstitute( FontSelectPattern& rFont
 - if( rFontSelData.IsSymbolFont() )
 - return false;
 - // StarSymbol is a unicode font, but it still deserves the symbol flag
 - - if( 0 == rFontSelData.maSearchName.CompareIgnoreCaseToAscii( "starsymbol", 10)
 - - || 0 == rFontSelData.maSearchName.CompareIgnoreCaseToAscii( "opensymbol", 10) )
 - + if( 0 == rFontSelData.maSearchName.compareTo( "starsymbol", 10)
 - + || 0 == rFontSelData.maSearchName.compareTo( "opensymbol", 10) )
 - return false;
 - const FontSelectPattern aOut = GetFcSubstitute( rFontSelData, rMissingCodes );
 - @@ -239,7 +239,7 @@ bool FcGlyphFallbackSubstititution::FindFontSubstitute( FontSelectPattern& rFont
 - // FC doing it would be preferable because it knows the invariables
 - // e.g. FC knows the FC rule that all Arial gets replaced by LiberationSans
 - // whereas we would have to check for every size or attribute
 - - if( !aOut.maSearchName.Len() )
 - + if( !aOut.maSearchName.getLength() )
 - return false;
 - const bool bHaveSubstitute = !uselessmatch( rFontSelData, aOut );
 - diff --git a/vcl/generic/glyphs/gcach_ftyp.cxx b/vcl/generic/glyphs/gcach_ftyp.cxx
 - index df24b76..aac8088 100644
 - --- a/vcl/generic/glyphs/gcach_ftyp.cxx
 - +++ b/vcl/generic/glyphs/gcach_ftyp.cxx
 - @@ -945,8 +945,8 @@ void ServerFont::FetchFontMetric( ImplFontMetricData& rTo, long& rFactor ) const
 - //Always consider [star]symbol as symbol fonts
 - if (
 - - (rTo.GetFamilyName().EqualsAscii("OpenSymbol")) ||
 - - (rTo.GetFamilyName().EqualsAscii("StarSymbol"))
 - + (rTo.GetFamilyName() == "OpenSymbol" ) ||
 - + (rTo.GetFamilyName() == "StarSymbol" )
 - )
 - {
 - rTo.SetSymbolFlag( true );
 - diff --git a/vcl/generic/glyphs/glyphcache.cxx b/vcl/generic/glyphs/glyphcache.cxx
 - index 79a2d7a..1d1322c 100644
 - --- a/vcl/generic/glyphs/glyphcache.cxx
 - +++ b/vcl/generic/glyphs/glyphcache.cxx
 - @@ -86,7 +86,7 @@ size_t GlyphCache::IFSD_Hash::operator()( const FontSelectPattern& rFontSelData
 - // TODO: is it worth to improve this hash function?
 - sal_IntPtr nFontId = reinterpret_cast<sal_IntPtr>( rFontSelData.mpFontData );
 - #ifdef ENABLE_GRAPHITE
 - - if (rFontSelData.maTargetName.Search(grutils::GrFeatureParser::FEAT_PREFIX)
 - + if (rFontSelData.maTargetName.indexOf(grutils::GrFeatureParser::FEAT_PREFIX)
 - != STRING_NOTFOUND)
 - {
 - rtl::OString aFeatName = rtl::OUStringToOString( rFontSelData.maTargetName, RTL_TEXTENCODING_UTF8 );
 - @@ -138,9 +138,9 @@ bool GlyphCache::IFSD_Equal::operator()( const FontSelectPattern& rA, const Font
 - if (rA.meLanguage != rB.meLanguage)
 - return false;
 - // check for features
 - - if ((rA.maTargetName.Search(grutils::GrFeatureParser::FEAT_PREFIX)
 - + if ((rA.maTargetName.indexOf(grutils::GrFeatureParser::FEAT_PREFIX)
 - != STRING_NOTFOUND ||
 - - rB.maTargetName.Search(grutils::GrFeatureParser::FEAT_PREFIX)
 - + rB.maTargetName.indexOf(grutils::GrFeatureParser::FEAT_PREFIX)
 - != STRING_NOTFOUND) && rA.maTargetName != rB.maTargetName)
 - return false;
 - #endif
 - diff --git a/vcl/inc/outdev.h b/vcl/inc/outdev.h
 - index 20c1d36..0842a01 100644
 - --- a/vcl/inc/outdev.h
 - +++ b/vcl/inc/outdev.h
 - @@ -54,9 +54,9 @@ public:
 - ImplDevFontListData( const String& rSearchName );
 - ~ImplDevFontListData();
 - - const String& GetFamilyName() const { return maName; }
 - + const OUString& GetFamilyName() const { return maName; }
 - const String& GetSearchName() const { return maSearchName; }
 - - const String& GetAliasNames() const { return maMapNames; }
 - + const OUString& GetAliasNames() const { return maMapNames; }
 - bool IsScalable() const { return mpFirst->IsScalable(); }
 - int GetMinQuality() const { return mnMinQuality; }
 - @@ -73,9 +73,9 @@ public:
 - private:
 - friend class ImplDevFontList; // TODO: remove soon
 - PhysicalFontFace* mpFirst; // linked list of physical font faces
 - - String maName; // Fontname (original font family name)
 - + OUString maName; // Fontname (original font family name)
 - String maSearchName; // normalized font family name
 - - String maMapNames; // fontname aliases
 - + OUString maMapNames; // fontname aliases
 - sal_uIntPtr mnTypeFaces; // Typeface Flags
 - sal_uIntPtr mnMatchType; // MATCH - Type
 - String maMatchFamilyName; // MATCH - FamilyName
 - @@ -148,13 +148,13 @@ protected:
 - struct ImplFontSubstEntry
 - {
 - - String maName;
 - - String maReplaceName;
 - - String maSearchName;
 - - String maSearchReplaceName;
 - - sal_uInt16 mnFlags;
 - + String maName;
 - + String maReplaceName;
 - + OUString maSearchName;
 - + OUString maSearchReplaceName;
 - + sal_uInt16 mnFlags;
 - - ImplFontSubstEntry( const String& rFontName, const String& rSubstFontName, sal_uInt16 nSubstFlags );
 - + ImplFontSubstEntry( const OUString& rFontName, const OUString& rSubstFontName, sal_uInt16 nSubstFlags );
 - };
 - class ImplDirectFontSubstitution
 - diff --git a/vcl/inc/outfont.hxx b/vcl/inc/outfont.hxx
 - index 53ec909..8e355d5 100644
 - --- a/vcl/inc/outfont.hxx
 - +++ b/vcl/inc/outfont.hxx
 - @@ -54,16 +54,16 @@ namespace com { namespace sun { namespace star { namespace lang { struct Locale;
 - class ImplFontAttributes
 - {
 - public: // TODO: create matching interface class
 - - const String& GetFamilyName() const { return maName; }
 - - const String& GetStyleName() const { return maStyleName; }
 - + const OUString& GetFamilyName() const { return maName; }
 - + const OUString& GetStyleName() const { return maStyleName; }
 - FontWeight GetWeight() const { return meWeight; }
 - FontItalic GetSlant() const { return meItalic; }
 - FontFamily GetFamilyType() const { return meFamily; }
 - FontPitch GetPitch() const { return mePitch; }
 - FontWidth GetWidthType() const { return meWidthType; }
 - bool IsSymbolFont() const { return mbSymbolFlag; }
 - - void SetFamilyName(const String sFamilyName) { maName = sFamilyName; }
 - - void SetStyleName( const String sStyleName) { maStyleName = sStyleName; }
 - + void SetFamilyName(const OUString sFamilyName) { maName = sFamilyName; }
 - + void SetStyleName( const OUString sStyleName) { maStyleName = sStyleName; }
 - void SetFamilyType(const FontFamily eFontFamily) { meFamily = eFontFamily; }
 - void SetPitch(const FontPitch ePitch ) { mePitch = ePitch; }
 - void SetItalic(const FontItalic eItalic ) { meItalic = eItalic; }
 - @@ -77,8 +77,8 @@ public: // TODO: create matching interface class
 - }
 - private:
 - - String maName; // Font Family Name
 - - String maStyleName; // Font Style Name
 - + OUString maName; // Font Family Name
 - + OUString maStyleName; // Font Style Name
 - FontWeight meWeight; // Weight Type
 - FontItalic meItalic; // Slant Type
 - FontFamily meFamily; // Family Type
 - @@ -138,8 +138,8 @@ public:
 - PhysicalFontFace* CreateAlias() const { return Clone(); }
 - bool IsBetterMatch( const FontSelectPattern&, FontMatchStatus& ) const;
 - - StringCompare CompareWithSize( const PhysicalFontFace& ) const;
 - - StringCompare CompareIgnoreSize( const PhysicalFontFace& ) const;
 - + sal_Int32 CompareWithSize( const PhysicalFontFace& ) const;
 - + sal_Int32 CompareIgnoreSize( const PhysicalFontFace& ) const;
 - virtual ~PhysicalFontFace() {}
 - virtual PhysicalFontFace* Clone() const = 0;
 - @@ -172,8 +172,8 @@ public:
 - }
 - public:
 - - String maTargetName; // name of the font name token that is chosen
 - - String maSearchName; // name of the font that matches best
 - + OUString maTargetName; // name of the font name token that is chosen
 - + OUString maSearchName; // name of the font that matches best
 - int mnWidth; // width of font in pixel units
 - int mnHeight; // height of font in pixel units
 - float mfExactHeight; // requested height (in pixels with subpixel details)
 - @@ -231,7 +231,7 @@ public:
 - // find the device font
 - ImplDevFontListData* FindFontFamily( const String& rFontName ) const;
 - ImplDevFontListData* ImplFindByFont( FontSelectPattern&, bool bPrinter, ImplDirectFontSubstitution* ) const;
 - - ImplDevFontListData* ImplFindBySearchName( const String& ) const;
 - + ImplDevFontListData* ImplFindBySearchName( const OUString& ) const;
 - // suggest fonts for glyph fallback
 - ImplDevFontListData* GetGlyphFallbackFont( FontSelectPattern&,
 - @@ -359,7 +359,7 @@ public: // TODO: make data members private
 - bool mbInit; // true if maMetric member is valid
 - void AddFallbackForUnicode( sal_UCS4, FontWeight eWeight, const String& rFontName );
 - - bool GetFallbackForUnicode( sal_UCS4, FontWeight eWeight, String* pFontName ) const;
 - + bool GetFallbackForUnicode( sal_UCS4, FontWeight eWeight, OUString* pFontName ) const;
 - void IgnoreFallbackForUnicode( sal_UCS4, FontWeight eWeight, const String& rFontName );
 - private:
 - diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
 - index 8356a52..27ae468 100644
 - --- a/vcl/source/control/combobox.cxx
 - +++ b/vcl/source/control/combobox.cxx
 - @@ -382,10 +382,10 @@ IMPL_LINK_NOARG(ComboBox, ImplSelectHdl)
 - aText = mpSubEdit->GetText();
 - // Alle Eintraege entfernen, zu denen es einen Entry gibt, der aber nicht selektiert ist.
 - - xub_StrLen nIndex = 0;
 - - while ( nIndex != STRING_NOTFOUND )
 - + sal_Int32 nIndex = 0;
 - + while ( nIndex != -1 )
 - {
 - - xub_StrLen nPrevIndex = nIndex;
 - + sal_Int32 nPrevIndex = nIndex;
 - XubString aToken = aText.GetToken( 0, mcMultiSep, nIndex );
 - xub_StrLen nTokenLen = aToken.Len();
 - aToken = comphelper::string::strip(aToken, ' ');
 - diff --git a/vcl/source/gdi/font.cxx b/vcl/source/gdi/font.cxx
 - index b80e8e0..2f16fac 100644
 - --- a/vcl/source/gdi/font.cxx
 - +++ b/vcl/source/gdi/font.cxx
 - @@ -168,7 +168,7 @@ void Impl_Font::AskConfig()
 - sal_uLong nType = 0;
 - FontWeight eWeight = WEIGHT_DONTKNOW;
 - FontWidth eWidthType = WIDTH_DONTKNOW;
 - - String aMapName = maFamilyName;
 - + OUString aMapName = maFamilyName;
 - GetEnglishSearchFontName( aMapName );
 - utl::FontSubstConfiguration::getMapName( aMapName,
 - aShortName, aFamilyName, eWeight, eWidthType, nType );
 - diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
 - index 1364fcf..50e22a7 100644
 - --- a/vcl/source/gdi/outdev3.cxx
 - +++ b/vcl/source/gdi/outdev3.cxx
 - @@ -60,7 +60,7 @@
 - #include "unotools/fontcvt.hxx"
 - #include "unotools/fontcfg.hxx"
 - -
 - +//#include "unotools/fontdefs.hxx"
 - #include "osl/file.h"
 - #include <config_graphite.h>
 - @@ -359,8 +359,8 @@ void ImplDirectFontSubstitution::AddFontSubstitute( const String& rFontName,
 - // -----------------------------------------------------------------------
 - -ImplFontSubstEntry::ImplFontSubstEntry( const String& rFontName,
 - - const String& rSubstFontName, sal_uInt16 nSubstFlags )
 - +ImplFontSubstEntry::ImplFontSubstEntry( const OUString& rFontName,
 - + const OUString& rSubstFontName, sal_uInt16 nSubstFlags )
 - : maName( rFontName )
 - , maReplaceName( rSubstFontName )
 - , mnFlags( nSubstFlags )
 - @@ -434,11 +434,11 @@ bool ImplDirectFontSubstitution::FindFontSubstitute( String& rSubstName,
 - // -----------------------------------------------------------------------
 - -static void ImplFontSubstitute( String& rFontName,
 - +static void ImplFontSubstitute( OUString& rFontName,
 - sal_uInt16 nFlags, ImplDirectFontSubstitution* pDevSpecific )
 - {
 - #ifdef DBG_UTIL
 - - String aTempName = rFontName;
 - + OUString aTempName = rFontName;
 - GetEnglishSearchFontName( aTempName );
 - DBG_ASSERT( aTempName == rFontName, "ImplFontSubstitute() called without a searchname" );
 - #endif
 - @@ -553,9 +553,9 @@ Font OutputDevice::GetDefaultFont( sal_uInt16 nType, LanguageType eLang,
 - pOutDev->ImplInitFontList();
 - // Search Font in the FontList
 - - String aName;
 - - String aSearchName;
 - - xub_StrLen nIndex = 0;
 - + OUString aName;
 - + OUString aSearchName;
 - + sal_Int32 nIndex = 0;
 - do
 - {
 - aSearchName = GetNextFontToken( aSearch, nIndex );
 - @@ -568,7 +568,7 @@ Font OutputDevice::GetDefaultFont( sal_uInt16 nType, LanguageType eLang,
 - break;
 - }
 - }
 - - while ( nIndex != STRING_NOTFOUND );
 - + while ( nIndex != -1 );
 - aFont.SetName( aName );
 - }
 - @@ -582,7 +582,7 @@ Font OutputDevice::GetDefaultFont( sal_uInt16 nType, LanguageType eLang,
 - pOutDev = (const OutputDevice *)ImplGetSVData()->mpDefaultWin;
 - if( !pOutDev )
 - {
 - - xub_StrLen nIndex = 0;
 - + sal_Int32 nIndex = 0;
 - aFont.SetName( aSearch.GetToken( 0, ';', nIndex ) );
 - }
 - else
 - @@ -744,14 +744,14 @@ PhysicalFontFace::PhysicalFontFace( const ImplDevFontAttributes& rDFA, int nMagi
 - {
 - // StarSymbol is a unicode font, but it still deserves the symbol flag
 - if( !IsSymbolFont() )
 - - if( 0 == GetFamilyName().CompareIgnoreCaseToAscii( "starsymbol", 10)
 - - || 0 == GetFamilyName().CompareIgnoreCaseToAscii( "opensymbol", 10) )
 - + if( 0 == GetFamilyName().compareTo( "starsymbol", 10)
 - + || 0 == GetFamilyName().compareTo( "opensymbol", 10) )
 - SetSymbolFlag( true );
 - }
 - // -----------------------------------------------------------------------
 - -StringCompare PhysicalFontFace::CompareIgnoreSize( const PhysicalFontFace& rOther ) const
 - +sal_Int32 PhysicalFontFace::CompareIgnoreSize( const PhysicalFontFace& rOther ) const
 - {
 - // compare their width, weight, italic and style name
 - if( GetWidthType() < rOther.GetWidthType() )
 - @@ -769,15 +769,15 @@ StringCompare PhysicalFontFace::CompareIgnoreSize( const PhysicalFontFace& rOthe
 - else if( GetSlant() > rOther.GetSlant() )
 - return COMPARE_GREATER;
 - - StringCompare eCompare = GetFamilyName().CompareTo( rOther.GetFamilyName() );
 - + sal_Int32 eCompare = GetFamilyName().compareTo( rOther.GetFamilyName() );
 - return eCompare;
 - }
 - // -----------------------------------------------------------------------
 - -StringCompare PhysicalFontFace::CompareWithSize( const PhysicalFontFace& rOther ) const
 - +sal_Int32 PhysicalFontFace::CompareWithSize( const PhysicalFontFace& rOther ) const
 - {
 - - StringCompare eCompare = CompareIgnoreSize( rOther );
 - + sal_Int32 eCompare = CompareIgnoreSize( rOther );
 - if( eCompare != COMPARE_EQUAL )
 - return eCompare;
 - @@ -809,12 +809,12 @@ bool PhysicalFontFace::IsBetterMatch( const FontSelectPattern& rFSD, FontMatchSt
 - {
 - int nMatch = 0;
 - - const String& rFontName = rFSD.maTargetName;
 - - if( (rFontName == GetFamilyName()) || rFontName.EqualsIgnoreCaseAscii( GetFamilyName() ) )
 - + const OUString& rFontName = rFSD.maTargetName;
 - + if( (rFontName == GetFamilyName()) || rFontName.compareTo( GetFamilyName() ) )
 - nMatch += 240000;
 - if( rStatus.mpTargetStyleName
 - - && GetStyleName().EqualsIgnoreCaseAscii( rStatus.mpTargetStyleName ) )
 - + && GetStyleName().compareTo( rStatus.mpTargetStyleName ) )
 - nMatch += 120000;
 - if( (rFSD.GetPitch() != PITCH_DONTKNOW) && (rFSD.GetPitch() == GetPitch()) )
 - @@ -988,7 +988,7 @@ inline void ImplFontEntry::AddFallbackForUnicode( sal_UCS4 cChar, FontWeight eWe
 - // -----------------------------------------------------------------------
 - -inline bool ImplFontEntry::GetFallbackForUnicode( sal_UCS4 cChar, FontWeight eWeight, String* pFontName ) const
 - +inline bool ImplFontEntry::GetFallbackForUnicode( sal_UCS4 cChar, FontWeight eWeight, OUString* pFontName ) const
 - {
 - if( !mpUnicodeFallbackList )
 - return false;
 - @@ -1113,7 +1113,7 @@ bool ImplDevFontListData::AddFontFace( PhysicalFontFace* pNewData )
 - PhysicalFontFace** ppHere = &mpFirst;
 - for(; (pData=*ppHere) != NULL; ppHere=&pData->mpNext )
 - {
 - - StringCompare eComp = pNewData->CompareWithSize( *pData );
 - + sal_Int32 eComp = pNewData->CompareWithSize( *pData );
 - if( eComp == COMPARE_GREATER )
 - continue;
 - if( eComp == COMPARE_LESS )
 - @@ -1396,7 +1396,7 @@ ImplDevFontListData* ImplDevFontList::GetGlyphFallbackFont( FontSelectPattern& r
 - cChar = rMissingCodes.iterateCodePoints( &nStrIndex );
 - bCached = rFontSelData.mpFontEntry->GetFallbackForUnicode( cChar, rFontSelData.GetWeight(), &rFontSelData.maSearchName );
 - // ignore entries which don't have a fallback
 - - if( !bCached || (rFontSelData.maSearchName.Len() != 0) )
 - + if( !bCached || (rFontSelData.maSearchName.getLength() != 0) )
 - break;
 - }
 - @@ -1406,7 +1406,7 @@ ImplDevFontListData* ImplDevFontList::GetGlyphFallbackFont( FontSelectPattern& r
 - // so update rMissingCodes with codepoints not yet resolved by this fallback
 - int nRemainingLength = 0;
 - sal_UCS4* pRemainingCodes = (sal_UCS4*)alloca( rMissingCodes.getLength() * sizeof(sal_UCS4) );
 - - String aFontName;
 - + OUString aFontName;
 - while( nStrIndex < rMissingCodes.getLength() )
 - {
 - cChar = rMissingCodes.iterateCodePoints( &nStrIndex );
 - @@ -1424,7 +1424,7 @@ ImplDevFontListData* ImplDevFontList::GetGlyphFallbackFont( FontSelectPattern& r
 - // apply outdev3.cxx specific fontname normalization
 - GetEnglishSearchFontName( rFontSelData.maSearchName );
 - else
 - - rFontSelData.maSearchName = String();
 - + rFontSelData.maSearchName = OUString();
 - //See fdo#32665 for an example. FreeSerif that has glyphs in normal
 - //font, but not in the italic or bold version
 - @@ -1443,7 +1443,7 @@ ImplDevFontListData* ImplDevFontList::GetGlyphFallbackFont( FontSelectPattern& r
 - break;
 - cChar = aOldMissingCodes.iterateCodePoints( &nStrIndex );
 - }
 - - if( rFontSelData.maSearchName.Len() != 0 )
 - + if( rFontSelData.maSearchName.getLength() != 0 )
 - {
 - // remove cache entries that were still not resolved
 - for( nStrIndex = 0; nStrIndex < rMissingCodes.getLength(); )
 - @@ -1456,7 +1456,7 @@ ImplDevFontListData* ImplDevFontList::GetGlyphFallbackFont( FontSelectPattern& r
 - }
 - // find the matching device font
 - - if( rFontSelData.maSearchName.Len() != 0 )
 - + if( rFontSelData.maSearchName.getLength() != 0 )
 - pFallbackData = FindFontFamily( rFontSelData.maSearchName );
 - }
 - @@ -1478,7 +1478,7 @@ ImplDevFontListData* ImplDevFontList::GetGlyphFallbackFont( FontSelectPattern& r
 - void ImplDevFontList::Add( PhysicalFontFace* pNewData )
 - {
 - - String aSearchName = pNewData->GetFamilyName();
 - + OUString aSearchName = pNewData->GetFamilyName();
 - GetEnglishSearchFontName( aSearchName );
 - DevFontList::const_iterator it = maDevFontList.find( aSearchName );
 - @@ -1501,7 +1501,7 @@ void ImplDevFontList::Add( PhysicalFontFace* pNewData )
 - // -----------------------------------------------------------------------
 - // find the font from the normalized font family name
 - -ImplDevFontListData* ImplDevFontList::ImplFindBySearchName( const String& rSearchName ) const
 - +ImplDevFontListData* ImplDevFontList::ImplFindBySearchName( const OUString& rSearchName ) const
 - {
 - #ifdef DEBUG
 - String aTempName = rSearchName;
 - @@ -1536,12 +1536,12 @@ ImplDevFontListData* ImplDevFontList::ImplFindByAliasName(const rtl::OUString& r
 - while( it != maDevFontList.end() )
 - {
 - ImplDevFontListData* pData = (*it).second;
 - - if( !pData->maMapNames.Len() )
 - + if( !pData->maMapNames.getLength() )
 - continue;
 - // if one alias name matches we found a matching font
 - rtl::OUString aTempName;
 - - xub_StrLen nIndex = 0;
 - + sal_Int32 nIndex = 0;
 - do
 - {
 - aTempName = GetNextFontToken( pData->maMapNames, nIndex );
 - @@ -1549,7 +1549,7 @@ ImplDevFontListData* ImplDevFontList::ImplFindByAliasName(const rtl::OUString& r
 - if ( (aTempName == rSearchName) || (aTempName == rShortName) )
 - return pData;
 - }
 - - while ( nIndex != STRING_NOTFOUND );
 - + while ( nIndex != -1 );
 - }
 - return NULL;
 - @@ -1560,7 +1560,7 @@ ImplDevFontListData* ImplDevFontList::ImplFindByAliasName(const rtl::OUString& r
 - ImplDevFontListData* ImplDevFontList::FindFontFamily( const String& rFontName ) const
 - {
 - // normalize the font fomily name and
 - - String aName = rFontName;
 - + OUString aName = rFontName;
 - GetEnglishSearchFontName( aName );
 - ImplDevFontListData* pFound = ImplFindBySearchName( aName );
 - return pFound;
 - @@ -1573,10 +1573,10 @@ ImplDevFontListData* ImplDevFontList::ImplFindByTokenNames(const rtl::OUString&
 - ImplDevFontListData* pFoundData = NULL;
 - // use normalized font name tokens to find the font
 - - for( xub_StrLen nTokenPos = 0; nTokenPos != STRING_NOTFOUND; )
 - + for( sal_Int32 nTokenPos = 0; nTokenPos != -1; )
 - {
 - - String aSearchName = GetNextFontToken( rTokenStr, nTokenPos );
 - - if( !aSearchName.Len() )
 - + OUString aSearchName = GetNextFontToken( rTokenStr, nTokenPos );
 - + if( !aSearchName.getLength() )
 - continue;
 - GetEnglishSearchFontName( aSearchName );
 - pFoundData = ImplFindBySearchName( aSearchName );
 - @@ -1597,7 +1597,7 @@ ImplDevFontListData* ImplDevFontList::ImplFindBySubstFontAttr( const utl::FontNa
 - ::std::vector< String >::const_iterator it = rFontAttr.Substitutions.begin();
 - for(; it != rFontAttr.Substitutions.end(); ++it )
 - {
 - - String aSearchName( *it );
 - + OUString aSearchName( *it );
 - GetEnglishSearchFontName( aSearchName );
 - pFoundData = ImplFindBySearchName( aSearchName );
 - @@ -2199,8 +2199,8 @@ size_t FontSelectPatternAttributes::hashCode() const
 - size_t nHash = aFontNameHash( maSearchName );
 - #ifdef ENABLE_GRAPHITE
 - // check for features and generate a unique hash if necessary
 - - if (maTargetName.Search(grutils::GrFeatureParser::FEAT_PREFIX)
 - - != STRING_NOTFOUND)
 - + if (maTargetName.indexOf(grutils::GrFeatureParser::FEAT_PREFIX)
 - + != -1)
 - {
 - nHash = aFontNameHash( maTargetName );
 - }
 - @@ -2299,9 +2299,9 @@ bool ImplFontCache::IFSD_Equal::operator()(const FontSelectPattern& rA, const Fo
 - #ifdef ENABLE_GRAPHITE
 - // check for features
 - - if ((rA.maTargetName.Search(grutils::GrFeatureParser::FEAT_PREFIX)
 - + if ((rA.maTargetName.indexOf(grutils::GrFeatureParser::FEAT_PREFIX)
 - != STRING_NOTFOUND ||
 - - rB.maTargetName.Search(grutils::GrFeatureParser::FEAT_PREFIX)
 - + rB.maTargetName.indexOf(grutils::GrFeatureParser::FEAT_PREFIX)
 - != STRING_NOTFOUND) && rA.maTargetName != rB.maTargetName)
 - return false;
 - #endif
 - @@ -2498,8 +2498,8 @@ ImplDevFontListData* ImplDevFontList::ImplFindByFont( FontSelectPattern& rFSD,
 - nSubstFlags |= FONT_SUBSTITUTE_SCREENONLY;
 - bool bMultiToken = false;
 - - xub_StrLen nTokenPos = 0;
 - - String& aSearchName = rFSD.maSearchName; // TODO: get rid of reference
 - + sal_Int32 nTokenPos = 0;
 - + OUString& aSearchName = rFSD.maSearchName; // TODO: get rid of reference
 - for(;;)
 - {
 - rFSD.maTargetName = GetNextFontToken( rFSD.GetFamilyName(), nTokenPos );
 - @@ -2508,11 +2508,11 @@ ImplDevFontListData* ImplDevFontList::ImplFindByFont( FontSelectPattern& rFSD,
 - #ifdef ENABLE_GRAPHITE
 - // Until features are properly supported, they are appended to the
 - // font name, so we need to strip them off so the font is found.
 - - xub_StrLen nFeat = aSearchName.Search(grutils::GrFeatureParser::FEAT_PREFIX);
 - + xub_StrLen nFeat = aSearchName.indexOf(grutils::GrFeatureParser::FEAT_PREFIX);
 - String aOrigName = rFSD.maTargetName;
 - - String aBaseFontName(aSearchName, 0, (nFeat != STRING_NOTFOUND)?nFeat:aSearchName.Len());
 - + String aBaseFontName(aSearchName, 0, (nFeat != STRING_NOTFOUND)?nFeat:aSearchName.getLength());
 - if (nFeat != STRING_NOTFOUND && STRING_NOTFOUND !=
 - - aSearchName.Search(grutils::GrFeatureParser::FEAT_ID_VALUE_SEPARATOR, nFeat))
 - + aSearchName.indexOf(grutils::GrFeatureParser::FEAT_ID_VALUE_SEPARATOR, nFeat))
 - {
 - aSearchName = aBaseFontName;
 - rFSD.maTargetName = aBaseFontName;
 - @@ -2525,23 +2525,23 @@ ImplDevFontListData* ImplDevFontList::ImplFindByFont( FontSelectPattern& rFSD,
 - // #114999# special emboldening for Ricoh fonts
 - // TODO: smarter check for special cases by using PreMatch infrastructure?
 - if( (rFSD.GetWeight() > WEIGHT_MEDIUM)
 - - && aSearchName.EqualsAscii( "hg", 0, 2) )
 - - {
 - - String aBoldName;
 - - if( aSearchName.EqualsAscii( "hggothicb", 0, 9) )
 - - aBoldName = String("hggothice");
 - - else if( aSearchName.EqualsAscii( "hgpgothicb", 0, 10) )
 - - aBoldName = String("hgpgothice");
 - - else if( aSearchName.EqualsAscii( "hgminchol", 0, 9) )
 - - aBoldName = String("hgminchob");
 - - else if( aSearchName.EqualsAscii( "hgpminchol", 0, 10) )
 - - aBoldName = String("hgpminchob");
 - - else if( aSearchName.EqualsAscii( "hgminchob" ) )
 - - aBoldName = String("hgminchoe");
 - - else if( aSearchName.EqualsAscii( "hgpminchob" ) )
 - - aBoldName = String("hgpminchoe");
 - -
 - - if( aBoldName.Len() && ImplFindBySearchName( aBoldName ) )
 - + && aSearchName.equalsIgnoreAsciiCase( "hg" ) )
 - + {
 - + OUString aBoldName;
 - + if( aSearchName.equalsIgnoreAsciiCase( "hggothicb" ) )
 - + aBoldName = OUString("hggothice");
 - + else if( aSearchName.equalsIgnoreAsciiCase( "hgpgothicb" ) )
 - + aBoldName = OUString("hgpgothice");
 - + else if( aSearchName.equalsIgnoreAsciiCase( "hgminchol" ) )
 - + aBoldName = OUString("hgminchob");
 - + else if( aSearchName.equalsIgnoreAsciiCase( "hgpminchol" ) )
 - + aBoldName = OUString("hgpminchob");
 - + else if( aSearchName.equalsIgnoreAsciiCase( "hgminchob" ) )
 - + aBoldName = OUString("hgminchoe");
 - + else if( aSearchName.equalsIgnoreAsciiCase( "hgpminchob" ) )
 - + aBoldName = OUString("hgpminchoe");
 - +
 - + if( aBoldName.getLength() && ImplFindBySearchName( aBoldName ) )
 - {
 - // the other font is available => use it
 - aSearchName = aBoldName;
 - @@ -2597,7 +2597,7 @@ ImplDevFontListData* ImplDevFontList::ImplFindByFont( FontSelectPattern& rFSD,
 - return pFoundData;
 - // break after last font name token was checked unsuccessfully
 - - if( nTokenPos == STRING_NOTFOUND)
 - + if( nTokenPos == -1 )
 - break;
 - bMultiToken = true;
 - }
 - @@ -2607,7 +2607,7 @@ ImplDevFontListData* ImplDevFontList::ImplFindByFont( FontSelectPattern& rFSD,
 - // available when there is a matching entry in the Tools->Options->Fonts
 - // dialog witho neither ALWAYS nor SCREENONLY flags set and the substitution
 - // font is available
 - - for( nTokenPos = 0; nTokenPos != STRING_NOTFOUND; )
 - + for( nTokenPos = 0; nTokenPos != -1; )
 - {
 - if( bMultiToken )
 - {
 - @@ -2616,7 +2616,7 @@ ImplDevFontListData* ImplDevFontList::ImplFindByFont( FontSelectPattern& rFSD,
 - GetEnglishSearchFontName( aSearchName );
 - }
 - else
 - - nTokenPos = STRING_NOTFOUND;
 - + nTokenPos = -1;
 - if( mpPreMatchHook )
 - if( mpPreMatchHook->FindFontSubstitute( rFSD ) )
 - GetEnglishSearchFontName( aSearchName );
 - @@ -2640,7 +2640,7 @@ ImplDevFontListData* ImplDevFontList::ImplFindByFont( FontSelectPattern& rFSD,
 - String aSearchFamilyName;
 - FontWeight eSearchWeight = rFSD.GetWeight();
 - FontWidth eSearchWidth = rFSD.GetWidthType();
 - - sal_uLong nSearchType = 0;
 - + sal_uLong nSearchType = 0;
 - FontSubstConfiguration::getMapName( aSearchName, aSearchShortName, aSearchFamilyName,
 - eSearchWeight, eSearchWidth, nSearchType );
 - @@ -2670,7 +2670,7 @@ ImplDevFontListData* ImplDevFontList::ImplFindByFont( FontSelectPattern& rFSD,
 - // use font fallback
 - const FontNameAttr* pFontAttr = NULL;
 - - if( aSearchName.Len() )
 - + if( aSearchName.getLength() )
 - {
 - // get fallback info using FontSubstConfiguration and
 - // the target name, it's shortened name and family name in that order
 - @@ -2701,10 +2701,10 @@ ImplDevFontListData* ImplDevFontList::ImplFindByFont( FontSelectPattern& rFSD,
 - }
 - // now try the other font name tokens
 - - while( nTokenPos != STRING_NOTFOUND )
 - + while( nTokenPos != -1 )
 - {
 - index 20c1d36..0842a01 100644
 - --- a/vcl/inc/outdev.h
 - +++ b/vcl/inc/outdev.h
 - @@ -54,9 +54,9 @@ public:
 - ImplDevFontListData( const String& rSearchName );
 - ~ImplDevFontListData();
 - - const String& GetFamilyName() const { return maName; }
 - + const OUString& GetFamilyName() const { return maName; }
 - const String& GetSearchName() const { return maSearchName; }
 - - const String& GetAliasNames() const { return maMapNames; }
 - + const OUString& GetAliasNames() const { return maMapNames; }
 - bool IsScalable() const { return mpFirst->IsScalable(); }
 - int GetMinQuality() const { return mnMinQuality; }
 - @@ -73,9 +73,9 @@ public:
 - private:
 - friend class ImplDevFontList; // TODO: remove soon
 - PhysicalFontFace* mpFirst; // linked list of physical font faces
 - - String maName; // Fontname (original font family name)
 - + OUString maName; // Fontname (original font family name)
 - String maSearchName; // normalized font family name
 - - String maMapNames; // fontname aliases
 - + OUString maMapNames; // fontname aliases
 - sal_uIntPtr mnTypeFaces; // Typeface Flags
 - sal_uIntPtr mnMatchType; // MATCH - Type
 - String maMatchFamilyName; // MATCH - FamilyName
 - @@ -148,13 +148,13 @@ protected:
 - struct ImplFontSubstEntry
 - {
 - - String maName;
 - - String maReplaceName;
 - - String maSearchName;
 - - String maSearchReplaceName;
 - - sal_uInt16 mnFlags;
 - + String maName;
 - :
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment