| Top |
| GMimeDomainList * | g_mime_domain_list_new () |
| GMimeDomainList * | g_mime_domain_list_clone () |
| int | g_mime_domain_list_length () |
| void | g_mime_domain_list_clear () |
| int | g_mime_domain_list_add () |
| void | g_mime_domain_list_insert () |
| gboolean | g_mime_domain_list_remove () |
| gboolean | g_mime_domain_list_remove_at () |
| gboolean | g_mime_domain_list_contains () |
| int | g_mime_domain_list_index_of () |
| const char * | g_mime_domain_list_get_domain () |
| void | g_mime_domain_list_set_domain () |
| char * | g_mime_domain_list_to_string () |
| GMimeDomainList * | g_mime_domain_list_parse () |
void
g_mime_domain_list_clear (GMimeDomainList *list);
Removes all domains.
int g_mime_domain_list_add (GMimeDomainList *list,const char *domain);
Appends domain
without trimming it.
void g_mime_domain_list_insert (GMimeDomainList *list,int index,const char *domain);
Inserts domain
at index
without trimming it.
gboolean g_mime_domain_list_remove (GMimeDomainList *list,const char *domain);
Removes the first case-sensitive match.
gboolean g_mime_domain_list_remove_at (GMimeDomainList *list,int index);
gboolean g_mime_domain_list_contains (GMimeDomainList *list,const char *domain);
int g_mime_domain_list_index_of (GMimeDomainList *list,const char *domain);
const char * g_mime_domain_list_get_domain (GMimeDomainList *list,int index);
void g_mime_domain_list_set_domain (GMimeDomainList *list,int index,const char *domain);
Replaces an entry. Assigning the same value does not emit a change.
char * g_mime_domain_list_to_string (GMimeDomainList *list,GMimeFormatOptions *options,gboolean encode);
Empty and ASCII-linear-whitespace-only entries (SP, HTAB, CR and LF) are omitted. Other entries are preserved, prefixed with '@', and separated by commas.
list |
||
options |
formatting options. |
[nullable] |
encode |
whether to encode international domain names |
GMimeDomainList * g_mime_domain_list_parse (const char *str,gssize length,GError **error);
Parses a complete domain list, allowing comments and empty comma entries.
Unlike mailbox source-route syntax, str
must not include a trailing colon.
Explicitly bounded input need not be NUL-terminated but cannot contain
embedded NUL bytes.
str |
source-route text beginning with '@' |
|
length |
byte length, or -1 for a NUL-terminated string |
|
error |
return location for a GError. |
[nullable] |