substitute calls to deprecated string API

This commit is contained in:
rickg%netscape.com 1999-07-26 00:24:02 +00:00
parent e56aff5e4a
commit cf36fcda1a
4 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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))
{

View File

@ -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)

View File

@ -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))
{