if (mLine.Length() > 0 && mLine.Find("groupOfNames") == -1)
if (mLine.Length() > 0 && mLine.Find("groupOfNames") == kNotFound)
nsresult AddressBookParser::ParseLDIFFile(){    char buf[1024];	char* pBuf = &buf[0];	PRInt32 startPos = 0;    PRInt32 len = 0;	PRBool bEof = PR_FALSE;	nsVoidArray listPosArray;	PRInt32 savedStartPos = 0;	PRInt32 filePos = 0;	while (NS_SUCCEEDED(mFileSpec->Eof(&bEof)) && !bEof)	{		if (NS_SUCCEEDED(mFileSpec->Read(&pBuf, (PRInt32)sizeof(buf), &len)) && len > 0)		{			startPos = 0;			while (NS_SUCCEEDED(GetLdifStringRecord(buf, len, &startPos)))			{				if (mLine.Find("groupOfNames") == -1)					AddLdifRowToDatabase(PR_FALSE);				else				{					//keep file position for mailing list					listPosArray.AppendElement((void*)savedStartPos);					if (mLine.Length() > 0)						mLine.Truncate();				}				savedStartPos = filePos + startPos;			}			filePos += len;		}	}	//last row	if (mLine.Length() > 0 && mLine.Find("groupOfNames") == -1)		AddLdifRowToDatabase(PR_FALSE); 	// mail Lists    PRInt32 i;	PRInt32 listTotal = listPosArray.Count();	for (i = 0; i < listTotal; i++)	{		PRInt32 pos = NS_PTR_TO_INT32(listPosArray.ElementAt(i));		if (NS_SUCCEEDED(mFileSpec->Seek(pos)))		{			if (NS_SUCCEEDED(mFileSpec->Read(&pBuf, (PRInt32)sizeof(buf), &len)) && len > 0)			{				startPos = 0;				while (NS_SUCCEEDED(GetLdifStringRecord(buf, len, &startPos)))				{					if (mLine.Find("groupOfNames") != -1)					{						AddLdifRowToDatabase(PR_TRUE);						if (NS_SUCCEEDED(mFileSpec->Seek(0)))							break;					}				}			}		}	}	return NS_OK;}