X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-text-utils.h;h=d8963465149628e05f5ddc726615a17107388cb1;hb=97c853da8b407c1bfdc5c3295878b346929ecf91;hp=80e12a09144cbe5906245716a2d3a4dba066d019;hpb=ec47f9c9669fccab54927a49c3c0f4233df2f180;p=modest diff --git a/src/modest-text-utils.h b/src/modest-text-utils.h index 80e12a0..d896346 100644 --- a/src/modest-text-utils.h +++ b/src/modest-text-utils.h @@ -189,8 +189,11 @@ size_t modest_text_utils_strftime(char *s, size_t max, const char *fmt, time_t * ie. removes "<...>" and "(...)" parts * the change is in-place; removes leading/trailing whitespace * - * Returns: the new address. The string is *not* newly allocated. - * NULL in case of error + * Returns: the new address of the string; this new string + * is _NOT_ newly allocated, so should not be freed. (remember + * the old address of the parameter if that one needs to be freed) + * + * NULL in case of error or if address == NULL */ gchar* modest_text_utils_get_display_address (gchar *address); @@ -242,7 +245,7 @@ gchar* modest_text_utils_get_display_date (time_t date); * Returns: the newly allocated display string for the * size in bytes. must be freed. */ -gchar * modest_text_utils_get_display_size (guint size); +gchar * modest_text_utils_get_display_size (guint64 size); /** @@ -279,4 +282,17 @@ gboolean modest_text_utils_validate_recipient (const gchar *recipient); **/ GSList *modest_text_utils_split_addresses_list (const gchar *addresses); +/** + * modest_text_utils_get_addresses_indexes: + * @addresses: a string + * @start_indexes: a #GSList pointer + * @end_indexes: a #GSList pointer + * + * obtains two #GSList of @addresses with the range offsets of the addresses in + * the string + * + * Returns: a GSList of strings + **/ +void modest_text_utils_get_addresses_indexes (const gchar *addresses, GSList **start_indexes, GSList **end_indexes); + #endif /* __MODEST_TEXT_UTILS_H__ */