Altered anonymous resources to be produced with a hash mark, so they look more like anchors.

This commit is contained in:
waterson%netscape.com 1999-01-26 01:23:55 +00:00
parent a807e42440
commit 8d4d9030f7

View File

@ -424,7 +424,7 @@ static PRUint32 gCounter = 0;
do {
nsAutoString s(aContextURI);
s.Append('$');
s.Append("#$");
s.Append(++gCounter, 10);
nsIRDFResource* resource;
@ -464,7 +464,7 @@ rdf_IsAnonymousResource(const nsString& aContextURI, nsIRDFResource* aResource)
uri.Cut(0, aContextURI.Length());
// Anonymous resources look like the regexp "\$[0-9]+"
if (uri[0] != '$')
if (uri[0] != '#' || uri[1] != '$')
return PR_FALSE;
for (PRInt32 i = uri.Length() - 1; i >= 1; --i) {