Commit Graph

500 Commits

Author SHA1 Message Date
stryku
9a777b9e1c Implemented fmt::prepare()
Implementation of fmt::prepare() function and features around it.
2019-01-12 10:53:31 -08:00
Victor Zverovich
dc8f8ce4c0 Fix handling of dynamic width in chrono formatter
Thanks to Howard Hinnant.
2019-01-09 15:23:21 -08:00
Daniela Engert
f5cc77cea0 Get rid of 'null_terminating_iterator' in printf.h (#980)
The iterator class itself and its helpers 'to_pointer' are removed after reformulating the formatting loop in terms of a 'basic_string_view<Char>::iterator'.

Signed-off-by: Daniela Engert <dani@ngrt.de>
2019-01-04 12:18:14 -05:00
Denis Blank
ae1de3a8d3 Add support for using text_style in format and vformat directly (#993)
* Closes #993
2019-01-01 09:26:54 -05:00
Victor Zverovich
b3ad759a0a Bump version and correct changelog 2018-12-28 13:09:31 -08:00
Victor Zverovich
b34d92b051 Bump version 2018-12-28 12:23:29 -08:00
Victor Zverovich
84e5170c9c Update changelog and deprecate visit 2018-12-24 10:02:41 -08:00
Sign Bit
0bbdca5b8b Fix conversion warnings (#989)
* Fix sign conversion warnings

* Ignore unused local typedefs

* Remove cast reported as useless on GCC

* Remove warning on unused variable

* Enable conversion warning checking for pedantic build

* Fix sign-conversion warnings in headers
2018-12-20 06:24:19 -08:00
Victor Zverovich
77a7244804 Implement fill/align/width for strftime-like formatting 2018-12-19 07:03:02 -08:00
Victor Zverovich
3e01376e08 Implement fill/align/width parsing in chrono formatter 2018-12-16 09:08:11 -08:00
Victor Zverovich
1f92f8a9d8 Remove noexcept 2018-12-15 06:41:32 -08:00
Victor Zverovich
8668639ae2 Get rid of null_terminating_iterator in format 2018-12-15 06:17:25 -08:00
Nicolas
93fd473b8f Add support for builtin terminal colors. (#974) 2018-12-15 06:16:00 -08:00
Victor Zverovich
7f7504b3f5 Clean up docs 2018-12-12 18:21:13 -08:00
Victor Zverovich
37f599b1a1 Fix docs 2018-12-12 17:50:50 -08:00
Victor Zverovich
8c2e15aed5 Make printf work in search (#164) 2018-12-12 16:07:54 -08:00
Victor Zverovich
de71db6d42 Fix asan error (#977) 2018-12-12 11:29:39 -08:00
Victor Zverovich
b180b39152 Fix default formatting 2018-12-12 06:39:47 -08:00
Nicolas
24594c747e Disable printing the reset escape code when no style modifiers where applied. (#973) 2018-12-09 15:57:20 -08:00
Victor Zverovich
b0f2224719 Implement default chrono formatting 2018-12-09 15:56:15 -08:00
Nicolas
749276072f Add file stream support for stylized text printing. (#967) 2018-12-09 09:28:48 -08:00
Victor Zverovich
f54f3d0fb7 Move chrono-specific code to a separate header 2018-12-09 06:45:20 -08:00
Victor Zverovich
b6bc6ec246 Add default ctor and fix use of constexpr macros in text_style 2018-12-07 07:22:18 -08:00
Victor Zverovich
acfa95d4a8 Workaround a bug in MSVC's strftime (#965) 2018-12-07 07:07:21 -08:00
Victor Zverovich
628f830583 More chrono formatting 2018-12-07 06:36:08 -08:00
Victor Zverovich
aa3b5aba41 Implement locale-specific minute formatting 2018-12-06 16:12:10 -08:00
Victor Zverovich
3242ddf7b5 Fix warnings 2018-12-06 08:16:12 -08:00
Nicolas
81b5c4a5fd Add experimental emphasis support (#961) 2018-12-06 07:56:01 -08:00
Victor Zverovich
7c4eb0fbeb Fix warnings in time.h 2018-12-05 14:38:08 -08:00
Victor Zverovich
2d624218bf Fix another warning 2018-12-05 10:19:53 -08:00
Victor Zverovich
0497875ff3 Stop the orgy of casts 2018-12-05 06:27:31 -08:00
Victor Zverovich
37dc495b9d Simplify MSVC workaround 2018-12-05 06:22:18 -08:00
liuping
2ff4996d05 Fix ambiguous complier error C2666 in vs2017.The '+' opeator may cause ambiguity.Avoid implicit conversion. 2018-12-05 05:55:43 -08:00
Florin Iucha
77656c672c Fix sign-conversion warnings reported by Clang7 2018-12-03 16:22:59 -08:00
Victor Zverovich
ea5e4790bd Fix formatting 2018-12-03 08:58:48 -08:00
Johan J
e867768ee6 Do not override user provided compile flag 2018-12-03 07:31:19 -08:00
Daniela Engert
e7e2ab1070 Make return type of basic_format_args::max_size() consistent.
This squashes nasty narrowing conversion warnings.
2018-12-01 17:07:21 -08:00
Victor Zverovich
68214bd904 More time formatting 2018-11-30 20:12:01 -08:00
Victor Zverovich
bcf3fcd673 Clean up bit fiddling for argument packing 2018-11-30 17:04:49 -08:00
Victor Zverovich
9dcf127fa5 Workaround a bogus MSVC warning 2018-11-30 13:47:04 -08:00
Victor Zverovich
b8b06e3e10 Fix conversion warnings in Grisu 2018-11-30 10:37:40 -08:00
Victor Zverovich
322b2594e0 Implement more time specifiers 2018-11-30 09:25:18 -08:00
Victor Zverovich
fa1d4dbcfd Fix warnings 2018-11-28 16:15:15 -08:00
Victor Zverovich
99744f8f8f Suppress unfixable warning 2018-11-28 12:52:41 -08:00
Victor Zverovich
f5fe849238 Specialize formatter for chrono durations 2018-11-28 11:39:21 -08:00
Victor Zverovich
a5a9805a91 First stub at the datetime format parser 2018-11-25 17:25:22 -08:00
Victor Zverovich
645c76a9a5 Fix dummy warnings 2018-11-25 15:33:28 -08:00
Daniela Engert
fecb2d6f0d Eliminate msvc compiler warnings (#931)
The sheer presence of 'std::gmtime' or 'std::localtime' gives rise to C4996 warnings in Microsofts compilers. Alas, the 'fallback(internal::null<>)'functions containing these library calls are never ADL-picked in the respective 'handle(internal::null<>)' selectors. Therefore hiding the fallbacks from msvc is perfectly fine.
2018-11-25 13:48:52 -08:00
Victor Zverovich
64690d3a97 Add context_base::arg() 2018-11-24 10:49:48 -08:00
Victor Zverovich
01640f44cf Fully qualify dummy_int (#941) 2018-11-24 06:22:59 -08:00