diff options
author | Philipp Lohmann <pl@openoffice.org> | 2001-05-10 12:07:49 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2001-05-10 12:07:49 +0000 |
commit | 2f02e0b70843b881756aa2cc68c19e64b1bef777 (patch) | |
tree | 0d43e67e6c51b651202019e4d9660d0259a33077 /idlc/source/scanner.ll | |
parent | 2d04e77e8fbfe1d02ce8e095aa6639cedc8ae613 (diff) |
osl string api changes
Diffstat (limited to 'idlc/source/scanner.ll')
-rw-r--r-- | idlc/source/scanner.ll | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/idlc/source/scanner.ll b/idlc/source/scanner.ll index ece1216c69b8..2e968fe23c68 100644 --- a/idlc/source/scanner.ll +++ b/idlc/source/scanner.ll @@ -2,9 +2,9 @@ * * $RCSfile: scanner.ll,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: jsc $ $Date: 2001-03-27 10:53:19 $ + * last change: $Author: pl $ $Date: 2001-05-10 13:07:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -349,7 +349,7 @@ oneway return IDL_ONEWAY; } \:\: { yylval.strval = yytext; - return IDL_SCOPESEPERATOR; + return IDL_SCOPESEPARATOR; } "/*" { @@ -378,7 +378,10 @@ oneway return IDL_ONEWAY; <COMMENT>[*]+"/" { docu = docu.trim(); - idlc()->setLineNumber( beginLine + docu.getTokenCount('\n') - 1); + sal_Int32 nIndex = 0; + int count = 0; + do { docu.getToken( 0, '\n', nIndex ); count++; } while( nIndex != -1 ); + idlc()->setLineNumber( beginLine + count - 1); BEGIN( INITIAL ); } @@ -405,14 +408,20 @@ oneway return IDL_ONEWAY; <DOCU>"\n"[ \t]*"*/" { docu = docu.trim(); - idlc()->setLineNumber( beginLine + docu.getTokenCount('\n') - 1); + sal_Int32 nIndex = 0; + int count = 0; + do { docu.getToken( 0, '\n', nIndex ); count++; } while( nIndex != -1 ); + idlc()->setLineNumber( beginLine + count - 1); idlc()->setDocumentation(docu); BEGIN( INITIAL ); } <DOCU>"*/" { docu = docu.trim(); - idlc()->setLineNumber( beginLine + docu.getTokenCount('\n') - 1); + sal_Int32 nIndex = 0; + int count = 0; + do { docu.getToken( 0, '\n', nIndex ); count++; } while( nIndex != -1 ); + idlc()->setLineNumber( beginLine + count - 1); idlc()->setDocumentation(docu); BEGIN( INITIAL ); } |