From 4ef5ed9d21de767ce1b4c70d73cf15994b38dcdb Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 21 Dec 2012 16:32:54 +0100 Subject: fdo#57545 remove redundant capitalType functions capitalType functions from the hyphenator, thesaurus and spellchecker dispatcher have been replaced by a unique function in linguistic/misc.cxx. The capital type is now represented as an enum. Change-Id: I0c2768b06f995cf34c105de117c7bab138c727a9 Reviewed-on: https://gerrit.libreoffice.org/1460 Reviewed-by: Eike Rathke Tested-by: Eike Rathke --- linguistic/inc/linguistic/misc.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'linguistic/inc') diff --git a/linguistic/inc/linguistic/misc.hxx b/linguistic/inc/linguistic/misc.hxx index 3f17f045a705..d3874d1a02ef 100644 --- a/linguistic/inc/linguistic/misc.hxx +++ b/linguistic/inc/linguistic/misc.hxx @@ -82,6 +82,15 @@ namespace linguistic #define DIC_ERR_UNKNOWN 3 #define DIC_ERR_NOT_EXISTS 4 +// values asigned to capitalization types +enum CapType +{ + CAPTYPE_UNKNOWN, + CAPTYPE_NOCAP, + CAPTYPE_INITCAP, + CAPTYPE_ALLCAP, + CAPTYPE_MIXED +}; LNG_DLLPUBLIC ::osl::Mutex& GetLinguMutex(); @@ -120,6 +129,7 @@ LNG_DLLPUBLIC sal_Int32 GetPosInWordToCheck( const rtl::OUString &rTxt, sal_Int3 LNG_DLLPUBLIC sal_Bool IsUpper( const String &rText, xub_StrLen nPos, xub_StrLen nLen, sal_Int16 nLanguage ); inline sal_Bool IsUpper( const String &rText, sal_Int16 nLanguage ) { return IsUpper( rText, 0, rText.Len(), nLanguage ); } +LNG_DLLPUBLIC CapType SAL_CALL capitalType(const OUString&, CharClass *); String ToLower( const String &rText, sal_Int16 nLanguage ); LNG_DLLPUBLIC sal_Bool HasDigits( const ::rtl::OUString &rText ); -- cgit