Libical API Documentation 4.0 UNRELEASED Go to the stable 3.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)
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.

Macro Definition Documentation

◆ MAX_INT_DIGITS

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

Definition at line 655 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 771 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 783 of file vcardvalue.c.

◆ vcardvalue_as_vcard_string()

const char * vcardvalue_as_vcard_string ( const vcardvalue * value)

Definition at line 865 of file vcardvalue.c.

◆ vcardvalue_as_vcard_string_r()

char * vcardvalue_as_vcard_string_r ( const vcardvalue * value)

Definition at line 874 of file vcardvalue.c.

◆ vcardvalue_clone()

vcardvalue * vcardvalue_clone ( const vcardvalue * old)

Definition at line 61 of file vcardvalue.c.

◆ vcardvalue_free()

void vcardvalue_free ( vcardvalue * v)

Definition at line 575 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 1028 of file vcardvalue.c.

◆ vcardvalue_is_valid()

bool vcardvalue_is_valid ( const vcardvalue * value)

Definition at line 631 of file vcardvalue.c.

◆ vcardvalue_isa()

vcardvalue_kind vcardvalue_isa ( const vcardvalue * value)

Definition at line 971 of file vcardvalue.c.

◆ vcardvalue_isa_value()

bool vcardvalue_isa_value ( void * value)

Definition at line 980 of file vcardvalue.c.

◆ vcardvalue_new()

vcardvalue * vcardvalue_new ( vcardvalue_kind kind)

Definition at line 56 of file vcardvalue.c.

◆ vcardvalue_new_from_string()

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

Definition at line 570 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 997 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 1021 of file vcardvalue.c.

◆ vcardvalue_strdup_and_dequote_text()

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

Definition at line 124 of file vcardvalue.c.