mondo improvements to DTD

git-svn-id: svn://10.0.0.236/trunk@19137 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-02-01 04:24:37 +00:00
parent 3a39ddc0f6
commit 4b6b00ac86
18 changed files with 1620 additions and 1222 deletions

View File

@@ -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