4d904ac689
Fix deprecation warning
...
Also put iterator into dhandy namespace. I don't
remember why I left it out, and it's probably a
sign I should have not done so.
2024-04-26 00:19:50 +02:00
cd85666005
Fix build of unit tests
2024-04-19 23:18:26 +02:00
fc5f917970
Update copyright year
2024-03-27 15:56:33 +01:00
82b5200857
Add meson build scripts
2022-06-07 16:43:26 +02:00
9dbabcb5c4
Working on optimisation but I'm still losing to std::to_string()
2021-05-29 22:52:30 +02:00
420257f578
Use parameter instead of assuming 10 numeric digits
2021-05-29 17:07:55 +02:00
199db7640e
Add support for int_conv<std::array>()
2021-05-29 16:47:48 +02:00
938c8fa9a4
Make code a bit more readable
...
Changed so that int_conv<string_view>() called on a
non-constexpr doesn't compiler anymore (because code
would try to go through a consteval method). It
wouldn't work anyways as the returned value would be
always garbage. If you want a string_view then you
must either give a constexpr input value or you must
call int_conv_raw and call to_string_view() yourself.
This is better than throwing a runtime exception (which
was working ok btw).
All the SafeRetVal stuff is not needed anymore.
Also no need for all that confusing sfinae, I can just
use a bool FromInt and specialise on that.
2021-05-29 16:44:06 +02:00
a675624cab
Add case sensitivity support to sse conversion
2021-05-29 12:01:01 +02:00
094f7fc679
Rename HashType to TigerHash
2021-05-29 00:57:24 +02:00
327d93a6a4
Fix namespaces, copyright and magic numbers
2021-05-29 00:52:13 +02:00
d3731253e4
Import build time tiger hasd from doorkeeper
2021-05-29 00:34:39 +02:00
422b475ce3
Add support for constexpr string_view creation
2021-05-28 02:06:28 +02:00
eedad0d82c
Move Version to bt namespace
2021-04-22 14:10:28 +02:00
5db217c978
Update copyright to 2021
2021-04-22 14:07:53 +02:00
1f44e74465
Test if conversion is using the sse when possible
2021-04-22 13:44:49 +02:00
13bd166827
Rename Count to lowercase, make const
2021-04-22 13:37:02 +02:00
3124548314
Implement Version class
2021-04-22 13:34:05 +02:00
da136cd52f
Build fix in unit test
2021-04-22 13:14:10 +02:00
1c6de14cd4
Add test for upper case conversions and fix as necessary
2020-08-14 00:30:22 +01:00
79ca881bc1
Warning fix
...
This fixes ary_to_int() for negative values
2020-08-13 23:54:06 +01:00
a5705c5be0
Update copyright to 2020
2020-08-13 21:27:38 +01:00
e6cef7e3ee
Get rid of lexical_cast.
...
This stuff is quite old and I don't think I ever
felt confident enough to use it in real code.
2020-08-13 20:47:42 +01:00
891303a578
Add a very simple ResourcePool implementation.
2018-11-26 22:28:28 +00:00
fb774671ad
Fixes and more tests
2018-11-20 09:26:17 +00:00
a7d0cefbb9
Add BitfieldPack implementation.
2018-11-20 08:56:43 +00:00
4eb4209409
Add unit test and fix for non-char types.
2018-10-13 00:44:38 +01:00
5953ea7cb5
Add a random numbers test with a fixed seed.
2018-07-29 11:17:59 +01:00
14954a3816
Add helpers to ReversedSizedArray.
2018-07-29 11:09:51 +01:00
ab74f8ab3a
Update to Catch2.
2018-07-29 10:59:49 +01:00
7c973896d7
Delete dangerously incorrect to_string_view helpers.
2018-07-29 08:32:30 +01:00
b935e7e72e
Add array to int function implementation.
2018-07-25 00:10:33 +01:00
e1f7f3291f
Update copyright dates in unit tests too
2018-07-24 10:11:53 +01:00
f87cddeeeb
Get bool conversion to work
2018-07-22 01:01:59 +01:00
d5b5b5ed0c
Add more tests
2018-07-22 00:42:10 +01:00
e06b87e8f8
Implement constexpr int_to_ary.
2018-07-21 23:32:27 +01:00
c92f132007
Add endianness conversion template functions.
2017-06-21 20:53:27 +01:00
b854a54293
Move the new function to its own header.
2017-05-02 20:01:41 +01:00
91dca8810a
Add a function that returns a MaxSizedArray.
...
This way you can use it to construct ie: a boost::string_ref or
just take the buffer and use it as a c-style string.
2017-05-02 19:14:53 +01:00
f6bddac63d
Use sprout's limits instead of std's and remove unneeded make_unsigned.
...
I'm not sure what it was supposed to be, maybe a customization point
or something, but after the fix for counting the digits correctly I
removed the only usage of make_unsigned, so I could also get rid of
its implementation. Sweet~
2017-04-25 09:33:27 +01:00
c3dee50e5b
Don't use pow and log10 directly because it causes an overflow.
2017-04-13 19:21:25 +01:00
fcb027409d
Add more tests and static asserts and fix the build.
2017-04-12 22:20:33 +01:00
b782ebd53c
Add unit test for lexical_cast (broken)
2017-04-12 13:54:55 +01:00