diff options
Diffstat (limited to 'dtrans/source/cnttype/mcnttype.cxx')
-rw-r--r-- | dtrans/source/cnttype/mcnttype.cxx | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/dtrans/source/cnttype/mcnttype.cxx b/dtrans/source/cnttype/mcnttype.cxx index 98518ea59508..dff702d3a421 100644 --- a/dtrans/source/cnttype/mcnttype.cxx +++ b/dtrans/source/cnttype/mcnttype.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -64,7 +64,7 @@ CMimeContentType::CMimeContentType( const OUString& aCntType ) } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ OUString SAL_CALL CMimeContentType::getMediaType( ) throw(RuntimeException) @@ -73,7 +73,7 @@ OUString SAL_CALL CMimeContentType::getMediaType( ) throw(RuntimeException) } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ OUString SAL_CALL CMimeContentType::getMediaSubtype( ) throw(RuntimeException) @@ -82,7 +82,7 @@ OUString SAL_CALL CMimeContentType::getMediaSubtype( ) throw(RuntimeException) } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ OUString SAL_CALL CMimeContentType::getFullMediaType( ) throw(RuntimeException) @@ -91,7 +91,7 @@ OUString SAL_CALL CMimeContentType::getFullMediaType( ) throw(RuntimeException) } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ Sequence< OUString > SAL_CALL CMimeContentType::getParameters( ) throw(RuntimeException) @@ -113,7 +113,7 @@ Sequence< OUString > SAL_CALL CMimeContentType::getParameters( ) throw(RuntimeEx } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ sal_Bool SAL_CALL CMimeContentType::hasParameter( const OUString& aName ) throw(RuntimeException) @@ -123,9 +123,9 @@ sal_Bool SAL_CALL CMimeContentType::hasParameter( const OUString& aName ) throw( } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ - + OUString SAL_CALL CMimeContentType::getParameterValue( const OUString& aName ) throw(NoSuchElementException, RuntimeException) { MutexGuard aGuard( m_aMutex ); @@ -137,7 +137,7 @@ OUString SAL_CALL CMimeContentType::getParameterValue( const OUString& aName ) t } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ void SAL_CALL CMimeContentType::init( const OUString& aCntType ) throw( IllegalArgumentException ) @@ -152,7 +152,7 @@ void SAL_CALL CMimeContentType::init( const OUString& aCntType ) throw( IllegalA } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ void SAL_CALL CMimeContentType::getSym( void ) @@ -168,7 +168,7 @@ void SAL_CALL CMimeContentType::getSym( void ) } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ void SAL_CALL CMimeContentType::acceptSym( const OUString& pSymTlb ) @@ -176,21 +176,21 @@ void SAL_CALL CMimeContentType::acceptSym( const OUString& pSymTlb ) if ( pSymTlb.indexOf( m_nxtSym ) < 0 ) throw IllegalArgumentException( ); - getSym(); + getSym(); } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ void SAL_CALL CMimeContentType::skipSpaces( void ) { while ( SPACE == m_nxtSym ) getSym( ); -} +} //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ void SAL_CALL CMimeContentType::type( void ) @@ -221,7 +221,7 @@ void SAL_CALL CMimeContentType::type( void ) } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ void SAL_CALL CMimeContentType::subtype( void ) @@ -249,7 +249,7 @@ void SAL_CALL CMimeContentType::subtype( void ) } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ void SAL_CALL CMimeContentType::trailer( void ) @@ -264,7 +264,7 @@ void SAL_CALL CMimeContentType::trailer( void ) } else if ( m_nxtSym == OUString::createFromAscii( ";" ) ) { - // get the parameter name + // get the parameter name getSym( ); skipSpaces( ); @@ -272,7 +272,7 @@ void SAL_CALL CMimeContentType::trailer( void ) throw IllegalArgumentException( ); OUString pname = pName( ); - + skipSpaces(); acceptSym( OUString::createFromAscii( "=" ) ); @@ -283,23 +283,23 @@ void SAL_CALL CMimeContentType::trailer( void ) // insert into map if ( !m_ParameterMap.insert( pair < const OUString, OUString > ( pname, pvalue ) ).second ) - throw IllegalArgumentException( ); + throw IllegalArgumentException( ); } else throw IllegalArgumentException( ); - + skipSpaces( ); } } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ OUString SAL_CALL CMimeContentType::pName( ) { OUString pname; - + while( m_nxtSym.getLength( ) ) { if ( isInRange( m_nxtSym, TOKEN ) ) @@ -315,7 +315,7 @@ OUString SAL_CALL CMimeContentType::pName( ) } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ OUString SAL_CALL CMimeContentType::pValue( ) @@ -344,14 +344,14 @@ OUString SAL_CALL CMimeContentType::pValue( ) } else throw IllegalArgumentException( ); - + return pvalue; } //------------------------------------------------------------------------ // the following combinations within a quoted value are not allowed: -// '";' (quote sign followed by semicolon) and '" ' (quote sign followed -// by space) +// '";' (quote sign followed by semicolon) and '" ' (quote sign followed +// by space) //------------------------------------------------------------------------ OUString SAL_CALL CMimeContentType::quotedPValue( ) @@ -360,7 +360,7 @@ OUString SAL_CALL CMimeContentType::quotedPValue( ) sal_Bool bAfterQuoteSign = sal_False; while ( m_nxtSym.getLength( ) ) - { + { if ( bAfterQuoteSign && ((m_nxtSym == SPACE)||(m_nxtSym == SEMICOLON) ) ) break; else if ( isInRange( m_nxtSym, TOKEN + TSPECIALS + SPACE ) ) @@ -372,7 +372,7 @@ OUString SAL_CALL CMimeContentType::quotedPValue( ) bAfterQuoteSign = sal_False; } else - throw IllegalArgumentException( ); + throw IllegalArgumentException( ); getSym( ); } @@ -380,7 +380,7 @@ OUString SAL_CALL CMimeContentType::quotedPValue( ) } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ OUString SAL_CALL CMimeContentType::nonquotedPValue( ) @@ -391,7 +391,7 @@ OUString SAL_CALL CMimeContentType::nonquotedPValue( ) { if ( isInRange( m_nxtSym, TOKEN ) ) pvalue += m_nxtSym; - else if ( isInRange( m_nxtSym, OUString::createFromAscii( "; " ) ) ) + else if ( isInRange( m_nxtSym, OUString::createFromAscii( "; " ) ) ) break; else throw IllegalArgumentException( ); @@ -402,7 +402,7 @@ OUString SAL_CALL CMimeContentType::nonquotedPValue( ) } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ void SAL_CALL CMimeContentType::comment( void ) @@ -410,7 +410,7 @@ void SAL_CALL CMimeContentType::comment( void ) while ( m_nxtSym.getLength( ) ) { if ( isInRange( m_nxtSym, TOKEN + SPACE ) ) - getSym( ); + getSym( ); else if ( m_nxtSym == OUString::createFromAscii( ")" ) ) break; else @@ -419,12 +419,12 @@ void SAL_CALL CMimeContentType::comment( void ) } //------------------------------------------------------------------------ -// +// //------------------------------------------------------------------------ sal_Bool SAL_CALL CMimeContentType::isInRange( const rtl::OUString& aChr, const rtl::OUString& aRange ) { - return ( aRange.indexOf( aChr ) > -1 ); + return ( aRange.indexOf( aChr ) > -1 ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |