Libical API Documentation 4.0 STABLE VERSION [Visit the v3.0 documentation]
Loading...
Searching...
No Matches
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.
const char * vcardvalue_as_vcard_string (const vcardvalue *value)
char * vcardvalue_as_vcard_string_r (const vcardvalue *value)
vcardvaluevcardvalue_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)
vcardvaluevcardvalue_new (vcardvalue_kind kind)
vcardvaluevcardvalue_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.

Macro Definition Documentation

◆ MAX_INT_DIGITS

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

Definition at line 652 of file vcardvalue.c.

◆ TMP_BUF_SIZE

#define TMP_BUF_SIZE   1024

Definition at line 30 of file vcardvalue.c.

Function Documentation

◆ vcardstrarray_as_vcard_string_r()

char * vcardstrarray_as_vcard_string_r ( const vcardstrarray * array,
const char sep )

Definition at line 768 of file vcardvalue.c.

◆ vcardstructured_as_vcard_string_r()

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.

◆ vcardvalue_as_vcard_string()

const char * vcardvalue_as_vcard_string ( const vcardvalue * value)

Definition at line 862 of file vcardvalue.c.

◆ vcardvalue_as_vcard_string_r()

char * vcardvalue_as_vcard_string_r ( const vcardvalue * value)

Definition at line 871 of file vcardvalue.c.

◆ vcardvalue_clone()

vcardvalue * vcardvalue_clone ( const vcardvalue * old)

Definition at line 60 of file vcardvalue.c.

◆ vcardvalue_free()

void vcardvalue_free ( vcardvalue * v)

Definition at line 572 of file vcardvalue.c.

◆ vcardvalue_get_parent()

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.

◆ vcardvalue_is_valid()

bool vcardvalue_is_valid ( const vcardvalue * value)

Definition at line 628 of file vcardvalue.c.

◆ vcardvalue_isa()

vcardvalue_kind vcardvalue_isa ( const vcardvalue * value)

Definition at line 968 of file vcardvalue.c.

◆ vcardvalue_isa_value()

bool vcardvalue_isa_value ( void * value)

Definition at line 977 of file vcardvalue.c.

◆ vcardvalue_new()

vcardvalue * vcardvalue_new ( vcardvalue_kind kind)

Definition at line 55 of file vcardvalue.c.

◆ vcardvalue_new_from_string()

vcardvalue * vcardvalue_new_from_string ( vcardvalue_kind kind,
const char * str )

Definition at line 567 of file vcardvalue.c.

◆ vcardvalue_new_impl()

struct vcardvalue_impl * vcardvalue_new_impl ( vcardvalue_kind kind)

Definition at line 32 of file vcardvalue.c.

◆ vcardvalue_reset_kind()

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.

◆ vcardvalue_set_parent()

void vcardvalue_set_parent ( vcardvalue * value,
vcardproperty * property )

Sets the parent vcardproperty for the specified vcardvalue.

Definition at line 1017 of file vcardvalue.c.

◆ vcardvalue_strdup_and_dequote_text()

char * vcardvalue_strdup_and_dequote_text ( const char ** str,
const char * sep )

Definition at line 121 of file vcardvalue.c.