Rich E
ad6d78f2a8
added FMT_API declarations where needed when using FMT_EXPORT from a separate dll
2017-02-12 12:14:58 -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
Magnus Bjerke Vik
bc6af7548b
Fix Android not being detected with latest NDK toolchain ( #458 )
...
When using the NDK 13b toolchain standalone or with CMake, ANDROID is not defined,
but __ANDROID__ is defined instead.
2017-01-20 11:20:43 +01:00
Andreone
67662702aa
allow to stream user defined types in a MemoryWriter ( #456 )
...
* allow to stream user defined types in a MemoryWriter
* fix indent
* follow Google C++ Style
* make code c++98 compatible
* fix macro usage
* disable ability to stream user defined types if not at least c++11
* fix for disable ability to stream user defined types if not at least c++11
* use FMT_STATIC_ASSERT
2017-01-19 20:47:43 +01:00
Victor Zverovich
9e9ad57f58
Workaround an nvcc bug
2017-01-19 06:24:15 -08:00
Calum Robinson
a2596d685d
Fix missing intrinsic when included from C++/CLI
...
Managed C++ code doesn't have the _BitScanReverse* intrinsics, we must use the fallback code for count_digits etc.
2017-01-18 06:23:25 -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
Jean-Charles Lefebvre
e0251fdcef
BasicContainerWriter utility added
2017-01-05 20:44:35 -08:00
Jean-Charles Lefebvre
e1689cb985
Custom FormatSpec ( #439 ) ( #444 )
...
* A custom FormatSpec type can be passed as a template argument to the ArgFormatter chain (#439 )
* Corrected nested-name-specifier error
* Spec template argument defaulted to FormatSpec
* Forward declaration of FormatSpec
* Style
* Style (part 2)
* Style (part 3)
2016-12-30 11:29:40 -08:00
Eric Fiselier
b9aaa507fc
Don't export the -std=c++11 flag from the fmt target
2016-12-29 16:04:16 -08:00
Andrey Glebov
db780cb119
Add std::basic_string allocator support to StringRef, StringBuffer and relatives ( #441 )
...
* - added basic_string allocator support to BasicStringRef, BasicCStringRef, BasicWriter::str, StringBuffer and BasicStringWriter
* - removed templated str() and to_string() function
- code style fixes
2016-12-26 08:36:56 -08:00
Victor Zverovich
796beaaddb
Fix collision with global convert function ( #425 )
2016-11-19 12:05:49 -08:00
Victor Zverovich
def687462c
Fix signbit detection ( #423 )
2016-11-14 20:14:52 -08:00
alabuzhev
25f8ad13dd
Correction of 418 ( #420 )
2016-11-11 18:27:39 +01:00
alabuzhev
1d2049b53e
Issue #418 - Minimal supported library subset ( #419 )
2016-11-10 20:29:12 +01:00
Victor Zverovich
f5b1c16e2c
Add version macro FMT_VERSION ( #411 )
2016-11-07 19:04:44 -08:00
Victor Zverovich
cfd00af37a
Fix warnings on C++98
2016-11-06 12:58:49 -08:00
Victor Zverovich
6274401919
Fix warnings
2016-11-06 12:37:31 -08:00
Victor Zverovich
2fa4655af6
Fix warning in FMT_STATIC_ASSERT on older GCC ( #414 )
2016-11-06 11:48:01 -08:00
Chen Hayat
05ba3e7888
Fix Klockwork compilation warning
2016-11-06 10:01:55 -08:00
Victor Zverovich
1daddec151
FMT_NULLPTR -> FMT_NULL and improve formatting
2016-11-06 09:05:58 -08:00
Jonathan Müller
d8867a2b07
Fix missing '>'
2016-11-05 21:09:31 +01:00
Jonathan Müller
6c0125785b
Add extern templates for format_float
...
Fixes #413 .
2016-11-05 21:03:40 +01:00
alabuzhev
49ccb2e449
Using FMT_NULLPTR instead of literal 0
2016-11-03 06:39:40 -07:00
Lectem
8f455c10b0
fix newer clang warnings
2016-11-01 07:05:34 -07:00
Jan Hellwig
15d0f32773
Fix Windows compilation with -fno-exceptions ( #405 )
2016-10-31 21:55:52 +01:00
Jan Hellwig
8c63ea432c
Fix Linux compilation with -fno-exceptions ( #402 )
2016-10-29 16:16:40 -07:00
Victor Zverovich
abbefd7166
CHAR_WIDTH -> CHAR_SIZE to avoid collision with ISO/IEC TS 18661-1:2014 macro
2016-10-19 06:52:55 -07:00
Victor Zverovich
ed874df293
Merge branch 'master' of github.com:fmtlib/fmt
2016-10-17 07:00:58 -07:00
codicodi
1e018e65cb
Thread-safe time formatting
...
This adds thread-safe (at least on platforms that provide necessary extensions) replacement functions for std::localtime and std::gmtime. Alternatively they could be placed in a new source file time.cc, but time.h seems so empty right now...
2016-10-17 07:00:04 -07:00
chronoxor
1500f00525
Remove unnecessary "fmt/" prefix which should be maintained with additional include_directories() in each project. ( #397 )
2016-10-11 06:45:04 -07:00
Victor Zverovich
cee50b7572
Fix compilation on Cygwin ( #388 )
2016-10-01 21:32:16 -07:00
Victor Zverovich
f66d37fb1c
Merge pull request #390 from chronoxor/master
...
Introduced NamedArgWithType<Char, T> : NamedArg<Char>
2016-09-29 08:11:46 -07:00
Ivan Shynkarenka
1546b9e336
Introduced NamedArgWithType<Char, T> : NamedArg<Char>
2016-09-28 00:18:09 +03:00
Victor Zverovich
17c17d1585
Merge pull request #389 from chronoxor/master
...
Extend ArgLists to support serialization/deserialization in third-party components
2016-09-27 08:11:36 -07:00
Ivan Shynkarenka
d09dd1a81a
Extend ArgLists to support serialization/deserialization in third-party components
2016-09-27 17:40:05 +03:00
Jean-Michaël Celerier
9ec3bea2d6
Add FMT_OVERRIDE macro to allow specifying overriding functions in c++11 compilers
2016-09-24 21:10:11 +02:00
Hugh Wang
5f26b5da28
Fix compilation on Android.
2016-09-13 10:34:54 +08: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
a5d0adf395
Use a heuristic to detect empty strftime result ( #367 )
2016-08-05 07:27:56 -07:00
Victor Zverovich
1a23f9c274
Correct buffer growth when formatting time ( #367 )
2016-08-04 08:47:59 -07:00
Victor Zverovich
9dbb60c4c8
Move fmt::fprintf to printf.h
2016-08-03 08:52:05 -07:00
Victor Zverovich
6ee9f2ed09
Make printf argument formatters public ( #335 , #360 )
2016-07-21 06:59:28 -07:00
Victor Zverovich
631ffef438
Merge pull request #361 from nmoehrle/fix-unreachable-code
...
Remove unreachable code below FMT_THROW
2016-07-21 06:35:38 -07:00
Victor Zverovich
355861f1ff
Document PrintfFormatter::format
2016-07-20 08:26:14 -07:00
Victor Zverovich
ab054532ce
Move writer to PrintfFormatter object for consistency with BasicFormatter
2016-07-20 08:21:13 -07:00
Victor Zverovich
d4ddaaf2b1
Make PrintfFormatter public ( #335 , #360 )
2016-07-20 08:09:14 -07:00
Nils Moehrle
c8c9973669
Remove unreachable code below FMT_THROW
2016-07-19 20:33:55 +02:00
Victor Zverovich
65cd664195
Fix handling of wide strings in StringWriter
2016-07-18 08:47:11 -07:00