if (PL_strcasecmp (VCLastRevisedProp, vObjectName(o)) == 0) {
if (nsCRT::strcasecmp (VCLastRevisedProp, vObjectName(o)) == 0) {
static int WriteOutEachVCardProperty (MimeObject *obj, VObject* o, int* numEmail){	char *attribName = NULL;	char * url = NULL;	char *value = NULL;	int status = 0;	if (vObjectName(o)) {		if (PL_strcasecmp (VCPhotoProp, vObjectName(o)) == 0) {			VObject* urlProp = isAPropertyOf(o, VCURLProp);			if (urlProp) {				attribName = VCardGetStringByID(VCARD_LDAP_PHOTOGRAPH);				/* format the value string to the url */				value = fakeCString (vObjectUStringZValue(o));				if (value)					url = PR_smprintf ("<IMG SRC = ""%s""", value);				PR_FREEIF (value);				value = NULL;				goto DOWRITE;			}		}		if (PL_strcasecmp (VCBirthDateProp, vObjectName(o)) == 0) {			if (VALUE_TYPE(o)) {				attribName = VCardGetStringByID(VCARD_LDAP_BIRTHDAY);				value = fakeCString (vObjectUStringZValue(o));				goto DOWRITE;			}		}		if (PL_strcasecmp (VCDeliveryLabelProp, vObjectName(o)) == 0) {			attribName = VCardGetStringByID(VCARD_LDAP_LABEL);			GetAddressProperties(o, &attribName);			value = fakeCString (vObjectUStringZValue(o));			goto DOWRITE;		}		if (PL_strcasecmp (VCEmailAddressProp, vObjectName(o)) == 0) {			if ((*numEmail) != 1)			{				if (VALUE_TYPE(o)) {					(*numEmail)++;					attribName = VCardGetStringByID(VCARD_LDAP_EMAIL_ADDRESS);					GetEmailProperties(o, &attribName);					value = fakeCString (vObjectUStringZValue(o));					goto DOWRITE;				};			}		}		if (PL_strcasecmp (VCFamilyNameProp, vObjectName(o)) == 0) {			if (VALUE_TYPE(o)) {				attribName = VCardGetStringByID(VCARD_LDAP_SURNAME);				value = fakeCString (vObjectUStringZValue(o));				goto DOWRITE;			}		}		if (PL_strcasecmp (VCGivenNameProp, vObjectName(o)) == 0) {			if (VALUE_TYPE(o)) {				attribName = VCardGetStringByID(VCARD_LDAP_GIVEN_NAME);				value = fakeCString (vObjectUStringZValue(o));				goto DOWRITE;			}		}		if (PL_strcasecmp (VCNamePrefixesProp, vObjectName(o)) == 0) {			if (VALUE_TYPE(o)) {				attribName = VCardGetStringByID(VCARD_LDAP_NAME_PREFIX);				value = fakeCString (vObjectUStringZValue(o));				goto DOWRITE;			}		}		if (PL_strcasecmp (VCNameSuffixesProp, vObjectName(o)) == 0) {			if (VALUE_TYPE(o)) {				attribName = VCardGetStringByID(VCARD_LDAP_NAME_SUFFIX);				value = fakeCString (vObjectUStringZValue(o));				goto DOWRITE;			}		}		if (PL_strcasecmp (VCAdditionalNamesProp, vObjectName(o)) == 0) {			if (VALUE_TYPE(o)) {				attribName = VCardGetStringByID(VCARD_LDAP_MIDDLE_NAME);				value = fakeCString (vObjectUStringZValue(o));				goto DOWRITE;			}		}		if (PL_strcasecmp (VCMailerProp, vObjectName(o)) == 0) {			if (VALUE_TYPE(o)) {				attribName = VCardGetStringByID(VCARD_LDAP_MAILER);				value = fakeCString (vObjectUStringZValue(o));				goto DOWRITE;			}		}		if (PL_strcasecmp (VCTimeZoneProp, vObjectName(o)) == 0) {			if (VALUE_TYPE(o)) {				attribName = VCardGetStringByID(VCARD_LDAP_TZ);				value = fakeCString (vObjectUStringZValue(o));				goto DOWRITE;			}		}		if (PL_strcasecmp (VCGeoProp, vObjectName(o)) == 0) {			if (VALUE_TYPE(o)) {				attribName = VCardGetStringByID(VCARD_LDAP_GEO);				value = fakeCString (vObjectUStringZValue(o));				goto DOWRITE;			}		}		if (PL_strcasecmp (VCBusinessRoleProp, vObjectName(o)) == 0) {			if (VALUE_TYPE(o)) {				attribName = VCardGetStringByID(VCARD_LDAP_ROLE);				value = fakeCString (vObjectUStringZValue(o));				goto DOWRITE;			}		}		if (PL_strcasecmp (VCLogoProp, vObjectName(o)) == 0) {			VObject* urlProp = isAPropertyOf(o, VCURLProp);			if (urlProp) {				attribName = VCardGetStringByID(VCARD_LDAP_LOGO);				/* format the value string to the url */				value = fakeCString (vObjectUStringZValue(o));				if (value)					url = PR_smprintf ("<IMG SRC = ""%s""", value);				PR_FREEIF (value);				goto DOWRITE;			}		}		if (PL_strcasecmp (VCAgentProp, vObjectName(o)) == 0) {			attribName = VCardGetStringByID(VCARD_LDAP_SECRETARY);			goto DOWRITE;		}		if (PL_strcasecmp (VCLastRevisedProp, vObjectName(o)) == 0) {			if (VALUE_TYPE(o)) {				attribName = VCardGetStringByID(VCARD_LDAP_REVISION);				value = fakeCString (vObjectUStringZValue(o));				goto DOWRITE;			}		}		if (PL_strcasecmp (VCPronunciationProp, vObjectName(o)) == 0) {			if (VALUE_TYPE(o)) {				attribName = VCardGetStringByID(VCARD_LDAP_SOUND);				value = fakeCString (vObjectUStringZValue(o));				goto DOWRITE;			}		}		if (PL_strcasecmp (VCVersionProp, vObjectName(o)) == 0) {			if (VALUE_TYPE(o)) {				attribName = VCardGetStringByID(VCARD_LDAP_VERSION);				value = fakeCString (vObjectUStringZValue(o));				goto DOWRITE;			}		}		if (!attribName) 			return 0;		DOWRITE:		OutputTableRowOrData(obj, PR_TRUE, PR_FALSE, "LEFT", "TOP", NULL, NULL);		OutputTableRowOrData (obj, PR_FALSE, PR_FALSE, "LEFT", "TOP", NULL, NULL);		if (attribName) { 			OutputTableRowOrData (obj, PR_FALSE, PR_FALSE, "LEFT", "TOP", NULL, NULL);			status = WriteAttribute (obj, attribName);			PR_Free (attribName);			OutputTableRowOrData (obj, PR_FALSE, PR_TRUE, NULL, NULL, NULL, NULL);		}		if (value) {			OutputTableRowOrData (obj, PR_FALSE, PR_FALSE, "LEFT", "TOP", NULL, NULL);			status = WriteValue (obj, value);			PR_Free (value);			OutputTableRowOrData (obj, PR_FALSE, PR_TRUE, NULL, NULL, NULL, NULL);		}		if (url) {			OutputTableRowOrData (obj, PR_FALSE, PR_FALSE, "LEFT", "TOP", NULL, NULL);			status = WriteValue (obj, url);			PR_Free (url);			OutputTableRowOrData (obj, PR_FALSE, PR_TRUE, NULL, NULL, NULL, NULL);		}		OutputTableRowOrData(obj, PR_TRUE, PR_TRUE, NULL, NULL, NULL, NULL);	}	if (status < 0) return status;	return 0;}