nsAutoString		shortcut(aUserInput); shortcut.ToLowerCase();
nsBookmarksService::FindShortcut(const PRUnichar *aUserInput, char **aShortcutURL){	NS_PRECONDITION(aUserInput != nsnull, "null ptr");	if (! aUserInput)		return NS_ERROR_NULL_POINTER;	NS_PRECONDITION(aShortcutURL != nsnull, "null ptr");	if (! aShortcutURL)		return NS_ERROR_NULL_POINTER;	nsresult rv;	// shortcuts are always lowercased internally	nsAutoString		shortcut(aUserInput);	shortcut.ToLowerCase();	nsCOMPtr<nsIRDFLiteral> literalTarget;	rv = gRDF->GetLiteral(shortcut.GetUnicode(), getter_AddRefs(literalTarget));	if (NS_FAILED(rv)) return rv;	if (rv != NS_RDF_NO_VALUE)	{		nsCOMPtr<nsIRDFResource> source;		rv = GetSource(kNC_ShortcutURL, literalTarget,			       PR_TRUE, getter_AddRefs(source));		if (NS_FAILED(rv)) return rv;		if (rv != NS_RDF_NO_VALUE)		{			rv = source->GetValue(aShortcutURL);			if (NS_FAILED(rv)) return rv;			return NS_OK;		}	}	*aShortcutURL = nsnull;	return NS_RDF_NO_VALUE;}