summaryrefslogtreecommitdiff
path: root/src/bin/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/utils.c')
-rw-r--r--src/bin/utils.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bin/utils.c b/src/bin/utils.c
index 136a664..601931a 100644
--- a/src/bin/utils.c
+++ b/src/bin/utils.c
@@ -50,3 +50,15 @@ theme_auto_reload_enable(Evas_Object *edje)
50 edje_object_signal_callback_add 50 edje_object_signal_callback_add
51 (edje, "edje,change,file", "edje", theme_reload_cb, NULL); 51 (edje, "edje,change,file", "edje", theme_reload_cb, NULL);
52} 52}
53
54Eina_Bool
55link_is_url(const char *str)
56{
57 if ((!strncasecmp(str, "http://", 7))||
58 (!strncasecmp(str, "https://", 8)) ||
59 (!strncasecmp(str, "ftp://", 6)) ||
60 (!strncasecmp(str, "www.", 4)) ||
61 (!strncasecmp(str, "ftp.", 4)))
62 return EINA_TRUE;
63 return EINA_FALSE;
64}