diff options
author | Emanuele Fia <name29@name29-laptop.(none)> | 2011-11-03 21:29:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-07 12:39:04 +0000 |
commit | 3d223821a8a9dd83993626554041a95098f75ac5 (patch) | |
tree | 105e0f8ce865f30d15d280464a8fbcfd9bb5ea68 /unotools | |
parent | 6401ca3325d386067ab86dc36c5cea169449570e (diff) |
Removed unused code
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/i18n/charclass.cxx | 53 |
1 files changed, 0 insertions, 53 deletions
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); |