Update of /cvsroot/mahogany/M/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30066/src/util
Modified Files:
matchurl.cpp
Log Message:
recognize other punctuation marks (and not only space) as end of word in normal text
too
Index: matchurl.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/util/matchurl.cpp,v
retrieving revision 1.37
retrieving revision 1.38
diff -b -u -2 -r1.37 -r1.38
--- matchurl.cpp 13 Sep 2004 22:13:04 -0000 1.37
+++ matchurl.cpp 16 Sep 2004 20:47:30 -0000 1.38
@@ -717,8 +717,8 @@
q++;
- if ( *q == _T(' ') )
+ if ( wxStrchr(_T(" .,:;"), *q) )
{
// looks like we've a word (i.e. sequence of letters terminated by
- // space) at the start of the next line
+ // space or punctuation) at the start of the next line
p -= 2;
break;
@@ -835,2 +835,10 @@
}
+extern
+int FindURL(const wxChar *s, int& len)
+{
+ static URLDetector s_detector;
+
+ return s_detector.FindURL(s, len);
+}
+
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates