back out my accidental checkin

git-svn-id: svn://10.0.0.236/trunk@113018 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
alecf%netscape.com
2002-01-28 02:47:30 +00:00
parent b55ba3f3bb
commit 9416759610
2 changed files with 10 additions and 10 deletions

View File

@@ -756,7 +756,7 @@ static PRBool ParseDocTypeDecl(const nsString &aBuffer,
// The PI-skipping is a bit of a hack.
PRInt32 theIndex = 0;
do {
theIndex = aBuffer.FindChar('<', theIndex);
theIndex = aBuffer.FindChar('<', PR_FALSE, theIndex, -1);
if (theIndex == kNotFound) break;
PRUnichar nextChar = aBuffer.CharAt(theIndex+1);
if (nextChar == PRUnichar('!')) {
@@ -769,9 +769,9 @@ static PRBool ParseDocTypeDecl(const nsString &aBuffer,
}
theIndex = ParsePS(aBuffer,tmpIndex);
// -1, not 0, in case it's another markup declaration
theIndex = aBuffer.FindChar('>', theIndex);
theIndex = aBuffer.FindChar('>', PR_FALSE, theIndex, -1);
} else if (nextChar == PRUnichar('?')) {
theIndex = aBuffer.FindChar('>', theIndex);
theIndex = aBuffer.FindChar('>', PR_FALSE, theIndex, -1);
} else {
break;
}
@@ -806,7 +806,7 @@ static PRBool ParseDocTypeDecl(const nsString &aBuffer,
PRInt32 PublicIDStart = theIndex + 1;
PRInt32 PublicIDEnd =
aBuffer.FindChar(lit, PublicIDStart);
aBuffer.FindChar(lit, PR_FALSE, PublicIDStart, -1);
if (kNotFound == PublicIDEnd)
return PR_FALSE;
theIndex = ParsePS(aBuffer, PublicIDEnd + 1);
@@ -823,7 +823,7 @@ static PRBool ParseDocTypeDecl(const nsString &aBuffer,
*aResultFlags |= PARSE_DTD_HAVE_SYSTEM_ID;
PRInt32 SystemIDStart = theIndex + 1;
PRInt32 SystemIDEnd =
aBuffer.FindChar(next, SystemIDStart);
aBuffer.FindChar(next, PR_FALSE, SystemIDStart, -1);
if (kNotFound == SystemIDEnd)
return PR_FALSE;
} else if (next == PRUnichar('[')) {

View File

@@ -756,7 +756,7 @@ static PRBool ParseDocTypeDecl(const nsString &aBuffer,
// The PI-skipping is a bit of a hack.
PRInt32 theIndex = 0;
do {
theIndex = aBuffer.FindChar('<', theIndex);
theIndex = aBuffer.FindChar('<', PR_FALSE, theIndex, -1);
if (theIndex == kNotFound) break;
PRUnichar nextChar = aBuffer.CharAt(theIndex+1);
if (nextChar == PRUnichar('!')) {
@@ -769,9 +769,9 @@ static PRBool ParseDocTypeDecl(const nsString &aBuffer,
}
theIndex = ParsePS(aBuffer,tmpIndex);
// -1, not 0, in case it's another markup declaration
theIndex = aBuffer.FindChar('>', theIndex);
theIndex = aBuffer.FindChar('>', PR_FALSE, theIndex, -1);
} else if (nextChar == PRUnichar('?')) {
theIndex = aBuffer.FindChar('>', theIndex);
theIndex = aBuffer.FindChar('>', PR_FALSE, theIndex, -1);
} else {
break;
}
@@ -806,7 +806,7 @@ static PRBool ParseDocTypeDecl(const nsString &aBuffer,
PRInt32 PublicIDStart = theIndex + 1;
PRInt32 PublicIDEnd =
aBuffer.FindChar(lit, PublicIDStart);
aBuffer.FindChar(lit, PR_FALSE, PublicIDStart, -1);
if (kNotFound == PublicIDEnd)
return PR_FALSE;
theIndex = ParsePS(aBuffer, PublicIDEnd + 1);
@@ -823,7 +823,7 @@ static PRBool ParseDocTypeDecl(const nsString &aBuffer,
*aResultFlags |= PARSE_DTD_HAVE_SYSTEM_ID;
PRInt32 SystemIDStart = theIndex + 1;
PRInt32 SystemIDEnd =
aBuffer.FindChar(next, SystemIDStart);
aBuffer.FindChar(next, PR_FALSE, SystemIDStart, -1);
if (kNotFound == SystemIDEnd)
return PR_FALSE;
} else if (next == PRUnichar('[')) {