diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-12-01 18:21:55 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-12-01 18:21:55 +0800 |
commit | bebba4972777e1dde7e7087cb27dc75b83a3c38a (patch) | |
tree | 5cfffa1424d24dbf711d577cf32fdefe2827a722 /libempathy/empathy-utils.h | |
parent | 60cdd53fa93638f37eb53139eae0d5d4e008880d (diff) | |
download | gsoc2013-empathy-bebba4972777e1dde7e7087cb27dc75b83a3c38a.tar gsoc2013-empathy-bebba4972777e1dde7e7087cb27dc75b83a3c38a.tar.gz gsoc2013-empathy-bebba4972777e1dde7e7087cb27dc75b83a3c38a.tar.bz2 gsoc2013-empathy-bebba4972777e1dde7e7087cb27dc75b83a3c38a.tar.lz gsoc2013-empathy-bebba4972777e1dde7e7087cb27dc75b83a3c38a.tar.xz gsoc2013-empathy-bebba4972777e1dde7e7087cb27dc75b83a3c38a.tar.zst gsoc2013-empathy-bebba4972777e1dde7e7087cb27dc75b83a3c38a.zip |
Use GRegex instead of custom code and use a new regex to detect URIs
svn path=/trunk/; revision=1932
Diffstat (limited to 'libempathy/empathy-utils.h')
-rw-r--r-- | libempathy/empathy-utils.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/libempathy/empathy-utils.h b/libempathy/empathy-utils.h index a320c6246..51ddd231f 100644 --- a/libempathy/empathy-utils.h +++ b/libempathy/empathy-utils.h @@ -37,30 +37,15 @@ #include "empathy-contact.h" -G_BEGIN_DECLS - #define EMPATHY_GET_PRIV(obj,type) ((type##Priv*) ((type*)obj)->priv) #define G_STR_EMPTY(x) ((x) == NULL || (x)[0] == '\0') -typedef enum { - EMPATHY_REGEX_AS_IS, - EMPATHY_REGEX_BROWSER, - EMPATHY_REGEX_APT, - EMPATHY_REGEX_EMAIL, - EMPATHY_REGEX_OTHER, - EMPATHY_REGEX_ALL, -} EmpathyRegExType; +G_BEGIN_DECLS -/* Regular expressions */ +/* Strings */ gchar * empathy_substring (const gchar *str, gint start, gint end); -gint empathy_regex_match (EmpathyRegExType type, - const gchar *msg, - GArray *start, - GArray *end); - -/* Strings */ gint empathy_strcasecmp (const gchar *s1, const gchar *s2); gint empathy_strncasecmp (const gchar *s1, |