}
stopped = false;
- word = removeAccents(word);
if(word.indexOf("*")==-1)
word+="%";
+ qDebug() << word;
word = word.replace("*", "%");
+ qDebug() << word;
+ word = removeAccents(word);
+ qDebug() << word;
QSqlQuery cur(db);
cur.prepare("select word from dict where word like ? limit ?");
for(int i=0; i<normalized.size(); i++) {
if( !normalized[i].isLetterOrNumber() &&
!normalized[i].isSpace() &&
- !normalized[i].isDigit()) {
+ !normalized[i].isDigit() &&
+ normalized[i] != '*' &&
+ normalized[i] != '%') {
normalized.remove(i,1);
}
}