diff options
author | Eike Rathke <erack@redhat.com> | 2022-09-12 17:14:24 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2022-09-13 10:25:17 +0200 |
commit | ab0adac692b67fe7b63dee665607400c6a7e6c01 (patch) | |
tree | b67f36216dcf5f06e6acd4d73cbd629a4f81b14d /linguistic | |
parent | f0f0d385b91df30d4ec42a9f727cbdbe5ce0861f (diff) |
Fix everything using XCharacterClassification::getStringType() and don't use it
See note in offapi/com/sun/star/i18n/XCharacterClassification.idl
The brain dead implementation is useless but API ... its use in
isAlphaNumericType() and similar never returned what would had
been expected.
Change-Id: I278f2468182dab94c32273ef69cf9634bc002cb4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139809
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/misc.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx index dc4c17ce8430..c315ad1270ee 100644 --- a/linguistic/source/misc.cxx +++ b/linguistic/source/misc.cxx @@ -558,9 +558,7 @@ uno::Reference< XHyphenatedWord > RebuildHyphensAndControlChars( bool IsUpper( const OUString &rText, sal_Int32 nPos, sal_Int32 nLen, LanguageType nLanguage ) { CharClass aCC(( LanguageTag( nLanguage ) )); - sal_Int32 nFlags = aCC.getStringType( rText, nPos, nLen ); - return (nFlags & KCharacterType::UPPER) - && !(nFlags & KCharacterType::LOWER); + return aCC.isUpper( rText, nPos, nLen ); } CapType capitalType(const OUString& aTerm, CharClass const * pCC) |