422b475ce3
Add support for constexpr string_view creation
2021-05-28 02:06:28 +02:00
e62da38cf9
Cleaning up and simplifying code a bit
2021-05-28 02:03:52 +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
710cdf9f04
Allow string_view conv when it's safe
...
You can still force a string_view conv even when it's
not safe to do so if you only intend to use the
return value during its lifetime validity. Call
int_conv_temporary() in that case.
2021-04-22 13:59:51 +02:00
b52343014b
int_conv can be constexpr sometimes
2021-04-22 13:57:57 +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
93d2ad6bd0
Make ary_to_int() constexpr
2021-04-22 13:02:51 +02:00
3343b51a39
Simplify code
2021-04-22 03:09:31 +02:00
40bae9c49d
Build fix for clang
2021-04-22 02:59:51 +02:00
1c6de14cd4
Add test for upper case conversions and fix as necessary
2020-08-14 00:30:22 +01:00
f1d6ac789e
Indentation
2020-08-14 00:04:05 +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
7fb56e65ff
Remove submodule, use the system Sprout
2020-05-05 01:59:04 +02:00
9f1d24e832
Add licence header
2018-11-27 09:57:17 +00: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
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
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
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
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
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
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