$darkmode
Libical API Documentation 4.0 STABLE VERSION Visit the v3.0 documentation
vcardvalue.c File Reference

Implements the data structure representing vCard values. More...

Go to the source code of this file.

Macros

#define MAX_INT_DIGITS   12 /* Enough for 2^32 + sign */
 
#define TMP_BUF_SIZE   1024
 

Functions

char * vcardstrarray_as_vcard_string_r (const vcardstrarray *array, const char sep)
 
char * vcardstructured_as_vcard_string_r (const vcardstructuredtype *st, bool is_param)
 Formats a vcardstructuredtype as a vCard property or parameter value. More...
 
const char * vcardvalue_as_vcard_string (const vcardvalue *value)
 
char * vcardvalue_as_vcard_string_r (const vcardvalue *value)
 
vcardvalue * vcardvalue_clone (const vcardvalue *old)
 
void vcardvalue_free (vcardvalue *v)
 
vcardproperty * vcardvalue_get_parent (const vcardvalue *value)
 
bool vcardvalue_is_valid (const vcardvalue *value)
 
vcardvalue_kind vcardvalue_isa (const vcardvalue *value)
 
bool vcardvalue_isa_value (void *value)
 
vcardvalue * vcardvalue_new (vcardvalue_kind kind)
 
vcardvalue * vcardvalue_new_from_string (vcardvalue_kind kind, const char *str)
 
struct vcardvalue_impl * vcardvalue_new_impl (vcardvalue_kind kind)
 
void vcardvalue_reset_kind (vcardvalue *value)
 
void vcardvalue_set_parent (vcardvalue *value, vcardproperty *property)
 
char * vcardvalue_strdup_and_dequote_text (const char **str, const char *sep)
 

Detailed Description

Implements the data structure representing vCard values.

Definition in file vcardvalue.c.

Function Documentation

char* vcardstructured_as_vcard_string_r ( const vcardstructuredtype st,
bool  is_param 
)

Formats a vcardstructuredtype as a vCard property or parameter value.

Parameters
stThe structured type object to format.
is_paramWhether the value is being formatted as a parameter value.
Returns
A newly allocated string representation, or NULL on error.
Ownership
The caller is responsible for freeing the returned string.

Definition at line 780 of file vcardvalue.c.

vcardproperty* vcardvalue_get_parent ( const vcardvalue *  value)

Returns the parent vcardproperty for the specified vcardvalue.

Since
3.0

Definition at line 1024 of file vcardvalue.c.

void vcardvalue_reset_kind ( vcardvalue *  value)

Examine the value and possibly change the kind to agree with the value

Definition at line 990 of file vcardvalue.c.

void vcardvalue_set_parent ( vcardvalue *  value,
vcardproperty *  property 
)

Sets the parent vcardproperty for the specified vcardvalue.

Definition at line 1017 of file vcardvalue.c.