Commit Graph

543 Commits

Author SHA1 Message Date
vitaut
535dbdd1c8 Move formatter methods to the header
and improve naming consistency
2015-12-03 09:38:06 -08:00
vitaut
6ced4230f4 Initial support for custom formatters 2015-12-02 08:41:05 -08:00
Johan 't Hart
328c8888ec Make compilable under Visual Studio 2008
Older Visual Studio versions are not shipped with stdint.h
2015-12-01 09:34:13 +01:00
Johan 't Hart
df2dfd9612 Silence some performance warnings in Visual Studio 2015-12-01 08:59:59 +01:00
vitaut
7cbb29f61e Make FormatBuf::size() const 2015-11-25 08:27:46 -08:00
vitaut
053df632f8 Minor simplification and adjustment of coding style for consistency
in custom stream buffer implementation:

* basic_formatbuf -> internal::FormatBuf
* remove unused Traits template argument
2015-11-25 08:00:57 -08:00
vitaut
222f2d28f5 Fix MSVC warnings 2015-11-25 07:47:43 -08:00
vitaut
f60c4b9947 Fix an MSVC warning (#234) 2015-11-25 07:17:05 -08:00
vitaut
0519737b95 Don't use _ecvt (#233) 2015-11-25 07:11:28 -08:00
vitaut
9a08fb52bf Fix compilation with clang and old libstdc++ 2015-11-24 09:13:48 -08:00
Michael Kasperovich
8265263c5d Remove unnecessary stuff. 2015-11-24 09:09:09 -08:00
Michael Kasperovich
d266adf805 Implement custom stream buffer (#92) 2015-11-24 09:06:33 -08:00
vitaut
6cff6d8137 Use overloaded operator<< for enums if available (#232) 2015-11-24 08:18:19 -08:00
vitaut
646829e34d Fix MSVC warnings 2015-11-21 07:31:00 -08:00
vitaut
8beadace37 Improve detection of isinf, isnan and getsign 2015-11-21 07:20:18 -08:00
vitaut
223575b567 Tyop 2015-11-20 08:28:29 -08:00
vitaut
ee3e68dc16 Improve compatibility with bcc32 2015-11-20 08:14:10 -08:00
vitaut
e5d599875c Improve compatibility with bcc32 2015-11-20 07:56:16 -08:00
vitaut
b53994fd0d Suppress a warning 2015-11-20 07:49:29 -08:00
vitaut
fd1753484e Fix example 2015-11-19 07:23:43 -08:00
vitaut
6606971aae Improve compatibility with bcc32 2015-11-18 08:42:09 -08:00
vitaut
31aced8b59 Improve compatibility with bcc32 2015-11-18 08:04:04 -08:00
vitaut
1dd5e035eb Simplify signbit 2015-11-18 07:38:05 -08:00
vitaut
0219d5591b Improve compatibility with bcc32 2015-11-17 08:53:15 -08:00
vitaut
3a2f91bd58 Fallback to ecvt if _ecvt_s is not available. 2015-11-17 08:35:30 -08:00
vitaut
c1a8dfe555 Improve detection of signbit 2015-11-17 07:40:22 -08:00
Victor Zverovich
d9e0f5c04e Merge pull request #229 from LogicalKnight/fix_intel_warning
Fix warning when using Intel C++ on OS X
2015-11-13 16:48:34 -08:00
vitaut
7dcf05108e Move cstddef include to format.cc and refactor Buffer::append 2015-11-13 06:52:13 -08:00
Sean L
32f0295460 Fix warning when using Intel C++ on OS X
Unfortunately, Intel's C++ compiler defines `__clang__` which means that
some of the pragmas in use that Intel C++ doesn't use will cause
warnings to be generated.
2015-11-13 08:01:59 -05:00
vitaut
0550f1217c Store unsigned char value in uint_value instead of int_value 2015-11-11 06:45:27 -08:00
vitaut
8b86a74ad5 Allow formatting C strings as pointers (#223) 2015-11-09 07:17:36 -08:00
vitaut
7c24973637 Format (un)signed char as integer by default (#217) 2015-11-05 20:46:22 -05:00
Ingo van Lil
9954aa064b Disable GCC sign-compare warning in the header file 2015-11-03 11:14:48 +01:00
Ingo van Lil
f4d8884af1 Add casts to fix warnings with -Wconversion 2015-11-02 19:14:47 +01:00
Ingo van Lil
fe34b2f357 Fix bogus warning when compiling with -Wctor-dtor-privacy 2015-11-02 18:33:35 +01:00
vitaut
8af9bf1d06 Use FMT_SECURE_SCL instead of _SECURE_SCL 2015-11-02 09:22:59 -05:00
Ingo van Lil
27c2e880d0 Fix warning when building with -Wfloat-equal 2015-11-02 14:44:27 +01:00
Ingo van Lil
b4b13ee2b8 Fix warnings when compiling with -Wundef 2015-11-02 13:55:31 +01:00
vitaut
82acd483ae Fix warnings (#216) 2015-10-30 07:54:55 -07:00
vitaut
2d727e7d0e Suppress bogus coverity warnings 2015-10-28 07:01:28 -07:00
Dmitriy
b92c60c171 MSVC 2015 supports noexcept 2015-10-26 13:11:04 +03:00
vitaut
acfa858e3c Disable wchar_t instead of unsigned short overload
if _NATIVE_WCHAR_T_DEFINED is defined
2015-10-25 07:13:45 -07:00
Vyacheslav Napadovsky
4e9faed8f9 MS Visual Studio "/Zc:wchar_t-" compiler parameter support added 2015-10-25 14:37:31 +03:00
vitaut
f080b62047 Implement StringRef comparison operators
and use lexicographical comparison (#183)
2015-10-22 08:41:42 -07:00
vitaut
b2714f83cc FMT_NO_STREAM_LIBRARIES -> FMT_USE_IOSTREAMS
for consistency with similar macros and removed unnecessary
checks.
2015-10-18 08:50:35 -07:00
Victor Zverovich
6049fd9d66 Merge pull request #208 from JodiTheTigger/Make-streams-optional
Issue 205: Make iostream support optional.
2015-10-18 08:40:01 -07:00
vitaut
77b32006a3 Workaround a bug in MSVC when _CRTDBG_MAP_ALLOC is defined 2015-10-18 06:42:24 -07:00
Richard Maxwell
2cca51c744 Issue 205: Make iostream support optional. 2015-10-16 08:04:53 +13:00
Dean Moldovan
358ae822bb Update Sphinx with C++11 literals fix and add fmt::literals API docs 2015-10-13 00:35:22 +02:00
Dean Moldovan
bc6010cc21 Add _a literal for named arguments 2015-09-27 04:09:37 +02:00