switching to faster string APIs

This commit is contained in:
rickg@netscape.com
1999-07-19 03:09:16 +00:00
parent bc14fcb2e8
commit da8cf67c82
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);