Stefan Weil
32d53479ae
Use std::vector for vars_vec, vars_values
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
085f6b2572
Use std::list for paragraph models
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
4ebba72919
Use std::vector for paragraph models
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Stefan Weil
524fc67165
Fix tesseract --list-langs
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-28 21:03:29 +01:00
Egor Pugin
e80a8869f5
Merge branch 'master' of github.com-egorpugin:tesseract-ocr/tesseract
2020-12-28 20:38:30 +03:00
Egor Pugin
db9af74aaa
[ci] Build unit tests on github ci on linux/macos.
2020-12-28 20:38:16 +03:00
Egor Pugin
02ce392cf3
[sw] Do not build unit tests by default.
2020-12-28 20:37:35 +03:00
Egor Pugin
98974a6913
[test] Fix include order.
2020-12-28 20:36:04 +03:00
Stefan Weil
190be30a96
Remove src/ccutil/doubleptr.h from Makefile.am (fix build regression)
...
That header file was moved to unittest in
commit 3187f2ef08
.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-28 10:23:07 +01:00
Egor Pugin
986b57dd4e
Export symbol for unit test.
2020-12-28 04:58:26 +03:00
Egor Pugin
a98d6d9e8e
Better symbol visibility fix for unit test.
2020-12-28 04:58:14 +03:00
Egor Pugin
985c599bbd
Move training tools into their own dir.
2020-12-28 04:34:52 +03:00
Egor Pugin
f51a945e26
Make symbol visible to fix unit test.
2020-12-28 04:31:00 +03:00
Egor Pugin
4dcfb5006c
[test] Correctly use assert instead of expect.
2020-12-28 03:24:05 +03:00
Egor Pugin
6cc8f58080
[sw] Add unit tests.
2020-12-28 02:32:36 +03:00
Egor Pugin
3187f2ef08
Move doubleptr.h to unittests as it is used only there.
2020-12-28 02:32:27 +03:00
Egor Pugin
4175679da6
Revert kdpair, genericheap changes.
2020-12-28 02:31:45 +03:00
Egor Pugin
6cc00aa332
Improve some unit tests.
2020-12-28 01:11:13 +03:00
Egor Pugin
0c19e1e14d
Allow to construct STRING from nullptr.
2020-12-28 01:10:15 +03:00
Egor Pugin
7519cbe175
Use resize() instead of reserve() in resize_no_init() to match std::vector behavior. Using memory after reserve() is UB.
2020-12-28 01:09:57 +03:00
Egor Pugin
bc49237690
[sw] Misc.
2020-12-27 23:00:28 +03:00
Stefan Weil
2fe1532926
Fix some compiler errors for heap_test (more remaining)
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-27 18:30:56 +01:00
Stefan Weil
a61d7ac2ee
Add / fix namespace tesseract for unittest
...
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-27 10:54:43 +01:00
Egor Pugin
868b33bdf0
Fix gitignore pattern.
2020-12-26 22:27:53 +03:00
zdenop
7f354ecca5
Merge pull request #3195 from stweil/pdf
...
Add const attribute for pdf_ttf
2020-12-26 18:44:37 +01:00
Stefan Weil
289a34a40a
Add const attribute for pdf_ttf
...
That moves its data into the text segment and reduces the total size
slightly:
text data bss dec hex filename
39788 693 0 40481 9e21 old/libtesseract_la-pdfrenderer.o
40360 88 0 40448 9e00 new/libtesseract_la-pdfrenderer.o
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-26 17:51:56 +01:00
Stefan Weil
7dca63caf1
More fixes for namespace tesseract
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-26 17:41:53 +01:00
Stefan Weil
7188b160ae
Fix build with --disable-graphics
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-26 17:36:24 +01:00
Egor Pugin
176339f9c9
Restore C++17.
2020-12-26 16:39:20 +03:00
Egor Pugin
87b5471810
[cmake] Try to disable C++17.
2020-12-26 16:24:48 +03:00
Egor Pugin
6f0e3fa28b
Merge pull request #3176 from softana/master
...
Update Dockerfile
2020-12-26 15:59:47 +03:00
Egor Pugin
aecbf79791
Add missing merge_unicharsets training tool to cmake and sw build.
2020-12-26 15:57:22 +03:00
Stefan Weil
317ef988a0
Add missing namespace prefix for GlobalParams() (fix build for some unit tests)
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-26 13:44:43 +01:00
Egor Pugin
0b975f5193
Update .travis.yml
2020-12-26 15:23:52 +03:00
Stefan Weil
418064f639
Add missing namespace prefix (fix build for merge_unicharsets)
...
Signed-off-by: Stefan Weil <sw@weil.de>
2020-12-26 13:09:39 +01:00
Egor Pugin
b2b2d02167
Another msvc/macos fix attempt.
2020-12-26 15:09:03 +03:00
Egor Pugin
f7c78f97a1
Fix macos build. Add missing header.
2020-12-26 15:00:43 +03:00
Egor Pugin
560560eb35
Try to fix macos build.
2020-12-26 13:40:27 +03:00
Egor Pugin
83544566af
[travis] Update macos image.
2020-12-26 04:28:48 +03:00
Egor Pugin
6a63b0e11e
[cmake] Enable C++17 temporarily.
2020-12-26 04:25:16 +03:00
Egor Pugin
5388d1d6f1
[travis] Upgrade to Ubuntu 18.04.
2020-12-26 04:22:07 +03:00
Egor Pugin
c8b8d266d6
Fix some of vector<bool> cases for msvc.
2020-12-26 04:17:13 +03:00
Egor Pugin
6b22972bc2
Fix linux build.
2020-12-26 04:15:42 +03:00
Egor Pugin
b09fa9b166
[sw] Bump minimal C++ standard to C++17.
2020-12-26 03:48:57 +03:00
Egor Pugin
c3e04abe1e
Inherit STRING from std::string.
2020-12-26 03:48:35 +03:00
Egor Pugin
b4495a6bb5
Call base vector::insert() explicitly.
2020-12-26 03:37:21 +03:00
Egor Pugin
4fc467a922
Inherit GenericVector from std::vector. Inherit kdpairs from std::pair. Rewrite some move ctors to modern C++ style.
2020-12-26 03:23:09 +03:00
Egor Pugin
04d3cfcf2f
Merge branch 'master' of github.com-egorpugin:tesseract-ocr/tesseract
2020-12-26 00:55:37 +03:00
Egor Pugin
79a86f2582
Move all tesseract symbols into tesseract namespace. Fix include order in many places.
2020-12-26 00:55:30 +03:00
Egor Pugin
a67fa1780f
Delete .rc from tesseractmain.
2020-12-26 00:47:51 +03:00