logic: Fulltextsearch

* fulltextsearch enabled in sqlite
* fulltextsearch start search with @
* codeview performance improved
* strip sRGB profile from png files to get rid of libpng warning at runtime
This commit is contained in:
Andreas Stallinger
2016-05-10 11:10:13 +02:00
parent 30faa7e52f
commit e775ae1ecd
84 changed files with 455 additions and 111 deletions
+4
View File
@@ -10,6 +10,8 @@ int locationTypeToInt(LocationType type)
return 1;
case LOCATION_LOCAL_SYMBOL:
return 2;
case LOCATION_FULLTEXTSEARCH_MATCH:
return 3;
}
}
@@ -23,6 +25,8 @@ LocationType intToLocationType(int value)
return LOCATION_SCOPE;
case 2:
return LOCATION_LOCAL_SYMBOL;
case 3:
return LOCATION_FULLTEXTSEARCH_MATCH;
}
return LOCATION_TOKEN;
}
+2 -1
View File
@@ -5,7 +5,8 @@ enum LocationType
{
LOCATION_TOKEN,
LOCATION_SCOPE,
LOCATION_LOCAL_SYMBOL
LOCATION_LOCAL_SYMBOL,
LOCATION_FULLTEXTSEARCH_MATCH
};
int locationTypeToInt(LocationType type);
+5
View File
@@ -182,6 +182,11 @@ bool TokenLocation::isScopeTokenLocation() const
return m_type == LOCATION_SCOPE;
}
bool TokenLocation::isFullTextSearchMatch() const
{
return m_type == LOCATION_FULLTEXTSEARCH_MATCH;
}
std::ostream& operator<<(std::ostream& ostream, const TokenLocation& location)
{
if ((&location)->isStartTokenLocation())
+1
View File
@@ -50,6 +50,7 @@ public:
bool isEndTokenLocation() const;
bool isScopeTokenLocation() const;
bool isFullTextSearchMatch() const;
private:
const Id m_id; // own id