mondo improvements to DTD
git-svn-id: svn://10.0.0.236/trunk@19137 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -520,6 +520,21 @@ nsString& nsScanner::GetBuffer(void) {
|
||||
return mBuffer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Call this to copy bytes out of the scanner that have not yet been consumed
|
||||
* by the tokenization process.
|
||||
*
|
||||
* @update gess 5/12/98
|
||||
* @param aCopyBuffer is where the scanner buffer will be copied to
|
||||
* @return nada
|
||||
*/
|
||||
void nsScanner::CopyUnusedData(nsString& aCopyBuffer) {
|
||||
PRInt32 theLen=mBuffer.Length();
|
||||
if(0<theLen) {
|
||||
mBuffer.Right(aCopyBuffer,theLen-mOffset);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the name of the file that the scanner is reading from.
|
||||
* In some cases, it's just a given name, because the scanner isn't
|
||||
|
||||
Reference in New Issue
Block a user