From 1c7af455ab9345304a7ac48ce2e0310de2ac8a75 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 20 Aug 2013 18:26:05 +0100 Subject: Re-work 8bit characters in source code, or remove them. Change-Id: I93e14d4936c0ffbe03425d4a54bb0e09bc62b3e3 Reviewed-on: https://gerrit.libreoffice.org/5550 Tested-by: LibreOffice gerrit bot Reviewed-by: Michael Meeks Tested-by: Michael Meeks --- i18npool/source/transliteration/transliteration_body.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'i18npool') diff --git a/i18npool/source/transliteration/transliteration_body.cxx b/i18npool/source/transliteration/transliteration_body.cxx index 1eb07f7ba577..0ab4f0b11250 100644 --- a/i18npool/source/transliteration/transliteration_body.cxx +++ b/i18npool/source/transliteration/transliteration_body.cxx @@ -276,14 +276,14 @@ static OUString transliterate_titlecase_Impl( Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext(); CharacterClassificationImpl aCharClassImpl( xContext ); - // because aCharClassImpl.toTitle does not handle ligatures or ß but will raise + // because aCharClassImpl.toTitle does not handle ligatures or Beta but will raise // an exception we need to handle the first chara manually... // we don't want to change surrogates by accident, thuse we use proper code point iteration sal_Int32 nPos = 0; sal_uInt32 cFirstChar = aText.iterateCodePoints( &nPos ); - OUString aResolvedLigature( &cFirstChar, 1 ); //lcl_ResolveLigature( cFirstChar ) ); - // toUpper can be used to properly resolve ligatures and characters like ß + OUString aResolvedLigature( &cFirstChar, 1 ); + // toUpper can be used to properly resolve ligatures and characters like Beta aResolvedLigature = aCharClassImpl.toUpper( aResolvedLigature, 0, aResolvedLigature.getLength(), rLocale ); // since toTitle will leave all-uppercase text unchanged we first need to // use toLower to bring possible 2nd and following charas in lowercase -- cgit