summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorAlexander Bergmann <myaddons@gmx.de>2012-02-08 12:29:23 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-02-08 15:11:29 +0000
commit7e579e6f4d6fc18d36cd29743b7343f20bda500d (patch)
tree5e8cb537f26c4a9f2d4b6cf33eb6a295fe1f2660 /linguistic
parent09be8bbee6b49680dd2a16f5b4c2c2f8d9eca72c (diff)
unusedcode.easy: Removed unused code (linguistic)
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/inc/linguistic/misc.hxx6
-rw-r--r--linguistic/source/misc.cxx51
2 files changed, 0 insertions, 57 deletions
diff --git a/linguistic/inc/linguistic/misc.hxx b/linguistic/inc/linguistic/misc.hxx
index da2415948b02..ee41fe4fd52c 100644
--- a/linguistic/inc/linguistic/misc.hxx
+++ b/linguistic/inc/linguistic/misc.hxx
@@ -139,16 +139,10 @@ 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 );
-LNG_DLLPUBLIC sal_Bool IsLower( 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 ); }
-inline sal_Bool IsLower( const String &rText, sal_Int16 nLanguage ) { return IsLower( rText, 0, rText.Len(), nLanguage ); }
String ToLower( const String &rText, sal_Int16 nLanguage );
-String ToUpper( const String &rText, sal_Int16 nLanguage );
-String ToTitle( const String &rText, sal_Int16 nLanguage );
-sal_Unicode ToLower( const sal_Unicode cChar, sal_Int16 nLanguage );
-sal_Unicode ToUpper( const sal_Unicode cChar, sal_Int16 nLanguage );
LNG_DLLPUBLIC sal_Bool HasDigits( const ::rtl::OUString &rText );
LNG_DLLPUBLIC sal_Bool IsNumeric( const String &rText );
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx
index 4927b4e63d20..59c3f3725773 100644
--- a/linguistic/source/misc.cxx
+++ b/linguistic/source/misc.cxx
@@ -635,18 +635,6 @@ sal_Bool IsUpper( const String &rText, xub_StrLen nPos, xub_StrLen nLen, sal_Int
}
-sal_Bool IsLower( const String &rText, xub_StrLen nPos, xub_StrLen nLen, sal_Int16 nLanguage )
-{
- MutexGuard aGuard( lcl_GetCharClassMutex() );
-
- CharClass &rCC = lcl_GetCharClass();
- rCC.setLocale( CreateLocale( nLanguage ) );
- sal_Int32 nFlags = rCC.getStringType( rText, nPos, nLen );
- return (nFlags & KCharacterType::LOWER)
- && !(nFlags & KCharacterType::UPPER);
-}
-
-
String ToLower( const String &rText, sal_Int16 nLanguage )
{
MutexGuard aGuard( lcl_GetCharClassMutex() );
@@ -657,45 +645,6 @@ String ToLower( const String &rText, sal_Int16 nLanguage )
}
-String ToUpper( const String &rText, sal_Int16 nLanguage )
-{
- MutexGuard aGuard( lcl_GetCharClassMutex() );
-
- CharClass &rCC = lcl_GetCharClass();
- rCC.setLocale( CreateLocale( nLanguage ) );
- return rCC.uppercase( rText );
-}
-
-
-String ToTitle( const String &rText, sal_Int16 nLanguage )
-{
- MutexGuard aGuard( lcl_GetCharClassMutex() );
-
- CharClass &rCC = lcl_GetCharClass();
- rCC.setLocale( CreateLocale( nLanguage ) );
- return rCC.titlecase(rText);
-}
-
-
-sal_Unicode ToLower( const sal_Unicode cChar, sal_Int16 nLanguage )
-{
- MutexGuard aGuard( lcl_GetCharClassMutex() );
-
- CharClass &rCC = lcl_GetCharClass();
- rCC.setLocale( CreateLocale( nLanguage ) );
- return rCC.lowercase( rtl::OUString(cChar) )[0];
-}
-
-
-sal_Unicode ToUpper( const sal_Unicode cChar, sal_Int16 nLanguage )
-{
- MutexGuard aGuard( lcl_GetCharClassMutex() );
-
- CharClass &rCC = lcl_GetCharClass();
- rCC.setLocale( CreateLocale( nLanguage ) );
- return rCC.uppercase( rtl::OUString(cChar) )[0];
-}
-
// sorted(!) array of unicode ranges for code points that are exclusively(!) used as numbers
// and thus may NOT not be part of names or words like the Chinese/Japanese number characters
static const sal_uInt32 the_aDigitZeroes [] =