fixed a wad of little bugs and added regression test

git-svn-id: svn://10.0.0.236/trunk@20772 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-02-16 07:38:27 +00:00
parent 334907990d
commit d444ccf989
40 changed files with 486 additions and 184 deletions

View File

@@ -119,7 +119,8 @@ void nsScanner::InitUnicodeDecoder()
nsAutoString defaultCharset("ISO-8859-1");
SetDocumentCharset(defaultCharset);
}
nsresult nsScanner::SetDocumentCharset(nsString& aCharset )
nsresult nsScanner::SetDocumentCharset(const nsString& aCharset )
{
nsresult res = NS_OK;
if(! mCharset.EqualsIgnoreCase(aCharset)) // see do we need to change a converter.
@@ -372,7 +373,7 @@ nsresult nsScanner::PutBack(PRUnichar aChar) {
* @return error status
*/
nsresult nsScanner::SkipWhitespace(void) {
static nsAutoString chars(" \n\r\t");
static nsAutoString chars(" \n\r\t\b");
return SkipOver(chars);
}