summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-05-20 18:02:06 +0000
committerKurt Zenker <kz@openoffice.org>2008-05-20 18:02:06 +0000
commit30474e48255eda4838f1dfceefdadca55190c9ae (patch)
tree26dc6185672a117a13c92531143116748bfb0060 /idl
parenta0595ae34b99408001897d7446d4b7b204c0b636 (diff)
INTEGRATION: CWS mba30patches01 (1.5.30); FILE MERGED
2008/04/23 09:45:07 mba 1.5.30.2: RESYNC: (1.5-1.6); FILE MERGED 2008/03/18 15:40:04 mba 1.5.30.1: #i86353#: remove unused code
Diffstat (limited to 'idl')
-rw-r--r--idl/source/cmptools/lex.cxx111
1 files changed, 1 insertions, 110 deletions
diff --git a/idl/source/cmptools/lex.cxx b/idl/source/cmptools/lex.cxx
index f5c52c26f29d..9b6f6d7a6723 100644
--- a/idl/source/cmptools/lex.cxx
+++ b/idl/source/cmptools/lex.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: lex.cxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
* This file is part of OpenOffice.org.
*
@@ -87,58 +87,6 @@ ByteString SvToken::GetTokenAsString() const
/*************************************************************************
|*
-|* SvToken::Print()
-|*
-|* Beschreibung
-|*
-*************************************************************************/
-ByteString SvToken::Print() const
-{
- ByteString aStr;
- aStr += "Line = ";
- aStr += ByteString::CreateFromInt64(nLine);
- aStr += ", Column = ";
- aStr += ByteString::CreateFromInt64(nColumn);
- aStr += ", ";
- switch( nType )
- {
- case SVTOKEN_EMPTY:
- aStr += "Empty";
- break;
- case SVTOKEN_COMMENT:
- aStr += "Comment = ";
- break;
- case SVTOKEN_INTEGER:
- aStr += "Integer = ";
- break;
- case SVTOKEN_STRING:
- aStr += "ByteString = ";
- break;
- case SVTOKEN_BOOL:
- aStr += "Bool = ";
- break;
- case SVTOKEN_IDENTIFIER:
- aStr += "Identifier = ";
- break;
- case SVTOKEN_CHAR:
- aStr += "char = ";
- break;
- case SVTOKEN_RTTIBASE:
- aStr += "SvRttiBase = ";
- break;
- case SVTOKEN_EOF:
- aStr += "end of file";
- break;
- case SVTOKEN_HASHID:
- break;
- }
- aStr += GetTokenAsString();
-
- return aStr;
-}
-
-/*************************************************************************
-|*
|* SvToken::SvToken()
|*
|* Beschreibung
@@ -262,29 +210,6 @@ SvTokenStream::~SvTokenStream()
}
/*************************************************************************
-|* SvTokenStream::GetHexValue()
-|*
-|* Beschreibung
-*************************************************************************/
-BOOL SvTokenStream::GetHexValue( const ByteString & rStr, BigInt * pValue )
-{
- short nLog = 16;
-
- *pValue = 0;
- char * pStr = (char *)rStr.GetBuffer();
- while( isxdigit( *pStr ) )
- {
- if( isdigit( *pStr ) )
- *pValue = *pValue * BigInt( nLog ) + BigInt(*pStr - '0');
- else
- *pValue = *pValue * BigInt( nLog ) + BigInt(toupper( *pStr ) - 'A' + 10 );
- pStr++;
- }
- return '\0' == *pStr;
-}
-
-
-/*************************************************************************
|* SvTokenStream::FillTokenList()
|*
|* Beschreibung
@@ -321,40 +246,6 @@ void SvTokenStream::FillTokenList()
}
/*************************************************************************
-|* SvTokenStream::Skip()
-|*
-|* Beschreibung
-*************************************************************************/
-BOOL SvTokenStream::Skip( char cStart, char cEnd, UINT32 * pBegin )
-{
- SvToken * pTok = GetToken_Next();
- while( !pTok->IsEof()
- && (!pTok->IsChar() || cStart != pTok->GetChar()) )
- pTok = GetToken_Next();
-
- if( pBegin )
- *pBegin = Tell() -1;
- UINT32 nContextCount = 1;
-
- while( !pTok->IsEof() && nContextCount != 0 )
- {
- pTok = GetToken_Next();
- if( pTok->IsChar() )
- {
- if( cEnd == pTok->GetChar() )
- nContextCount--;
- if( cStart == pTok->GetChar() )
- nContextCount++;
- }
- }
- pTok = GetToken();
- if( cEnd == '}' && pTok->IsChar() && pTok->GetChar() == ';' )
- // siehe aerger rsc, }; ausgemerzt
- pTok = GetToken_Next();
- return nContextCount == 0;
-}
-
-/*************************************************************************
|* SvTokenStrem::SetCharSet()
|*
|* Beschreibung