has_type


Description:

public bool has_type (string typestr)

Checks if this has an VCardAttributeParam with name EVC_TYPE and typestr as one of its values.

For example, for the vCard attribute:

TEL;TYPE=WORK,VOICE:(111) 555-1212

the following holds true:

g_assert_true (e_vcard_attribute_has_type (attr, "WORK") == TRUE);
g_assert_true (e_vcard_attribute_has_type (attr, "voice") == TRUE);
g_assert_true (e_vcard_attribute_has_type (attr, "HOME") == FALSE);

Comparisons against typestr are case-insensitive.

Parameters:

this

an VCardAttribute

typestr

a string representing the type

Returns:

true if such a parameter exists, false otherwise.