Commit graph

21 commits

Author SHA1 Message Date
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
422b475ce3 Add support for constexpr string_view creation 2021-05-28 02:06: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
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
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