utils: add function to parse uris

By using a custom regular expression,
parse a uri or abort if it's invalid.
This commit is contained in:
Georges Basile Stavracas Neto
2015-05-25 12:35:28 -04:00
committed by Erick Pérez Castellanos
parent e7af463290
commit 01ac569a1a
2 changed files with 66 additions and 0 deletions
+5
View File
@@ -101,4 +101,9 @@ gsize e_utf8_strftime_fix_am_pm (gchar
void fix_popover_menu_icons (GtkPopover *popover);
gboolean uri_get_fields (const gchar *uri,
gchar **schema,
gchar **host,
gchar **path);
#endif // __GCAL_UTILS_H__