|
|
f47a23ffef
|
PreZero padding now being handled by preprocessing
|
2022-02-13 20:47:41 +01:00 |
|
|
|
4128ede5db
|
English
|
2022-02-13 19:43:22 +01:00 |
|
|
|
bb5f4d5272
|
Renamed a bunch of identifiers to make sure there are no clashes with software this might be used in (fmt -> const_fmt)
|
2022-02-13 17:56:09 +01:00 |
|
|
|
3db91aebda
|
Proper example
|
2022-02-13 17:53:17 +01:00 |
|
|
|
2ecc001a64
|
Put everything into a new 'const_fmt' namespace; Renamed namespace detail to const_fmt_detail
|
2022-02-13 17:48:24 +01:00 |
|
|
|
70fd273a70
|
Merge branch 'master' of http://git.mercurial-manifold.eu/an.tsouchlos/const_fmt
|
2022-02-13 17:41:17 +01:00 |
|
|
|
9626f5efc4
|
Added examples folder and CMakeLists.txt in repo root directory
|
2022-02-13 17:40:33 +01:00 |
|
|
|
9c5a73e2bd
|
Removed Logger.h
|
2022-02-13 17:30:40 +01:00 |
|
|
|
50635a8e2f
|
Removed src directory
|
2022-02-13 17:29:55 +01:00 |
|
|
|
f9cbfdd018
|
Fixed typos in readme
|
2022-02-10 21:17:41 +00:00 |
|
|
|
55ff861f67
|
Renamed inc directory to const_fmt
|
2022-02-09 17:51:37 +01:00 |
|
|
|
d26cf43b32
|
Added note about including library in project
|
2022-02-09 16:48:02 +00:00 |
|
|
|
c9e845b025
|
Added limitations to README
|
2022-02-09 16:45:04 +00:00 |
|
|
|
6597a3a360
|
Added instruction to build and run the tests
|
2022-02-09 16:36:11 +00:00 |
|
|
|
5bf165463c
|
Created README
|
2022-02-09 16:31:45 +00:00 |
|
|
|
83f7f21635
|
Added build folder to gitignore
|
2022-02-09 17:21:46 +01:00 |
|
|
|
b50d5a7e0e
|
Changed comments
|
2022-01-05 01:15:52 +02:00 |
|
|
|
0db75bbdd8
|
Added missing return in format_decimal(); Added first support for negative numbers
|
2021-11-27 16:41:38 +01:00 |
|
|
|
50024240ef
|
Removed build files
|
2021-11-26 23:21:25 +01:00 |
|
|
|
fa0e733df6
|
Added count_digits()
|
2021-11-26 23:20:21 +01:00 |
|
|
|
ffa4a6a501
|
Added count_digits()
|
2021-11-26 23:19:57 +01:00 |
|
|
|
9b430b9902
|
Passing fmt_data to format_arg functions as constant expression
|
2021-11-26 14:44:17 +01:00 |
|
|
|
a0230a7e27
|
Refactored get_init_array() and get_zero_array() to get_init_array(char); Made all free functions inline
|
2021-11-26 14:27:45 +01:00 |
|
|
|
c0d0bb5bad
|
Shamelessly copied fmtlib code for decimal formatting; Added comment with idea about error handling
|
2021-11-26 01:02:10 +01:00 |
|
|
|
afa7831e93
|
Fixed parse issues: Format Type not being correctly parsed
|
2021-11-25 16:25:39 +01:00 |
|
|
|
7743c95631
|
Added user-defined literal for call to format()
|
2021-11-25 14:03:50 +01:00 |
|
|
|
3f46775b35
|
Moved functions to appropriate header files; Implemented const char* formatting
|
2021-11-25 11:04:24 +01:00 |
|
|
|
8ccceeef0d
|
Changed the way detail::format_args works: A preprocessing step yields the whole array without formatted values, values are then formatted in place
|
2021-11-25 10:16:09 +01:00 |
|
|
|
5a0185e074
|
Replaced if-statement-chain with switch case
|
2021-11-25 09:48:55 +01:00 |
|
|
|
4c054bea8a
|
Removed comment
|
2021-11-22 12:54:01 +01:00 |
|
|
|
040dae6bf3
|
Added tests for negative int formatting
|
2021-11-22 12:46:33 +01:00 |
|
|
|
ba86cc40a5
|
Fixed issues with minus on integers
|
2021-11-22 12:42:36 +01:00 |
|
|
|
0557bd1651
|
Moved get_init_array() to utility.h
|
2021-11-22 11:21:29 +01:00 |
|
|
|
12eec70058
|
Formatting
|
2021-11-22 11:18:48 +01:00 |
|
|
|
ee8f3a02e5
|
Readability changes and supressed warnings
|
2021-11-22 11:13:47 +01:00 |
|
|
|
5ad045fa58
|
Made code easier to read
|
2021-11-22 11:07:14 +01:00 |
|
|
|
800c141a87
|
Added more tests; is_digit(s, i) -> is_digit<s>(i); Minor other stuff
|
2021-11-22 10:53:55 +01:00 |
|
|
|
7b5290983a
|
Moved parse_types into namespace detail; Added test Parse_ast_nodes_only
|
2021-11-22 08:14:04 +01:00 |
|
|
|
5a4b9e3298
|
Started adding unit tests
|
2021-11-21 22:46:19 +01:00 |
|
|
|
ad737f1c73
|
Started implementing zero padding
|
2021-11-21 20:01:00 +01:00 |
|
|
|
f2de0773ed
|
format_arg(float) now works with the desired precision
|
2021-11-21 19:42:56 +01:00 |
|
|
|
ce2006694e
|
Made format() constexpr
|
2021-11-21 18:59:35 +01:00 |
|
|
|
53091a30cd
|
Added format_arg() for integral and floating point types and char arrays
|
2021-11-21 18:52:07 +01:00 |
|
|
|
6afb5bea87
|
Made format_args() slightly more readable
|
2021-11-21 17:42:05 +01:00 |
|
|
|
8bc8fa835d
|
Added recursive implementation of detail::format_args
|
2021-11-21 17:38:59 +01:00 |
|
|
|
0d72d35229
|
Implemented ast_node_T; parse_string now returns an actual AST; Moved functions to new files
|
2021-11-21 16:53:57 +01:00 |
|
|
|
92d8f423d8
|
Renamed result to value and moved testing code
|
2021-11-20 23:47:15 +01:00 |
|
|
|
129b16d6e0
|
Renamed fmt_string_result_t do fmt_node_T
|
2021-11-20 20:40:14 +01:00 |
|
|
|
c3ed767e82
|
parse_string now successfully returns an array of format_node objects
|
2021-11-19 18:27:46 +01:00 |
|
|
|
bb24f86d5d
|
Removed length from parse_result_t
|
2021-11-19 17:17:28 +01:00 |
|