From 3d223821a8a9dd83993626554041a95098f75ac5 Mon Sep 17 00:00:00 2001 From: Emanuele Fia Date: Thu, 3 Nov 2011 21:29:14 +0100 Subject: Removed unused code --- unotools/source/i18n/charclass.cxx | 53 -------------------------------------- 1 file changed, 53 deletions(-) (limited to 'unotools/source/i18n/charclass.cxx') diff --git a/unotools/source/i18n/charclass.cxx b/unotools/source/i18n/charclass.cxx index 5fcd2ae6d476..fad144d13060 100644 --- a/unotools/source/i18n/charclass.cxx +++ b/unotools/source/i18n/charclass.cxx @@ -116,21 +116,6 @@ sal_Bool CharClass::isAsciiAlpha( const String& rStr ) } -// static -sal_Bool CharClass::isAsciiAlphaNumeric( const String& rStr ) -{ - if ( !rStr.Len() ) - return sal_False; - register const sal_Unicode* p = rStr.GetBuffer(); - register const sal_Unicode* const pStop = p + rStr.Len(); - do - { - if ( !isAsciiAlphaNumeric( *p ) ) - return sal_False; - } while ( ++p < pStop ); - return sal_True; -} - sal_Bool CharClass::isAlpha( const String& rStr, xub_StrLen nPos ) const { @@ -154,22 +139,6 @@ sal_Bool CharClass::isAlpha( const String& rStr, xub_StrLen nPos ) const } -sal_Bool CharClass::isAlpha( const String& rStr ) const -{ - try - { - if ( xCC.is() ) - return isAlphaType( xCC->getStringType( rStr, 0, rStr.Len(), getLocale() ) ); - else - return sal_False; - } - catch ( const Exception& ) - { - DBG_ERRORFILE( "isAlpha: Exception caught!" ); - return sal_False; - } -} - sal_Bool CharClass::isLetter( const String& rStr, xub_StrLen nPos ) const { @@ -271,23 +240,6 @@ sal_Bool CharClass::isAlphaNumeric( const String& rStr, xub_StrLen nPos ) const } -sal_Bool CharClass::isAlphaNumeric( const String& rStr ) const -{ - try - { - if ( xCC.is() ) - return isAlphaNumericType( xCC->getStringType( rStr, 0, rStr.Len(), getLocale() ) ); - else - return sal_False; - } - catch ( const Exception& ) - { - DBG_ERRORFILE( "isAlphaNumeric: Exception caught!" ); - return sal_False; - } -} - - sal_Bool CharClass::isLetterNumeric( const String& rStr, xub_StrLen nPos ) const { sal_Unicode c = rStr.GetChar( nPos ); @@ -336,11 +288,6 @@ String CharClass::toUpper( const String& rStr, xub_StrLen nPos, xub_StrLen nCoun return toUpper_rtl(rStr, nPos, nCount); } -void CharClass::toLower( rtl::OUString& rStr ) const -{ - rStr = toLower_rtl(rStr, 0, rStr.getLength()); -} - String CharClass::toLower( const String& rStr, xub_StrLen nPos, xub_StrLen nCount ) const { return toLower_rtl(::rtl::OUString(rStr), nPos, nCount); -- cgit v1.2.3