From d261ddf3c8e76b44b07ea8be69234a123d2f4271 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 5 Sep 2013 12:08:17 +0200 Subject: use replace with sal_Unicode instead of replaceAll with OUString Change-Id: I69eda64c3604f4a38fade5dbc912879937b95e0a --- i18npool/source/localedata/localedata.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'i18npool') diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx index 709dc03ec78f..7433a2b85582 100644 --- a/i18npool/source/localedata/localedata.cxx +++ b/i18npool/source/localedata/localedata.cxx @@ -1520,7 +1520,7 @@ LocaleData::getAllInstalledLocaleNames() throw(RuntimeException) if (lcl_LookupTableStatic::get().getFunctionSymbolByName( name, "getLocaleItem", &pCachedItem )) { if( pCachedItem ) cachedItem.reset( pCachedItem ); - seq[nInstalled++] = LanguageTag::convertToLocale( name.replaceAll( "_", "-"), false); + seq[nInstalled++] = LanguageTag::convertToLocale( name.replace( under, '-'), false); } else { @@ -1628,7 +1628,7 @@ LocaleData::getSupportedServiceNames() throw( RuntimeException ) OUString LocaleData::getFirstLocaleServiceName( const com::sun::star::lang::Locale & rLocale ) { if (rLocale.Language == I18NLANGTAG_QLT) - return rLocale.Variant.replaceAll( "-", "_"); + return rLocale.Variant.replace( '-', under); else if (!rLocale.Country.isEmpty()) return rLocale.Language + "_" + rLocale.Country; else @@ -1645,7 +1645,7 @@ OUString LocaleData::getFirstLocaleServiceName( const com::sun::star::lang::Loca aVec.erase( aVec.begin()); for (::std::vector< OUString >::iterator it(aVec.begin()); it != aVec.end(); ++it) { - *it = (*it).replaceAll( "-", "_"); + *it = (*it).replace( '-', under); } } else if (!rLocale.Country.isEmpty()) -- cgit