summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2003-04-23 15:57:09 +0000
committerRüdiger Timm <rt@openoffice.org>2003-04-23 15:57:09 +0000
commitca35d65a9facb2a7719ceaff482cb1532c161172 (patch)
tree2d5d861f145c776f9a48805d94b297d24cd8bc74 /basic
parent306bfa572c7911879c2fc6dbfdff0f8b43495825 (diff)
INTEGRATION: CWS uno2 (1.7.6); FILE MERGED
2003/04/11 14:20:45 ab 1.7.6.1: #108672# Basic Modules > 64K
Diffstat (limited to 'basic')
-rw-r--r--basic/source/comp/scanner.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/basic/source/comp/scanner.cxx b/basic/source/comp/scanner.cxx
index 61cd7b21cab7..873929c001ea 100644
--- a/basic/source/comp/scanner.cxx
+++ b/basic/source/comp/scanner.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: scanner.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: hr $ $Date: 2003-03-18 16:28:35 $
+ * last change: $Author: rt $ $Date: 2003-04-23 16:57:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -75,7 +75,7 @@
#endif
-SbiScanner::SbiScanner( const String& rBuf, StarBASIC* p ) : aBuf( rBuf )
+SbiScanner::SbiScanner( const ::rtl::OUString& rBuf, StarBASIC* p ) : aBuf( rBuf )
{
pBasic = p;
pLine = NULL;
@@ -199,20 +199,20 @@ BOOL SbiScanner::NextSym()
if( !pLine )
{
USHORT n = nBufPos;
- USHORT nLen = aBuf.Len();
+ USHORT nLen = aBuf.getLength();
if( nBufPos >= nLen )
return FALSE;
- const sal_Unicode* p = aBuf.GetBuffer();
+ const sal_Unicode* p = aBuf.getStr();
p += n;
while( ( n < nLen ) && ( *p != '\n' ) && ( *p != '\r' ) )
p++, n++;
- aLine = aBuf.Copy( nBufPos, n - nBufPos );
+ aLine = aBuf.copy( nBufPos, n - nBufPos );
if( ( n < nLen ) && *p == '\r' && *( p+1 ) == '\n' )
n += 2;
else
n++;
nBufPos = n;
- pLine = aLine.GetBuffer();
+ pLine = aLine.getStr();
nOldLine = ++nLine;
nCol = nCol1 = nCol2 = nOldCol1 = nOldCol2 = 0;
nColLock = 0;
@@ -240,7 +240,7 @@ BOOL SbiScanner::NextSym()
short n = nCol;
for ( ; (BasicSimpleCharClass::isAlphaNumeric( *pLine & 0xFF ) || ( *pLine == '_' ) ); pLine++ )
nCol++;
- aSym = aLine.Copy( n, nCol - n );
+ aSym = aLine.copy( n, nCol - n );
// Abschliessendes '_' durch Space ersetzen, wenn Zeilenende folgt
// (sonst falsche Zeilenfortsetzung)
if( !bUsedForHilite && !*pLine && *(pLine-1) == '_' )
@@ -427,7 +427,7 @@ BOOL SbiScanner::NextSym()
if( *pLine != cSep || cSep == ']' ) break;
} else aError = cSep, GenError( SbERR_EXPECTED );
}
- aSym = aLine.Copy( n, nCol - n - 1 );
+ aSym = aLine.copy( n, nCol - n - 1 );
// Doppelte Stringbegrenzer raus
String s( cSep );
s += cSep;
@@ -454,7 +454,7 @@ BOOL SbiScanner::NextSym()
case '>': if( *pLine == '=' ) n = 2; break;
case ':': if( *pLine == '=' ) n = 2; break;
}
- aSym = aLine.Copy( nCol, n );
+ aSym = aLine.copy( nCol, n );
pLine += n-1; nCol += n;
}