| Top |
| CamelNamedFlags * | camel_named_flags_new () |
| CamelNamedFlags * | camel_named_flags_new_sized () |
| CamelNamedFlags * | camel_named_flags_copy () |
|
|
camel_named_flags_free () |
|
|
camel_named_flags_insert () |
|
|
camel_named_flags_remove () |
|
|
camel_named_flags_contains () |
|
|
camel_named_flags_clear () |
|
|
camel_named_flags_get_length () |
| const |
camel_named_flags_get () |
|
|
camel_named_flags_equal () |
CamelNamedFlags *
camel_named_flags_new (void);
Creates a new CamelNamedFlags.
A newly allocated CamelNamedFlags.
Free it with camel_named_flags_free() when done with it.
[transfer full]
Since: 3.24
CamelNamedFlags *
camel_named_flags_new_sized (guint reserve_size);
Created a new CamelNamedFlags, which has reserved reserve_size
elements. This value doesn't influence the camel_named_flags_get_length(),
which returns zero on the array returned from this function.
A newly allocated CamelNameValueArray.
Free it with camel_named_flags_free() when done with it.
See: camel_name_value_array_new, camel_name_value_array_copy.
[transfer full]
Since: 3.24
CamelNamedFlags *
camel_named_flags_copy (const CamelNamedFlags *named_flags);
Creates a copy of the named_flags
and returns it.
A newly allocated CamelNamedFlags.
Free it with camel_named_flags_free() when done with it.
[transfer full]
Since: 3.24
void camel_named_flags_free (CamelNamedFlags *named_flags);
Frees memory associated iwth the named_flags
. Does nothing,
if named_flags
is NULL
Since: 3.24
gboolean camel_named_flags_insert (CamelNamedFlags *named_flags,const);gchar *name
Inserts a flag named name
into the named_flags
, if it is not included
already (comparing case sensitively), or does nothing otherwise.
Since: 3.24
gboolean camel_named_flags_remove (CamelNamedFlags *named_flags,const);gchar *name
Removes a flag named name
from the named_flags
.
TRUEnamed_flags
contained a flag named name
,
comparing case sensitively, and it was removed; FALSE
Since: 3.24
gboolean camel_named_flags_contains (const CamelNamedFlags *named_flags,const);gchar *name
Since: 3.24
void camel_named_flags_clear (CamelNamedFlags *named_flags);
Removes all the elements of the array.
Since: 3.24
guint camel_named_flags_get_length (const CamelNamedFlags *named_flags);
Since: 3.24
constgchar * camel_named_flags_get (const CamelNamedFlags *named_flags,);guint index
Since: 3.24
gboolean camel_named_flags_equal (const CamelNamedFlags *named_flags_a,const CamelNamedFlags *named_flags_b);
Compares content of the two CamelNamedFlags and returns whether they equal. Note this is an expensive operation for large sets.
named_flags_a |
the first CamelNamedFlags. |
[nullable] |
named_flags_b |
the second CamelNamedFlags. |
[nullable] |
Since: 3.24