1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-12-01 01:45:42 +00:00
Commit graph

23 commits

Author SHA1 Message Date
King_DuckZ
53a42fa7c0 Add bin tag to lexical_cast.
This also fixes a subtle bug: the size passed to MaxSizedArray in
int_to_string() was calculated on the max value of type F, but when
F was a signed type the max would only be for example 31 bits.
Conversion of negative numbers would then fail with an assertion.
2016-06-15 23:04:46 +01:00
King_DuckZ
f9387114bf Implement handling of signed types and fix some build errors. 2016-06-15 20:48:05 +01:00
King_DuckZ
2c5030f929 Add dedicated tests for lexical_cast and fix failures I found. 2016-06-15 17:27:32 +01:00
King_DuckZ
4b30fabbe4 New string_to_tiger function.
Comes with unit test that indirectly also tests the
previously added lexical_cast.
2016-06-15 14:57:52 +01:00
King_DuckZ
5832ca3374 Move split_tags to common lib. 2016-05-16 09:59:10 +02:00
King_DuckZ
253af1a3ad Throw if glob parsing fails.
This also fixes the warning about an unused boolean variable.
2016-05-12 20:02:33 +02:00
King_DuckZ
217b41ace2 Add new tests for glob2regex and try to fix the failing one
glob2regex is not 100% accurate yet, but it works at least
for the cases in the accompanying unit test.
2016-05-12 10:23:47 +02:00
King_DuckZ
05aaaebe0d Import glob2regex
It's still missing ast optimization and some code cleanup is also
needed, but it should be working in the general case.
Also write a small unit test for it.
2016-05-11 20:36:23 +02:00
King_DuckZ
b6953eeaa1 Add unit test for tag splitting 2016-05-05 20:05:56 +02:00
King_DuckZ
a625f69afd Import better-enums project from github and put it to use :)
Fix build and somewhat improve the dindexer-scan --help message.
2016-04-26 20:47:29 +02:00
King_DuckZ
12d39b203e Add unit tests to cmake 2016-04-21 00:25:52 +02:00
King_DuckZ
abde34e240 Add unit test for cli programs 2016-04-21 00:22:00 +02:00
King_DuckZ
1956594c01 Move mediatypes.hpp/cpp to machinery.
This was needed so that machinery wouldn't depend on common.
Also moved compatibility.h to helpers include dir.
Ideally mediatypes.hpp will be merged into mediatype.hpp, or there
will be some kind of renaming because the two names are
getting really confusing.
2016-03-04 09:01:11 +01:00
King_DuckZ
2e77e4dc0b Add Glob class and use that one to help guessing content types. 2016-02-20 01:36:31 +01:00
King_DuckZ
8b1b9c48f4 Flattening is useful, so move it out of the unit test. 2016-02-20 01:34:46 +01:00
King_DuckZ
f31463480f Add stub code to detect VCDs, plus unit test. 2016-02-19 21:57:43 +01:00
King_DuckZ
0a3e469951 Support const/non-const DirIterators and SetListingViews 2016-02-16 18:51:17 +01:00
King_DuckZ
bed191c4fc Better way to construct SetListingView 2016-02-12 20:14:12 +01:00
King_DuckZ
32d32f63cb Fix SetListing, but some implementation is still missing 2016-02-12 14:44:32 +01:00
King_DuckZ
6362f0f002 Fix unit test 2016-02-10 09:19:54 +01:00
King_DuckZ
ada0f1df50 Add SetListingView.
I'm having linker errors in gtest, pushing to see
if this also happens on the build server.
2016-02-09 23:23:50 +01:00
King_DuckZ
346946340d First implementation of set_listing.
Trying to move the depth-first iteration logic into
an iterator-like interface. Work in progress WiP
2016-02-09 21:35:13 +01:00
King_DuckZ
e223b15abf Import gtest. 2016-02-09 21:31:01 +01:00