short l1 = strlen(pattern); short l2 = strlen(uuid); if (l2 < l1) return false; return (XP_STRNCASECMP(pattern, uuid, l1)  == 0);
char* name = RDF_GetSlotValue(rdf, node, gCoreVocab->RDF_name, RDF_STRING_TYPE, false, true); XP_ASSERT( IsUTF8String(name)); if (name != NULL) return name; name = makeResourceName(node); XP_ASSERT( IsUTF8String(name)); return name;
PR_PUBLIC_API(PRBool)startsWith (const char* pattern, const char* uuid){  short l1 = strlen(pattern);  short l2 = strlen(uuid);  if (l2 < l1) return false;  return (XP_STRNCASECMP(pattern, uuid, l1)  == 0);}