nsBookmarksService::IsBookmarked(const char *aURI, PRBool *isBookmarkedFlag)
nsBookmarksService::IsBookmarked(const char* aURL, PRBool* aIsBookmarked)
nsBookmarksService::IsBookmarked(const char *aURI, PRBool *isBookmarkedFlag){	if (!aURI)		return(NS_ERROR_UNEXPECTED);	if (!isBookmarkedFlag)	return(NS_ERROR_UNEXPECTED);	if (!mInner)		return(NS_ERROR_UNEXPECTED);	*isBookmarkedFlag = PR_FALSE;	nsresult			rv;	nsCOMPtr<nsIRDFResource>	bookmark;	// check if it has the proper type	if (NS_FAILED(rv = gRDF->GetResource(aURI, getter_AddRefs(bookmark))))		return(rv);	// make sure it is referred to by an ordinal (i.e. is contained in a rdf seq)	nsCOMPtr<nsISimpleEnumerator>	enumerator;	if (NS_FAILED(rv = mInner->ArcLabelsIn(bookmark, getter_AddRefs(enumerator))))		return(rv);			PRBool	more = PR_TRUE;	while(NS_SUCCEEDED(rv = enumerator->HasMoreElements(&more))		&& (more == PR_TRUE))	{		nsCOMPtr<nsISupports>		isupports;		if (NS_FAILED(rv = enumerator->GetNext(getter_AddRefs(isupports))))			break;		nsCOMPtr<nsIRDFResource>	property = do_QueryInterface(isupports);		if (!property)	continue;		PRBool	flag = PR_FALSE;		if (NS_FAILED(rv = gRDFC->IsOrdinalProperty(property, &flag)))	continue;		if (flag == PR_TRUE)		{			*isBookmarkedFlag = PR_TRUE;			break;		}	}	return(rv);}