added new EnableParser() routine for kipp; WIP

This commit is contained in:
rickg@netscape.com
1998-09-02 07:12:49 +00:00
parent bf362db894
commit 62af559c04
6 changed files with 58 additions and 0 deletions
+15
View File
@@ -439,6 +439,20 @@ CParserContext* nsParser::PopContext() {
return oldContext;
}
/**
* Call this when you want control whether or not the parser will parse
* and tokenize input (TRUE), or whether it just caches input to be
* parsed later (FALSE).
*
* @update gess 9/1/98
* @param aState determines whether we parse/tokenize or just cache.
* @return current state
*/
PRBool nsParser::EnableParser(PRBool aState){
mParserEnabled=aState;
return mParserEnabled;
}
/**
* This is the main controlling routine in the parsing process.
@@ -529,6 +543,7 @@ PRInt32 nsParser::Parse(nsString& aSourceBuffer,PRBool anHTMLString,PRBool aVeri
return result;
}
/**
* This routine is called to cause the parser to continue
* parsing it's underling stream. This call allows the