Skip to content

Commit

Permalink
优化了搜索算法
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost-him committed Sep 8, 2024
1 parent 71621b3 commit 0fb485a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion controller/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ SettingWindowConfigure buildClassWithJson(const QJsonObject &json)

QString getProgramVersion()
{
return "ZeroLaunch 0.7.2";
return "ZeroLaunch 0.7.3";
}

QString getPinyinConfigPath()
Expand Down
1 change: 1 addition & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ int main(int argc, char *argv[])
trayIcon.setIcon(QIcon(":/icon/trayIcon.svg"));
trayIcon.setToolTip(getProgramVersion());
trayIcon.show();
//Database::getInstance().testCompareAlgorithm(L"ea");
return app.exec();
}
4 changes: 4 additions & 0 deletions model/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ std::wstring Database::getUppercaseLetters(const std::wstring &str)
if (iswupper(i)) {
result.push_back(i);
}
if (!isascii(i)) {
result.clear();
break;
}
}
return result;
}
Expand Down
1 change: 1 addition & 0 deletions model/database.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class Database

double calculateKMP(const std::wstring& compareName, const std::wstring& inputValue);


void debugProgramNode();

double getStableBias(const std::wstring& key);
Expand Down

0 comments on commit 0fb485a

Please sign in to comment.