Arthur Danskin
cbac016cce
%.f should have zero precision, not default precision
2017-04-08 07:18:10 -07:00
Victor Zverovich
6f8006c2ce
Add printf overloads that takes a writer ( #476 )
2017-02-25 09:58:42 -08:00
mojoBrendan
d8754af063
Allow %s as generic format specifier in printf ( #453 )
...
* Allow %s as generic format specifier in printf
Signed integers are formatted as %d
Unsigned integers are formatted as %u
Doubles are formatted as %f
Chars are formatted as %c
Void Pointers are formatted as %p
* Remove '%S' handling and use visitor for generic format strings
* Default for floating point is now "%g" rather than "%f"
2017-01-14 11:45:48 -08:00
Victor Zverovich
9dbb60c4c8
Move fmt::fprintf to printf.h
2016-08-03 08:52:05 -07:00
Victor Zverovich
8631694021
check -> const_check to avoid a conflict with AssertMacros.h ( #350 )
2016-07-12 06:40:23 -07:00
Glen Stark
72d51e0b1e
Implemented #335 : custom printf support
2016-06-09 08:41:56 -07:00
Victor Zverovich
90730e706b
Move ostream support to ostream.{h,cc}
2016-05-06 07:37:20 -07:00
Victor Zverovich
afd67497de
cppformat -> fmt
2016-04-24 09:06:12 -07:00
vitaut
9ffe98c00e
Fix/suppress MSVC warnings
2016-03-19 06:39:33 -07:00
vitaut
59607f5e99
Fix warnings on GCC 4.6.3
2016-03-09 07:47:08 -08:00
vitaut
3ecad55910
Fix sign conversion warnings
2016-03-02 07:53:14 -08:00
Mario Werner
d411aa165e
use quotes for including cppformat headers from the tests
2016-02-02 16:58:41 +01:00
Mario Werner
a659d8079e
Merge branch 'master' into update-project-layout
2016-01-31 17:00:05 +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
7ee287d3d9
Sign extend arguments of smaller types passed to %ll? ( #265 )
2016-01-27 07:03:19 -08:00
vitaut
8474a6232d
Don't perform narrowing conversion for integers in printf ( #255 )
2016-01-24 00:43:42 +01:00
Nicholas Hutchinson
1a5a1708b7
Add fprintf overload that writes to a std::ostream
...
For completeness, add an overload for printf that takes a std::ostream.
2015-12-23 15:59:13 +13:00
vitaut
1a2a333a1a
Use format specifiers when formatting null pointers & strings
2015-11-23 21:01:28 -08:00
vitaut
2157375d5c
Use textual formatting for bool with %s
specifier in printf ( #224 )
2015-11-13 07:18:44 -08:00
vitaut
57ba9436a0
Format null string as (nil)
with p
specifier
2015-11-12 06:09:08 -08:00
vitaut
b5fda1c90d
Format null pointer as (nil) and null string as (null) in printf ( #226 )
2015-11-11 07:57:19 -08:00
vitaut
8b86a74ad5
Allow formatting C strings as pointers ( #223 )
2015-11-09 07:17:36 -08:00
vitaut
cd097d334e
Workaround bogus coverity warnings
2015-10-21 06:16:55 -07:00
vitaut
c684886dfc
Make coverity happy
2015-10-20 08:29:41 -07:00
vitaut
d25d775ae6
Suppress bogus coverity warnings
2015-10-20 06:26:31 -07:00
vitaut
56d3b9135f
Try a workaround for a bogus Coverity warning
2015-10-19 08:17:05 -07:00
vitaut
ef710dee6c
Add sprintf overload for wide strings
...
and fix an issue in formatting user-defined objects.
Thanks to @ScottLangham
2015-09-18 16:26:41 -07:00
vitaut
79d8f59906
Implement formatting of objects with (s)printf.
2015-09-08 08:36:20 -07:00
vitaut
e39490500c
Replace implicit conversion to std::string with to_string
2015-06-17 07:59:41 -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
Shauren
a445e727c2
Added support to format more than 16 arguments with printf API when using variadic templates
2015-03-20 21:31:10 +01:00
Victor Zverovich
5821aec7b9
Implement printing of values that are convertible to int such as enums
2015-03-10 07:53:46 -07:00
Victor Zverovich
615c1eef6b
Fix error handling in fmt::fprintf.
2014-11-14 09:40:01 -08:00
Victor Zverovich
605d2600f8
Improve error reporting.
2014-08-29 07:45:55 -07:00
Victor Zverovich
279c7a6e6a
Change "number is too big in format" to "number is too big" because the error can occur not only in the format function.
2014-08-28 06:50:52 -07:00
Victor Zverovich
526b7fc91d
Throw exception in parse_nonnegative_int if the number is too big.
2014-08-28 06:42:59 -07:00
Victor Zverovich
da0293c4dd
Add missing include.
2014-08-21 07:29:23 -07:00
Victor Zverovich
03cdf1235a
Test printf.
2014-08-21 07:14:02 -07:00
Victor Zverovich
f1ac0a19e9
Test float.
2014-08-20 08:21:06 -07:00
Victor Zverovich
be00d8b272
Convert integer argument like printf does.
2014-08-19 08:49:10 -07:00
Victor Zverovich
c4a4a05d12
Improve handling of char in printf.
2014-08-19 08:14:21 -07:00
Victor Zverovich
f2be7851cc
Fix a warning.
2014-08-19 07:29:30 -07:00
Victor Zverovich
e0f92d675e
Fix a warning.
2014-08-19 07:14:25 -07:00
Victor Zverovich
39ac84f01e
Comment.
2014-08-18 07:03:22 -07:00
Victor Zverovich
186734cf8b
Fix warnings.
2014-08-18 07:03:12 -07:00
Victor Zverovich
c7cfa7d4e7
More tests.
2014-08-15 06:58:24 -07:00
Victor Zverovich
18f1e08685
Test 'll' specifier.
2014-08-13 06:59:29 -07:00
Victor Zverovich
ddd087d8d1
Test more length specifiers.
2014-08-13 06:42:15 -07:00
Victor Zverovich
5614295aa1
Test 'l' specifier.
2014-08-12 08:15:39 -07:00
Victor Zverovich
7c14431211
Enable 'h' speciffier tests.
2014-08-12 06:49:27 -07:00