diff options
Diffstat (limited to 'i18npool/source/transliteration/transliteration_body.cxx')
-rw-r--r-- | i18npool/source/transliteration/transliteration_body.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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 |