From eb2f9fd83ef05c4fbba43d8645cd865907ae4351 Mon Sep 17 00:00:00 2001 From: "rickg%netscape.com" Date: Mon, 26 Jul 1999 00:24:02 +0000 Subject: [PATCH] substitute calls to deprecated string API --- htmlparser/src/nsHTMLContentSinkStream.cpp | 2 +- htmlparser/src/nsXIFDTD.cpp | 4 ++-- parser/htmlparser/src/nsHTMLContentSinkStream.cpp | 2 +- parser/htmlparser/src/nsXIFDTD.cpp | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/htmlparser/src/nsHTMLContentSinkStream.cpp b/htmlparser/src/nsHTMLContentSinkStream.cpp index de3dc281ba9..acf74b62843 100644 --- a/htmlparser/src/nsHTMLContentSinkStream.cpp +++ b/htmlparser/src/nsHTMLContentSinkStream.cpp @@ -1068,7 +1068,7 @@ nsHTMLContentSinkStream::AddLeaf(const nsIParserNode& aNode){ if (start < 0) start = 0; - indx = str.Find(' ',start); + indx = str.FindChar(' ',PR_FALSE,start); // if there is no break than just add it if (indx == kNotFound) diff --git a/htmlparser/src/nsXIFDTD.cpp b/htmlparser/src/nsXIFDTD.cpp index f0ead9cf089..15b2e62cb1e 100644 --- a/htmlparser/src/nsXIFDTD.cpp +++ b/htmlparser/src/nsXIFDTD.cpp @@ -417,8 +417,8 @@ eAutoDetectResult nsXIFDTD::CanParse(nsString& aContentType, nsString& aCommand, offset = aBuffer.Find(kXIFCharset); if (kNotFound!=offset) { - PRInt32 start = aBuffer.Find('"',offset); - PRInt32 end = aBuffer.Find('"',start+1); + PRInt32 start = aBuffer.FindChar('"',PR_FALSE,offset); + PRInt32 end = aBuffer.FindChar('"',PR_FALSE,start+1); if ((start != kNotFound) && (end != kNotFound)) { diff --git a/parser/htmlparser/src/nsHTMLContentSinkStream.cpp b/parser/htmlparser/src/nsHTMLContentSinkStream.cpp index de3dc281ba9..acf74b62843 100644 --- a/parser/htmlparser/src/nsHTMLContentSinkStream.cpp +++ b/parser/htmlparser/src/nsHTMLContentSinkStream.cpp @@ -1068,7 +1068,7 @@ nsHTMLContentSinkStream::AddLeaf(const nsIParserNode& aNode){ if (start < 0) start = 0; - indx = str.Find(' ',start); + indx = str.FindChar(' ',PR_FALSE,start); // if there is no break than just add it if (indx == kNotFound) diff --git a/parser/htmlparser/src/nsXIFDTD.cpp b/parser/htmlparser/src/nsXIFDTD.cpp index f0ead9cf089..15b2e62cb1e 100644 --- a/parser/htmlparser/src/nsXIFDTD.cpp +++ b/parser/htmlparser/src/nsXIFDTD.cpp @@ -417,8 +417,8 @@ eAutoDetectResult nsXIFDTD::CanParse(nsString& aContentType, nsString& aCommand, offset = aBuffer.Find(kXIFCharset); if (kNotFound!=offset) { - PRInt32 start = aBuffer.Find('"',offset); - PRInt32 end = aBuffer.Find('"',start+1); + PRInt32 start = aBuffer.FindChar('"',PR_FALSE,offset); + PRInt32 end = aBuffer.FindChar('"',PR_FALSE,start+1); if ((start != kNotFound) && (end != kNotFound)) {