Commit graph

47 commits

Author SHA1 Message Date
9ad3cc317c Support string+ary and ary.to<T>() 2018-10-13 00:18:04 +01:00
7e88e9ee8e Range pointers should be const. 2018-10-13 00:17:10 +01:00
af7538c5fa Fix include path. 2018-10-13 00:16:50 +01:00
7ceaf01a37 Add new int_conv.hpp that provides a semantic_cast-like int_conv. 2018-10-12 20:55:14 +01:00
f06c0a60dd Move int_conv.hpp into implem/ 2018-10-12 20:53:57 +01:00
f8c0bc3d1c Hardcode -'0' subtraction. 2018-10-12 20:39:51 +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
beb4d231b2 Add to_string_view(int) overload. 2018-07-28 11:42:01 +01:00
b935e7e72e Add array to int function implementation. 2018-07-25 00:10:33 +01:00
cbeb12afdd Rename the default translator and make a typedef for capital ASCII letters. 2018-07-24 19:49:41 +01:00
e1f7f3291f Update copyright dates in unit tests too 2018-07-24 10:11:53 +01:00
6574f8d383 Update copyright date 2018-07-24 10:09:31 +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
8419c47a70 Base 36 should also be unsigned 2018-07-22 00:42:02 +01:00
1b73bd49fa Optimize for base 10 conversions 2018-07-22 00:10:22 +01:00
81f1a2495f Move implementation into a struct. 2018-07-21 23:39:11 +01:00
e06b87e8f8 Implement constexpr int_to_ary. 2018-07-21 23:32:27 +01:00
c64baaf917 Implement operator== 2018-07-21 23:30:07 +01:00
d29e83f78d Add a char type template parameter 2018-07-21 23:29:55 +01:00
e96cf877e1 Update to latest sprout 2017-07-31 15:53:18 +01:00
4d69585c5a Shorten endianness implementation by importing ducktypes from duckcore.
This makes the code cleaner and should also fix the build on ARM.
2017-06-24 11:42:11 +01:00
3276bc64f4 Ignore ctags. 2017-06-21 21:05:25 +01:00
979b1bf1cb Add missing specializations. 2017-06-21 21:05:15 +01:00
c92f132007 Add endianness conversion template functions. 2017-06-21 20:53:27 +01:00
7bcdb10d19 Buildfix when using tags::hex 2017-05-11 18:25:50 +01:00
1a33afdc27 Detect char type for int to string conversions.
Right now only char is supported. You have to provide your
own specialization of index_to_char for your character type
if you want the code to compile.
2017-05-02 20:22:48 +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
1696acae44 Rework customization points a bit 2017-05-02 19:13:39 +01:00
9f196beeea Drop unused template argument. 2017-05-02 18:38:09 +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
c20ed80ef4 Yet another possible fix for the rpi build 2017-04-13 08:58:24 +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
9587e0e7a1 Case fix 2016-07-15 15:11:07 +01:00
bbe0326a58 Filename mistake 2016-07-15 15:00:09 +01:00
acdb592d89 Add flat_git config 2016-07-15 14:53:25 +01:00
f59d37913a Update shared_git_project 2016-07-14 17:00:32 +01:00
0da25f9094 Buildfix 2016-07-14 15:51:37 +01:00
ecd9eb3d4e Add cmake file and import sprout. 2016-07-14 15:23:36 +01:00
8c917cf38b Drop the only dependency I had on boost. 2016-07-14 15:10:58 +01:00
ccb2fc7ae5 First import
Files taken directly from dindexer
2016-07-14 14:59:15 +01:00