Commit Graph
786 Commits
Author SHA1 Message Date
Victor Zverovich af00e4f9c9 Remove printf_arg_formatter from format.h and cleanup 2017-09-04 12:28:53 -07:00
Victor Zverovich 0fbd846561 Replace fmt::internal::make_unsigned with std::make_unsigned 2017-09-04 11:41:15 -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 3e75d3e001 Fix handling of types convertible to int 2017-09-02 07:08:19 -07:00
Alex Alabuzhev 89654cd127 to_wstring added 2017-08-27 18:52:57 +02: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 27ad6cee82 Use standard enable_if 2017-08-26 10:41:58 -07:00
Victor Zverovich 64681739fd Fix a warning 2017-08-26 09:32:37 -07:00
Victor Zverovich 016acebb56 Remove legacy code 2017-08-26 09:09:43 -07:00
Victor Zverovich 466386d5cd Suppress a warning in gmock 2017-08-26 08:50:09 -07:00
Victor Zverovich 5e0562ab51 Separate parsing and formatting 2017-08-13 13:09:02 -07:00
Victor Zverovich 032c83807f Fix a segfault in test on glibc 2.26 #551, take 2 2017-08-10 09:27:06 -07:00
Victor Zverovich 6655e804c4 Fix a segfault in test on glibc 2.26 #551 2017-08-06 20:18:04 -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 d16582a038 Move printf-related code to printf.cc 2017-07-15 09:46:18 -04:00
Mario Werner ac5484c4e7 add alias targets with fmt namespace
For the consumer it should not matter if fmt has been added to the
project as subdirectory or via find_package. With the alias targets
the library can be always imported via fmt::fmt.
2017-05-25 14:36:16 +03:00
Mario Werner 746adc5e71 added new namespace to the header only target in the find package test 2017-05-25 14:36:16 +03:00
Bjoern Thiel 048d2aec27 CMake imported targets should be namespaced 2017-05-21 14:17:12 +03:00
Victor Zverovich 07ed421521 Fix handling of implicit conversion to integral types larger than int (#507) 2017-05-06 10:23:20 -07:00
Victor Zverovich dcfd40a1b8 Revert #456
Revert #456 because it causes issues for known types (#495) and is not C++98-compatible.
2017-05-06 08:36:54 -07:00
Andreas Schönle 79f11dbaa7 Allow compiling and using as DLL in windows (#502)
* printf.h fixed to compile clean - need to check whether this is the right
thing to do

* fix warnings and errors in test compiles with BUILD_SHARED_LIBS

* did requested changes and added one change to allow all tests to succeed
in windows DLL
2017-05-05 14:58:09 +02:00
effzeh 73ca9948fe Fix FormatBuf implementation (#491)
Fixes #491 (and probably #480) Before, the put-area of the custom streambuf
implementation was (sometimes) incorrectly extended beyond the writeable buffer.
The new implementation is in some cases not as efficient as the old, but avoids
to write into uninitialized memory.
2017-04-08 09:07:33 -07:00
Arthur Danskin cbac016cce %.f should have zero precision, not default precision 2017-04-08 07:18:10 -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 b4f4b7e21a Clean the buffer API (#477) 2017-03-12 09:48:21 -07:00
Victor Zverovich f423e46835 Replace clear() with resize(0) and data_ -> store_ 2017-03-11 08:30:15 -08:00
Victor Zverovich 7175bd8ae6 Fix error on MinGW 2017-03-09 06:09:43 -08:00
Victor Zverovich 7258d1b8f3 Fix tests 2017-03-08 08:08:08 -08:00
Victor Zverovich 3610f34c70 Fix windows build 2017-03-04 07:10:54 -08:00
Victor Zverovich 6f8006c2ce Add printf overloads that takes a writer (#476) 2017-02-25 09:58:42 -08:00
Victor Zverovich db0d54f855 Fix error on MinGW 2017-02-25 09:00:56 -08: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 4ec8860783 ArgFormatter -> arg_formatter 2017-02-18 07:46:32 -08:00
Victor Zverovich 50e716737d StringRef -> string_view, LongLong -> long_long 2017-02-18 07:34:52 -08:00
Victor Zverovich e022c21ddc Fix windows build 2017-02-18 06:29:33 -08:00
Victor Zverovich 87b691d80c Merge StringWriter into StringBuffer 2017-02-17 06:23:16 -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 6e568f3a08 buffer -> basic_buffer 2017-02-14 12:08:37 -05:00
olivier80 a00006119f Add join argument allowing formating list of values separated by a (#466)
Add join argument allowing formating list of values separated by a
string. Each value is formated according the format specifier.
2017-02-08 06:55:12 -08: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 7ae8bd7073 basic_format_arg -> basic_arg, Buffer -> buffer 2017-02-05 06:09:06 -08:00