Victor Zverovich
|
f6fd38bb3a
|
More iterator support
|
2018-01-15 08:48:37 -08:00 |
|
Victor Zverovich
|
c2fecb9b2a
|
Clean API
|
2018-01-14 14:15:59 -08:00 |
|
Victor Zverovich
|
9a53a706fc
|
Add support for back_insert_iterator
|
2018-01-14 13:12:26 -08:00 |
|
Victor Zverovich
|
91ee9c9acd
|
Return iterator from the format method
|
2018-01-14 11:00:27 -08:00 |
|
Victor Zverovich
|
67928eae28
|
Don't inherit context from parse_context
|
2018-01-14 09:27:40 -08:00 |
|
Victor Zverovich
|
217e7c76f1
|
Pass ranges by value
|
2018-01-14 08:13:48 -08:00 |
|
Victor Zverovich
|
22994c62f7
|
Decouple arg_formatter_base from buffer
|
2018-01-13 15:34:48 -08:00 |
|
Victor Zverovich
|
00f1450d9a
|
Update tesmplate parameter names
|
2018-01-13 14:57:43 -08:00 |
|
Victor Zverovich
|
3a2e89e134
|
Reduce dependency on buffer
|
2018-01-13 12:57:27 -08:00 |
|
Victor Zverovich
|
c095445394
|
Replace buffer with range
|
2018-01-10 22:41:23 -08:00 |
|
Victor Zverovich
|
3663414053
|
Parameterize basic_writer on buffer type
|
2017-12-26 09:00:22 -08:00 |
|
Victor Zverovich
|
6f2769d0b4
|
Revert "Added support for format string containing '\0' in _format udl (#619) (#620)"
This reverts commit 3aaa25fa70 for
reasons discussed in #622.
|
2017-12-23 08:00:51 -08:00 |
|
Victor Zverovich
|
971fb584c3
|
Allow mixing named and automatic arguments
|
2017-12-09 08:15:13 -08:00 |
|
Victor Zverovich
|
94edb1a71c
|
Add a lightweight header for the core API
|
2017-12-06 07:42:42 -08:00 |
|
Artem Golubikhin
|
3aaa25fa70
|
Added support for format string containing '\0' in _format udl (#619) (#620)
Added support for strings containing '\0' in udl (#619)
|
2017-12-06 06:21:34 -08:00 |
|
Victor Zverovich
|
81bd9e8ea3
|
args -> format_args
|
2017-12-03 08:00:22 -08:00 |
|
Victor Zverovich
|
10e70a06c9
|
Improve handling of custom arguments
|
2017-12-02 09:44:48 -08:00 |
|
Victor Zverovich
|
e0243000de
|
arg_index -> arg_id
|
2017-11-26 10:05:49 -08:00 |
|
Victor Zverovich
|
f03a35a679
|
Check string specs at compile time
|
2017-11-24 09:54:28 -08:00 |
|
Victor Zverovich
|
e9da574147
|
Check char specs at compile time
|
2017-11-24 07:54:22 -08:00 |
|
Victor Zverovich
|
b25a029284
|
Check pointer type specs are compile time
|
2017-11-23 10:12:23 -08:00 |
|
Victor Zverovich
|
c8a9d902dd
|
Check floating-point type specifiers
|
2017-11-23 09:14:37 -08:00 |
|
Victor Zverovich
|
3851994ab0
|
Fix yet another internal compiler error in MSVC
|
2017-11-19 09:06:49 -08:00 |
|
Victor Zverovich
|
e7e270f511
|
Test error on invalid type spec and remove unused alias
|
2017-11-19 08:25:34 -08:00 |
|
Victor Zverovich
|
c523dd584f
|
Use error handler to report errors
|
2017-11-19 07:36:01 -08:00 |
|
Victor Zverovich
|
5a32e64b05
|
More tests
|
2017-11-19 07:03:12 -08:00 |
|
Victor Zverovich
|
dc104cbaaa
|
Workaround internal compiler errors in MSVC
|
2017-11-18 09:05:05 -08:00 |
|
Victor Zverovich
|
39411504a5
|
More tests
|
2017-11-18 08:16:59 -08:00 |
|
Victor Zverovich
|
62af25dca8
|
Workaround yet another MSVC internal error
|
2017-11-18 06:31:47 -08:00 |
|
Victor Zverovich
|
594bd8feba
|
More tests
|
2017-11-16 06:55:49 -08:00 |
|
Victor Zverovich
|
f2b52bba05
|
More tests
|
2017-11-15 07:06:03 -08:00 |
|
Victor Zverovich
|
dfdb1adea5
|
More tests
|
2017-11-12 10:03:39 -08:00 |
|
Victor Zverovich
|
7967c2f874
|
Disable test that triggers an MSVC bug
|
2017-11-12 09:47:15 -08:00 |
|
Victor Zverovich
|
18a0b94b0e
|
Fix overflow check
|
2017-11-12 09:25:28 -08:00 |
|
Victor Zverovich
|
686ff942af
|
Fix compile-time parsing and add more tests
|
2017-11-11 11:40:56 -08:00 |
|
Victor Zverovich
|
5b95b5d77c
|
Test compile-time errors
|
2017-11-11 10:28:05 -08:00 |
|
Victor Zverovich
|
246bdafc74
|
Add FMT_STRING macro for compile-time strings
|
2017-11-11 07:39:12 -08:00 |
|
Victor Zverovich
|
e805543341
|
Remove FMT_USE_VARIADIC_TEMPLATES
|
2017-11-11 07:02:58 -08:00 |
|
Victor Zverovich
|
a03842b0d5
|
More compile-time checks
|
2017-11-05 13:26:19 -08:00 |
|
Victor Zverovich
|
8ca6e76dbc
|
Detect user-defined literal templates
|
2017-11-04 08:23:24 -07:00 |
|
Victor Zverovich
|
db9ffa1405
|
Make parse_format_string constexpr
|
2017-10-29 07:32:14 -07:00 |
|
Victor Zverovich
|
d29c7c3aca
|
Workaround a bug in MSVC
|
2017-10-25 07:37:50 -07:00 |
|
Victor Zverovich
|
aadb38a5e6
|
Make specs_checker constexpr
|
2017-10-24 07:46:30 -07:00 |
|
Victor Zverovich
|
529d88ce95
|
Make dynamic_format_specs construction constexpr
|
2017-10-22 10:19:09 -07:00 |
|
Victor Zverovich
|
d2f2a8b0ca
|
constexpr support of dynamic width and precision
|
2017-10-22 09:32:46 -07:00 |
|
Victor Zverovich
|
6b3840b73c
|
Make format_specs construction constexpr
|
2017-10-22 08:18:26 -07:00 |
|
Victor Zverovich
|
91014f0171
|
Naming conventions
|
2017-10-22 06:43:41 -07:00 |
|
Victor Zverovich
|
b83241ff4d
|
Make format spec parsing constexpr
|
2017-10-19 07:36:46 -07:00 |
|
Victor Zverovich
|
1b5ccf6c13
|
Make parse_arg_id constexpr
|
2017-10-15 16:54:47 -07:00 |
|
Victor Zverovich
|
643fb0662e
|
Check for argument indexing switch
|
2017-09-27 21:18:37 -07:00 |
|
Victor Zverovich
|
d45544d14e
|
Fix width handling in dynamic formatting
|
2017-09-27 19:04:15 -07:00 |
|
Victor Zverovich
|
ec4f5175f1
|
Replace Range with ParseContext in parse()
|
2017-09-16 17:07:03 -07:00 |
|
Victor Zverovich
|
8a2bc0ab1b
|
Add nullptr support
|
2017-09-04 11:10:08 -07:00 |
|
Victor Zverovich
|
80505995d0
|
Allow delayed type checking
|
2017-09-04 09:33:22 -07:00 |
|
Victor Zverovich
|
47c84d7974
|
Move part of write API (spec factories) to a separate header
|
2017-08-27 09:08:44 -07:00 |
|
Victor Zverovich
|
20168147dd
|
Add ptr, a helper function for pointer formatting
|
2017-08-27 08:41:28 -07:00 |
|
Victor Zverovich
|
5e0562ab51
|
Separate parsing and formatting
|
2017-08-13 13:09:02 -07:00 |
|
Victor Zverovich
|
1102d46508
|
Make format spec parsing context-independent
|
2017-07-30 08:58:24 -07:00 |
|
Victor Zverovich
|
45911770c5
|
Separate parsing and formatting in extension API
|
2017-07-29 07:50:16 -07:00 |
|
Victor Zverovich
|
2f4f49fd60
|
Switch from cstring_view to string_view
|
2017-07-22 08:24:37 -07:00 |
|
Victor Zverovich
|
12252152ac
|
CStringRef -> cstring_view
|
2017-03-26 15:13:10 -07:00 |
|
Victor Zverovich
|
32ec13f149
|
Switch to C++ locale
|
2017-03-25 08:20:06 -07:00 |
|
Victor Zverovich
|
c333dca065
|
Follow standard naming conventions
|
2017-02-21 06:56:26 -08:00 |
|
Victor Zverovich
|
6a2ff287b2
|
Follow standard naming conventions
|
2017-02-19 08:05:41 -08:00 |
|
Victor Zverovich
|
eedfd07f8b
|
internal::MemoryBuffer -> basic_memory_buffer
|
2017-02-18 09:13:12 -08:00 |
|
Victor Zverovich
|
50e716737d
|
StringRef -> string_view, LongLong -> long_long
|
2017-02-18 07:34:52 -08:00 |
|
Victor Zverovich
|
c2f021692f
|
Merge ArrayWriter into FixedBuffer
|
2017-02-17 06:09:26 -08:00 |
|
Victor Zverovich
|
fefaf07b6f
|
Pass buffer instead of writer to format_value
|
2017-02-14 19:39:34 -05:00 |
|
Victor Zverovich
|
a13b96ed88
|
Simplify API
|
2017-02-05 06:54:03 -08:00 |
|
Victor Zverovich
|
624c58682d
|
Simplify API
|
2017-02-05 06:41:39 -08:00 |
|
Victor Zverovich
|
296e9cada2
|
FrmatSpec -> format_spec
|
2017-01-28 12:51:35 +00:00 |
|
Victor Zverovich
|
984a102921
|
Remove IntFormatSpec and StrFormatSpec
|
2017-01-28 04:26:48 -08:00 |
|
Victor Zverovich
|
4863730eca
|
Remove pad
|
2017-01-22 19:11:47 -08:00 |
|
Victor Zverovich
|
aea5d3ab00
|
Improve compatibility with older gcc and update tests
|
2017-01-22 11:50:52 -08:00 |
|
Victor Zverovich
|
ec15ef7b7b
|
Replace operator<< with write function
|
2017-01-22 10:00:34 -08:00 |
|
Victor Zverovich
|
8428621ddc
|
BasicWriter -> basic_writer
|
2016-12-30 12:26:12 -08:00 |
|
Victor Zverovich
|
422236af7c
|
Don't erase writer type
|
2016-12-28 07:55:33 -08:00 |
|
Victor Zverovich
|
f05888692c
|
Fix handling of unpacked args (#437)
|
2016-12-23 08:24:48 -08:00 |
|
Victor Zverovich
|
6cba8fe9ba
|
Move stuff out of internal::Value
|
2016-12-15 07:51:40 -08:00 |
|
Victor Zverovich
|
284297019f
|
Merge BasicArgFormatter and ArgFormatter
|
2016-11-20 09:36:27 -08:00 |
|
Victor Zverovich
|
d4084ac5b1
|
Get rid of ArgVisitor
|
2016-11-20 09:11:13 -08:00 |
|
Victor Zverovich
|
55a1ac5035
|
Fix test
|
2016-11-07 08:55:40 -08:00 |
|
Victor Zverovich
|
85793a18cd
|
Simplify API
|
2016-11-06 19:27:14 -08:00 |
|
Victor Zverovich
|
9998f66f8c
|
Replace formatter with context
|
2016-11-06 18:59:17 -08:00 |
|
Victor Zverovich
|
2bba420337
|
Pass writer directly to format_value (#400)
|
2016-10-26 17:54:11 -07:00 |
|
Victor Zverovich
|
b656a1c133
|
Make value the second argument to format_value
|
2016-10-25 06:19:19 -07:00 |
|
Victor Zverovich
|
edf98792a5
|
Pass writer to format_value
|
2016-10-25 05:55:40 -07:00 |
|
Victor Zverovich
|
f85d5f4dac
|
BasicFormatter -> basic_formatter
|
2016-10-22 08:04:20 -07:00 |
|
Victor Zverovich
|
18dfa257d0
|
Pass correct formatters to make_format_args
|
2016-10-21 06:46:21 -07:00 |
|
Victor Zverovich
|
dafbec7553
|
Fix type safety when using custom formatters (#394)
|
2016-10-07 08:37:06 -07:00 |
|
Victor Zverovich
|
65a8c2c343
|
format_arg -> format_value
|
2016-10-02 08:49:10 -07:00 |
|
Victor Zverovich
|
209a1d58bf
|
Get rid of macros
|
2016-08-27 09:06:21 -07:00 |
|
Victor Zverovich
|
0d8aca8de3
|
Get rid of FMT_VARIADIC_VOID
|
2016-08-27 08:16:49 -07:00 |
|
Victor Zverovich
|
4ece95a754
|
Make make_format_args public
|
2016-08-27 07:57:48 -07:00 |
|
Victor Zverovich
|
0028ce57b6
|
Get rid of FMT_VARIADIC
|
2016-08-26 17:23:13 -07:00 |
|
Victor Zverovich
|
fc73e10620
|
ArgList -> format_args
|
2016-08-25 08:50:07 -07:00 |
|
Victor Zverovich
|
9bb213e920
|
FormatError -> format_error
|
2016-08-25 08:38:07 -07:00 |
|
Victor Zverovich
|
a79c7b4e8f
|
Fix handling of unsigned char strings (#373)
|
2016-08-23 08:42:25 -07:00 |
|
Victor Zverovich
|
f19d8f9655
|
Improve error reporting (#357)
|
2016-08-16 07:08:53 -07:00 |
|
Victor Zverovich
|
1a23f9c274
|
Correct buffer growth when formatting time (#367)
|
2016-08-04 08:47:59 -07:00 |
|
Victor Zverovich
|
8631694021
|
check -> const_check to avoid a conflict with AssertMacros.h (#350)
|
2016-07-12 06:40:23 -07:00 |
|
Victor Zverovich
|
0e6df7e511
|
Fix handling of thousands separator (#353)
|
2016-07-11 06:31:23 -07:00 |
|
Victor Zverovich
|
e2a332e5df
|
Use a mock to test locale support
|
2016-05-19 17:38:44 -07:00 |
|
Victor Zverovich
|
5b106083e7
|
Check if setlocale succeeded
|
2016-05-19 06:48:35 -07:00 |
|
Victor Zverovich
|
90730e706b
|
Move ostream support to ostream.{h,cc}
|
2016-05-06 07:37:20 -07:00 |
|
Victor Zverovich
|
fa5ebd27d4
|
Implement time formatting
|
2016-04-25 08:07:27 -07:00 |
|
Victor Zverovich
|
afd67497de
|
cppformat -> fmt
|
2016-04-24 09:06:12 -07:00 |
|
vitaut
|
b69e6dcead
|
Make BasicArgFormatter public and add ArgFormatter
This allows providing custom argument formatters without relying on
internal APIs (#235).
|
2016-04-19 08:56:31 -07:00 |
|
vitaut
|
f68771abe4
|
Implement locale-specific integer formatting
|
2016-04-17 19:06:03 -07:00 |
|
vitaut
|
a99891e7a5
|
Use a mock to test custom argument formatter
|
2016-03-19 07:36:28 -07:00 |
|
vitaut
|
52f89065e1
|
Make argument formatter customizable
|
2016-03-19 07:20:31 -07:00 |
|
Mario Werner
|
d411aa165e
|
use quotes for including cppformat headers from the tests
|
2016-02-02 16:58:41 +01:00 |
|
Mario Werner
|
fee52f79b8
|
update the includes in the tests to get rid of the deprecated warnings
|
2016-01-30 22:33:37 +01:00 |
|
vitaut
|
b8bd80ff28
|
Fix handling of empty non-null-terminated strings
|
2015-11-25 09:49:01 -08:00 |
|
vitaut
|
6cff6d8137
|
Use overloaded operator<< for enums if available (#232)
|
2015-11-24 08:18:19 -08:00 |
|
vitaut
|
8b86a74ad5
|
Allow formatting C strings as pointers (#223)
|
2015-11-09 07:17:36 -08:00 |
|
vitaut
|
7c24973637
|
Format (un)signed char as integer by default (#217)
|
2015-11-05 20:46:22 -05:00 |
|
vitaut
|
b2714f83cc
|
FMT_NO_STREAM_LIBRARIES -> FMT_USE_IOSTREAMS
for consistency with similar macros and removed unnecessary
checks.
|
2015-10-18 08:50:35 -07:00 |
|
Richard Maxwell
|
2cca51c744
|
Issue 205: Make iostream support optional.
|
2015-10-16 08:04:53 +13:00 |
|
Dean Moldovan
|
c0813c59f3
|
Work around UDL macro stringification bug on some versions of GCC
See bug report: https://gcc.gnu.org/ml/gcc-bugs/2015-04/msg02027.html
|
2015-10-09 11:55:36 +02:00 |
|
Dean Moldovan
|
bc6010cc21
|
Add _a literal for named arguments
|
2015-09-27 04:09:37 +02:00 |
|
Dean Moldovan
|
a63a24f2d7
|
Add _format literal
|
2015-09-27 04:00:24 +02:00 |
|
vitaut
|
79d8f59906
|
Implement formatting of objects with (s)printf.
|
2015-09-08 08:36:20 -07:00 |
|
vitaut
|
5b8d0a7aa9
|
Make Coverity happy
|
2015-08-04 07:22:03 -07:00 |
|
vitaut
|
6cf24c7f92
|
Fix MSVC warnings
|
2015-07-08 08:04:32 -07:00 |
|
vitaut
|
c669cbedf8
|
Rename None to Null because of conflict with an xlib.h macro
|
2015-07-07 07:05:17 -07:00 |
|
vitaut
|
438bd9b0e6
|
Add BasicCStringRef to represent a null-termated string (#100)
and use it instead of BasicStringRef in cases that assume that the
string is null-terminated such as POSIX function and format string
parser.
|
2015-06-26 07:43:54 -07:00 |
|
vitaut
|
948317b6dd
|
Fix FormatLongDouble test on PowerPC (#180)
|
2015-06-23 07:39:49 -07:00 |
|
vitaut
|
8450f5e1d3
|
FormatIntTest: FormatDec: don't assume signedness of char type
Thanks to Eugene V. Lyubimkin for the patch.
|
2015-06-22 07:03:26 -07:00 |
|
vitaut
|
e39490500c
|
Replace implicit conversion to std::string with to_string
|
2015-06-17 07:59:41 -07:00 |
|
vitaut
|
9d09214e7a
|
Use textual representation for bool by default (#170)
|
2015-06-11 09:00:06 -07:00 |
|
vitaut
|
fd5c2e909b
|
Report error when using precision with char
|
2015-06-11 08:58:31 -07:00 |
|
vitaut
|
b83ab16676
|
Break long lines
|
2015-06-11 06:14:42 -07:00 |
|
jamboree
|
3c99ed4498
|
Fix name parsing
|
2015-06-11 12:03:22 +08:00 |
|
jamboree
|
7487bde587
|
Support named arguments
|
2015-06-10 09:32:59 +08:00 |
|
vitaut
|
ed2dfe5124
|
Implement writing narrow strings into a wide writer
|
2015-06-09 08:20:44 -07:00 |
|
vitaut
|
8949a2e941
|
Fix formatting
|
2015-06-08 06:53:18 -07:00 |
|
jamboree
|
54a6cb34c7
|
Support runtime width specification
|
2015-06-04 13:59:37 +08:00 |
|
vitaut
|
90a12b1bb2
|
Fix warnings
|
2015-05-12 08:57:21 -07:00 |
|
vitaut
|
3e03934d15
|
If std::swprintf is broken, disable relevant test and warn about it
|
2015-05-08 07:57:43 -07:00 |
|
vitaut
|
85b985e9f2
|
Workaround a bug in formatting long double in MinGW, take 3
|
2015-05-07 08:17:30 -07:00 |
|
vitaut
|
3e379829a0
|
Workaround a bug in formatting long double in MinGW, take 2
|
2015-05-07 07:25:39 -07:00 |
|
vitaut
|
673a4525f6
|
Workaround a bug in formatting long double in MinGW
|
2015-05-07 07:18:46 -07:00 |
|
vitaut
|
87cb2935f8
|
Test and fix handling of exactly MAX_PACKED_ARGS arguments
|
2015-05-01 06:55:26 -07:00 |
|
vitaut
|
cf04d98d06
|
Pass as many types as possible in a single integer to reduce code bloat
|
2015-03-24 08:55:40 -07:00 |
|
Victor Zverovich
|
beaf6f7436
|
Add a fixed-size array writer
|
2015-03-01 18:08:24 -08:00 |
|
Victor Zverovich
|
53010624a0
|
Move Windows implementation of print_colored to a separate branch
as it needs further testing.
|
2015-02-19 07:54:59 -08:00 |
|
Victor Zverovich
|
bd133382f0
|
Fix BasicWriter::write without formatting arguments on C++11 (#109)
|
2015-02-16 14:32:38 -08:00 |
|
Victor Zverovich
|
cfd476bb8b
|
Temporarily disable the test as the fix didn't work.
|
2015-02-08 20:41:13 -08:00 |
|
Ryuuke
|
5a9dc8f991
|
windows cli colors revision and test case
|
2015-02-08 16:08:29 +00:00 |
|