diff options
author | Eike Rathke <erack@redhat.com> | 2013-09-05 12:08:17 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-09-05 14:57:26 +0200 |
commit | d261ddf3c8e76b44b07ea8be69234a123d2f4271 (patch) | |
tree | 5c5ad09f13d18d4a475ae1eca0d3481bd2659dde /i18npool | |
parent | a6c73c2007cae29755d51c10f85cb684760ae84b (diff) |
use replace with sal_Unicode instead of replaceAll with OUString
Change-Id: I69eda64c3604f4a38fade5dbc912879937b95e0a
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/localedata/localedata.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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()) |