Make this a namespace

remotes/origin/epub-qtextdoc
Albert Astals Cid 13 years ago
parent 1121cff1b8
commit 88afb3bf67
  1. 7
      ui/url_utils.h

@ -1,7 +1,8 @@
#include <QRegExp> #include <QRegExp>
class UrlUtils {
public: namespace UrlUtils
static QString getUrl( QString txt ) {
QString getUrl( QString txt )
{ {
// match the url // match the url
QRegExp reg( QString( "\\b((https?|ftp)://(www\\d{0,3}[.])?[\\S]+)|((www\\d{0,3}[.])[\\S]+)" ) ); QRegExp reg( QString( "\\b((https?|ftp)://(www\\d{0,3}[.])?[\\S]+)|((www\\d{0,3}[.])[\\S]+)" ) );

Loading…
Cancel
Save