Changes to parser to allow less copying. Use of the new nsSliding[Sub]String classes so that tokens can hold substrings that keep references into the scanner buffer. Cleaned up token interface and general string usage. r=harishd,heikki sr=jst

This commit is contained in:
vidur@netscape.com
2000-12-12 21:58:14 +00:00
parent 52388e901a
commit 5d0ca658ca
129 changed files with 5425 additions and 3603 deletions

View File

@@ -226,9 +226,8 @@ NS_IMETHODIMP RobotSink::OpenContainer(const nsIParserNode& aNode)
PRInt32 ac = aNode.GetAttributeCount();
for (PRInt32 i = 0; i < ac; i++) {
// Get upper-cased key
const nsString& key = aNode.GetKeyAt(i);
k.Truncate();
k.Append(key);
const nsAReadableString& key = aNode.GetKeyAt(i);
k.Assign(key);
k.ToLowerCase();
if (k.EqualsWithConversion("href")) {
// Get value and remove mandatory quotes