pidgin: 0305c5b3: Treat digits and alphabets as the same c...
sadrul at pidgin.im
sadrul at pidgin.im
Sat May 24 19:05:42 EDT 2008
-----------------------------------------------------------------
Revision: 0305c5b3f3b71c3b449591e65dd47f2dae2d3922
Ancestor: a5650bdc48f5d651e2b4a8377faa14d47483e693
Author: sadrul at pidgin.im
Date: 2008-05-24T22:49:44
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/0305c5b3f3b71c3b449591e65dd47f2dae2d3922
Modified files:
finch/libgnt/gntentry.c
ChangeLog:
Treat digits and alphabets as the same class of characters when looking
for the beginning of a words. Also treat the all punctuation characters
as being of the same class.
-------------- next part --------------
============================================================
--- finch/libgnt/gntentry.c c1b92caf0d653e716b3042d6db232e564467cb97
+++ finch/libgnt/gntentry.c d10788925442d949ed37c71dcfe1ea114c70c0d1
@@ -551,10 +551,10 @@ del_to_end(GntBindable *bind, GList *nul
return TRUE;
}
-#define SAME(a,b) ((g_unichar_isalpha(a) && g_unichar_isalpha(b)) || \
- (g_unichar_isdigit(a) && g_unichar_isdigit(b)) || \
+#define SAME(a,b) ((g_unichar_isalnum(a) && g_unichar_isalnum(b)) || \
(g_unichar_isspace(a) && g_unichar_isspace(b)) || \
- (g_unichar_iswide(a) && g_unichar_iswide(b)))
+ (g_unichar_iswide(a) && g_unichar_iswide(b)) || \
+ (g_unichar_ispunct(a) && g_unichar_ispunct(b)))
static const char *
begin_word(const char *text, const char *begin)
More information about the Commits
mailing list