Victor Zverovich
|
d59fbdcd4a
|
Increase the maximum number of formatting arguments on compilers without variadic templates to 15.
|
2014-09-11 21:18:36 -07:00 |
|
Victor Zverovich
|
f2c9df8e9f
|
Move safe_strerror to anonymous namespace.
|
2014-09-05 08:44:41 -07:00 |
|
Victor Zverovich
|
88e0db8486
|
Test format_error_code.
|
2014-09-05 08:04:26 -07:00 |
|
Victor Zverovich
|
22f75d8b6d
|
Don't throw exceptions from error formatting functions. Gracefully fallback to a less descriptive message instead.
|
2014-09-03 08:03:05 -07:00 |
|
Victor Zverovich
|
5debb2aa86
|
Refactor error reporting to reduce duplication.
|
2014-08-29 08:16:10 -07:00 |
|
Victor Zverovich
|
605d2600f8
|
Improve error reporting.
|
2014-08-29 07:45:55 -07:00 |
|
Victor Zverovich
|
271fa8c908
|
Improve handling of format strings in custom arguments.
|
2014-08-29 07:23:54 -07:00 |
|
Victor Zverovich
|
3947a7a98c
|
Move check_sign to anonymous namespace.
|
2014-08-29 06:57:53 -07:00 |
|
Victor Zverovich
|
c57d7a506f
|
Factor out argument processing logic common between format and printf to FormatterBase::{next_arg,get_arg}.
|
2014-08-28 08:05:47 -07:00 |
|
Victor Zverovich
|
56fc525e98
|
Get rid of FormatterBase::error_.
|
2014-08-28 07:48:55 -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
|
9646e38c3b
|
Don't use error_ in parse_arg_index.
|
2014-08-27 09:13:42 -07:00 |
|
Victor Zverovich
|
42de4f1f7d
|
Get rid of FormatErrorReporter.
|
2014-08-27 08:24:31 -07:00 |
|
Victor Zverovich
|
dd4323f31c
|
Add fprintf and write docs.
|
2014-08-21 08:49:13 -07:00 |
|
Victor Zverovich
|
f9561671cf
|
Write docs.
|
2014-08-21 07:30:00 -07:00 |
|
Victor Zverovich
|
406c6123fb
|
Cleanup
|
2014-08-19 08:47:38 -07:00 |
|
Victor Zverovich
|
fb32161fa4
|
Move implementation specific stuff from format.h to format.cc.
|
2014-08-15 08:40:03 -07:00 |
|
Victor Zverovich
|
431b556951
|
Add FMT_ prefix to SPECIALIZE_MAKE_UNSIGNED.
|
2014-08-07 07:42:55 -07:00 |
|
Victor Zverovich
|
6cd1563eac
|
Add a size argument to Array ctor.
|
2014-08-06 07:17:03 -07:00 |
|
Victor Zverovich
|
58dfe5c9f7
|
Make format_decimal inline.
|
2014-08-01 08:49:16 -07:00 |
|
Victor Zverovich
|
be9356b651
|
Specialize MakeUnsigned for all signed integer types.
|
2014-07-31 21:23:49 -07:00 |
|
Victor Zverovich
|
d81fafc295
|
Fix tests on MSVC, take 2.
|
2014-07-31 07:43:14 -07:00 |
|
Victor Zverovich
|
f4156b57f0
|
Implement 'hh' length specifier in printf.
|
2014-07-30 08:39:07 -07:00 |
|
Victor Zverovich
|
d346a4120d
|
FormatDec -> format_decimal
|
2014-07-29 08:45:29 -07:00 |
|
Victor Zverovich
|
ad9c830282
|
format -> format_str to avoid confusion with function name.
|
2014-07-29 06:26:44 -07:00 |
|
Victor Zverovich
|
4d049cf598
|
More fixes for https://github.com/cppformat/cppformat/issues/50.
|
2014-07-28 08:41:50 -07:00 |
|
Victor Zverovich
|
75b5eb4b9d
|
More fixes for https://github.com/cppformat/cppformat/issues/50.
|
2014-07-27 15:09:05 -07:00 |
|
Victor Zverovich
|
5d4803a567
|
More fixes for https://github.com/cppformat/cppformat/issues/50.
|
2014-07-27 12:53:42 -07:00 |
|
Victor Zverovich
|
a8cef1d987
|
FormatDecimal -> format_decimal (https://github.com/cppformat/cppformat/issues/50)
|
2014-07-26 21:31:40 -07:00 |
|
Victor Zverovich
|
2a1c0c9969
|
Obey line length limit.
|
2014-07-26 09:45:03 -07:00 |
|
Victor Zverovich
|
f634ccb344
|
ReportUnknownType -> report_unknown_type (https://github.com/cppformat/cppformat/issues/50)
|
2014-07-26 08:42:19 -07:00 |
|
Victor Zverovich
|
b498ba0bc5
|
FormatFloat -> format_float (https://github.com/cppformat/cppformat/issues/50)
|
2014-07-26 08:03:03 -07:00 |
|
Victor Zverovich
|
37356c3f5e
|
Comment.
|
2014-07-26 07:26:04 -07:00 |
|
Victor Zverovich
|
2a747b19e0
|
CheckPtr -> make_ptr (https://github.com/cppformat/cppformat/issues/50)
|
2014-07-25 08:41:22 -07:00 |
|
Victor Zverovich
|
d142e3b55f
|
Simplify handling of flags.
|
2014-07-25 08:29:06 -07:00 |
|
Victor Zverovich
|
d699c2a0d9
|
Don't duplicate integer format specifiers when formatting char as integer.
|
2014-07-25 08:24:27 -07:00 |
|
Victor Zverovich
|
ca0dcce2a6
|
CountDigits -> count_digits
|
2014-07-24 08:59:52 -07:00 |
|
Victor Zverovich
|
c1db293518
|
Don't use Writer's buffer directly in formatters. Unfriend BasicFormatter.
|
2014-07-24 08:53:27 -07:00 |
|
Victor Zverovich
|
a7d94f0c61
|
Fix https://github.com/cppformat/cppformat/issues/55.
|
2014-07-22 12:37:10 -07:00 |
|
Victor Zverovich
|
f1dfd59a41
|
HandleArgIndex -> handle_arg_index. Use error_ instead of a local.
|
2014-07-16 08:49:23 -07:00 |
|
Victor Zverovich
|
f86c812e1a
|
Remove unused SimpleErrorReporter.
|
2014-07-16 08:48:27 -07:00 |
|
Victor Zverovich
|
4edc88f609
|
Add FormatterBase.
|
2014-07-16 08:38:15 -07:00 |
|
Victor Zverovich
|
9144a8fbbe
|
PrintfParser -> PrintfFormatter.
|
2014-07-16 07:59:45 -07:00 |
|
Victor Zverovich
|
e2a66c58e5
|
Simplify and test ArgVisitor.
|
2014-07-16 07:55:31 -07:00 |
|
Victor Zverovich
|
9d74f9542b
|
IsNegative -> is_negative. Simplify WidthHandler and ArgFormatter.
|
2014-07-16 07:27:54 -07:00 |
|
Victor Zverovich
|
512e2ced93
|
Rewrite argument formatting using ArgVisitor.
|
2014-07-14 08:47:03 -07:00 |
|
Victor Zverovich
|
e3a2ac8725
|
Move StringValue to Arg & simplify StringTraits.
|
2014-07-14 08:04:17 -07:00 |
|
Victor Zverovich
|
591ad0a64a
|
Add ArgVisitor.
|
2014-07-14 06:55:29 -07:00 |
|
Victor Zverovich
|
e3a44c11f6
|
Add an overload of print that accepts std::ostream.
|
2014-07-09 06:56:36 -07:00 |
|
Victor Zverovich
|
1d7bd5d073
|
Add c_str functions.
|
2014-07-08 16:44:24 -07:00 |
|