* WIP: mu-contacts; add the following: return timestamp callback and add regexp filtering capabilities

This commit is contained in:
Dirk-Jan C. Binnema
2011-03-03 21:22:11 +02:00
parent b9be7f210c
commit 6226754a25
5 changed files with 79 additions and 18 deletions

View File

@ -223,7 +223,7 @@ time_t mu_str_date_parse_hdwmy (const char* str);
*
* @param str a string with a size, such a "100", "100Kb", "1Mb"
*
* @return
* @return the corresponding time_t value (as a guint64)
*/
guint64 mu_str_size_parse_kmg (const char* str);
@ -250,6 +250,17 @@ const char* mu_str_fullpath_s (const char* path, const char* name);
char* mu_str_escape_c_literal (const gchar* str)
G_GNUC_WARN_UNUSED_RESULT;
/**
* macro to check whether the string is empty, ie. if it's NULL or
* it's length is 0
*
* @param S a string
*
* @return TRUE if the string is empty, FALSE otherwise
*/
#define mu_str_is_empty(S) ((!(S)||!(S)[0])?TRUE:FALSE)
G_END_DECLS
#endif /*__MU_STR_H__*/