switching to faster string APIs

git-svn-id: svn://10.0.0.236/trunk@40069 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-07-19 03:09:16 +00:00
parent 75f39d3d2f
commit 94ea0e1b16
8 changed files with 42 additions and 24 deletions

View File

@@ -558,7 +558,7 @@ nsresult CTextToken::ConsumeUntil(PRUnichar aChar,PRBool aIgnoreComments,nsScann
result=aScanner.ReadUntil(temp,theTerminals,PR_TRUE,PR_FALSE);
}
temp.Right(theRight,termStrLen+10); //first, get a wad of chars from the temp string
rpos=theRight.RFind('<'); //now scan for the '<'
rpos=theRight.RFindChar('<'); //now scan for the '<'
if(-1<rpos)
rpos=theRight.RFind(aTerminalString,PR_TRUE);
done=PRBool(-1<rpos);