[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Soprano] ec07c98: Fix the fake boolean regexp. Now it works with * '
From:       Vishesh Handa <handa.vish () gmail ! com>
Date:       2010-11-24 20:15:36
Message-ID: 20101124201536.DA9A5A60A6 () git ! kde ! org
[Download RAW message or body]

commit ec07c98878cebcebf3f0da788edb88e4e1c99fa2
branch master
Author: Vishesh Handa <handa.vish@gmail.com>
Date:   Thu Nov 25 01:47:07 2010 +0530

    Fix the fake boolean regexp. Now it works with
    * 'true'
    * true
    * 'true'^^xsd:boolean
    * 'true'^^<http://www.w3.org/2001/XMLSchema#boolean>
    
    Before this it only used to work for the last 2.

diff --git a/backends/virtuoso/virtuosomodel_p.h \
b/backends/virtuoso/virtuosomodel_p.h index 57233b6..fefc8e5 100644
--- a/backends/virtuoso/virtuosomodel_p.h
+++ b/backends/virtuoso/virtuosomodel_p.h
@@ -40,7 +40,7 @@ namespace Soprano {
     public:
         VirtuosoModelPrivate()
             : connectionPool( 0 ),
-              m_fakeBooleanRegExp( \
QLatin1String("([\"'])(true|false)\\1\\^\\^(<http\\://www\\.w3\\.org/2001/XMLSchema#boolean>|\\w+\\:boolean)"),
 +              m_fakeBooleanRegExp( \
QLatin1String("([\"'])?(true|false)\\1?(\\^\\^(<http\\://www\\.w3\\.org/2001/XMLSchema#boolean>|\\w+\\:boolean))?"),
  Qt::CaseInsensitive,
                                    QRegExp::RegExp2 ),
               m_openIteratorMutex( QMutex::Recursive ) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic