Commit graph

94 commits

Author SHA1 Message Date
shenleban tongying 4452c06c3e Replace sptr with std::shared_ptr
* Make sptr an alias of std::shared_ptr
* Make old sptr's implicit conversion explict through std::make_shared
2022-11-28 22:54:31 -05:00
Xiao YiFang e3d904f8b8 Merge branch 'staged' of github.com:xiaoyifang/goldendict into staged 2022-11-12 09:22:06 +08:00
Xiao YiFang 1554d026c5 fix: crash on headword dialog lookup
when the headword count is too small ,the application will crash .
2022-11-12 09:16:10 +08:00
Xiao YiFang 083e7da81c remove useless code 2022-10-11 19:40:06 +08:00
Xiao YiFang 46b8969666 clean code: compile warning and remove commented code line 2022-10-07 16:48:16 +08:00
Xiao YiFang 4c8ec4e3f2 opt: improve headword dialog performance
especially when the dictionary has a very large collecton of headword.
include export function
2022-10-01 15:33:23 +08:00
xiaoyifang ab9297c8a5
opt: refactor the homebrew macos action (#140) 2022-09-08 21:46:17 +08:00
Xiao YiFang f0e3c38970 github:add macos homebrew based package github action 2022-09-06 00:29:01 +08:00
Xiao YiFang e2b6fd51e2 opt: use std::move and reduce valid word length 2022-08-13 12:41:01 +08:00
Xiao YiFang 20a4220a01 divide by zero 2022-08-12 21:41:17 +08:00
Xiao YiFang d95f545b70 divide by zero 2022-08-12 21:36:23 +08:00
Xiao YiFang 9a708bfd81 vector reserve the size to reduce reallocation 2022-08-12 20:17:25 +08:00
Xiao YiFang c448f56f2b opt:replace std::vector push_back with emplace_back 2022-08-09 20:35:52 +08:00
Xiao YiFang 647041cec3 feat:add cjk fulltext search 2022-06-03 15:34:00 +08:00
Xiao YiFang e26db104f7 fix: regression introduce by replacing qBinaryFind 2022-06-03 15:33:16 +08:00
xiaoyifang 5a0a6c6491 feature:add ignore punctuaion option 2022-04-23 16:15:23 +08:00
xiaoyifang 5f6cc84ff1 fix: when search entry "long" ,"long." "'long" also displayed in the the same time. 2022-04-23 14:38:41 +08:00
xiaoyifang c34bde252e fix:warning output should not print as address. 2022-04-18 22:21:42 +08:00
YiFang Xiao b771f0e340 optimize the utf8::encoding method invocation. 2022-04-01 20:09:15 +08:00
xiaoyifang c2b466ce19 Merge branch 'feature/cpp-refactor-code' into staged 2022-02-03 17:51:40 +08:00
xiaoyifang 0c94406e2a fix merge conflict with feature/deprecated 2022-02-03 17:50:47 +08:00
yifang 262e650779 fix: DPRINTF=>GD_DPRINTF ,DDPRINT does not exist now.
do not affect functionality.only existed in comments.
2022-01-15 15:29:20 +08:00
xiaoyifang c7d33f4eb9 clean code: remove old cpp feature 2022-01-09 16:35:07 +08:00
yifang 46b4151cc4 improve: replace all the deprecated method before 5.15 2022-01-08 22:08:23 +08:00
yifang de3d7b8b19 clean code:remove QT_VERSION check 2021-12-16 19:59:00 +08:00
xiaoyifang 5eac08c97a rename qt4x5.hh to utils.hh
the filename qt4x5 is not proper now,for the qt4 version can never meet.and the qt5 is actually mean qt>5 .
2021-12-13 22:45:35 +08:00
yifang.xiao 0365015ac6 clean code:
remove "#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )" check ,the check should always be true based on current situation.
2021-12-13 22:45:33 +08:00
xiaoyifang 402add183e clean qt_version < 5 code. 2021-12-13 22:43:46 +08:00
xiaoyifang e07e0ec314 remove if 0 dead code 2021-11-17 22:19:32 +08:00
Abs62 968690654f 1. Fix work with big index files
2. Increase limit of node elements while build index
2021-03-05 16:51:44 +03:00
data-man 278c143a05 Use std::sort in suitable places 2021-02-01 15:00:31 +00:00
Abs62 031b9e1eab Increase limit of node elements while build index 2019-07-24 23:59:44 +03:00
Boyuan Yang 5d5432dbad
Fix typos found by codespell 2018-07-07 17:33:15 +08:00
Abs62 d7bc012411 Add option to ignore diacritics while articles search 2018-06-13 19:00:42 +03:00
Abs62 fd00e9d156 Fix gcc 7.3 compiler warnings (#issue 978) 2018-05-21 18:32:04 +03:00
Abs62 5fa5cc123f Full-text search: Allow ignore diacritics while search 2018-04-10 17:49:52 +03:00
Abs62 9468f266f5 Increase limit of node elements while build index 2018-03-13 22:25:17 +03:00
Abs62 99a4e00b65 Full-text search: Fix find headwords by unsorted offsets 2018-03-09 02:16:15 +03:00
Abs62 7b4e5a2ff7 Full-text search: A little optimization for memory allocation 2018-03-01 18:44:11 +03:00
Abs62 c204f75e52 Qt5: Use QRegularExpression instead of QRegExp in many cases 2018-02-22 16:55:56 +03:00
Abs62 31688d435d Fix headwords search for case of wildcard in the first position 2017-08-30 19:09:41 +03:00
Abs62 434a88c503 Fix wildcards search for very short dictionaries 2017-07-02 12:58:45 +03:00
Abs62 ccea483d4c Fix crash while wildcard search in empty dictionaries 2016-05-28 22:26:25 +03:00
Abs62 4b8de48e5c Merge branch 'Original' into Qt4x5 2014-11-27 18:53:52 +03:00
Abs62 2472e12421 Log warning for too long headwords while indexing 2014-11-20 18:03:55 +03:00
Abs62 5f54ff37e4 Fix some warning messages 2014-10-22 17:50:29 +04:00
Abs62 d4adf591a9 Adjust code for Qt5 2014-07-11 18:18:37 +04:00
Abs62 8cabcacf55 Merge branch 'Original' into Qt4x5
Conflicts:
	btreeidx.cc
	fulltextsearch.cc
	goldendict.pro
	main.cc
2014-07-11 18:17:43 +04:00
Abs62 639ee7c82f Epwing: Use libeb search engine in addition to GD index search (issue #504) 2014-07-10 17:55:14 +04:00
Abs62 d866dfd68f Fix word search in case of escaped wildcard at first position 2014-07-08 18:53:26 +04:00