Creates a new #ICalValue with specific kind.
Deeply clone a #ICalValue.
Creates a new #ICalValue based on the #ICalValueKind and a string.
Frees a #ICalValue.
Checks if #ICalValue is valid.
Converts the #ICalValue to a string.
Gets the kind of #ICalValue.
Checks whether the native part of #ICalValue is an icalvalue.
Compares two #ICalValue.
Converts a string to #ICalValueKind.
Converts the #ICalValueKind to a string.
Checks whether the #ICalValueKind is valid.
Encodes a character string in ical format, escape certain characters, etc.
gchar *szEncText;
gchar *buffer = NULL;
gsize bufSize;
gint result;
g_return_val_if_fail(szText != NULL, NULL);
bufSize = 2 * strlen(szText) + 1;
szEncText = g_new0(gchar, bufSize);
result = icalvalue_encode_ical_string(szText, szEncText, bufSize);
if (result)
buffer = g_strdup(szEncText);
g_free(szEncText);
return buffer;
Extracts the original character string encoded by the above function.
gchar *szDecText;
gchar *buffer = NULL;
gsize bufSize;
gint result;
g_return_val_if_fail (szText != NULL, NULL);
bufSize = strlen(szText) + 1;
szDecText = g_new0(gchar, bufSize);
result = icalvalue_decode_ical_string(szText, szDecText, bufSize);
if (result)
buffer = g_strdup(szDecText);
g_free (szDecText);
return buffer;