Commit Graph

5427 Commits

Author SHA1 Message Date
Barry Revzin
7aca36bca4
Extending fmt::join to support C++20-only ranges. (#2549) 2021-10-16 10:02:03 -07:00
Victor Zverovich
f5371a75f4 locale.h -> format.h 2021-10-14 15:57:10 -07:00
Josh Essman
febdef43f5 fix: add workaround for intel parameter pack bug 2021-10-14 10:44:24 -07:00
Josh Essman
f56756986b fix: check to make sure both 'if constexpr' and return type deduction are available
fix: remaining ifdefs
2021-10-14 10:44:24 -07:00
Victor Zverovich
dcd282bb26 Namespace qualify calls to get 2021-10-09 07:15:14 -07:00
Oliver Lee
9c14474d30 Include <bit> when using std::bit_cast 2021-10-09 06:11:36 -07:00
Victor Zverovich
1e96e01766 Fix compiler flag check (#2540) 2021-10-09 06:05:05 -07:00
Roman-Koshelev
7e4bc94510
Speeding up write_significand() (#2499) 2021-10-09 05:27:38 -07:00
Pavel Novikov
26c1ca4c3e
Replaced default spec with equivalent one, which is potentially more optimizable (#2537) 2021-10-08 07:09:54 -07:00
Victor Zverovich
1e865b3539 Fix docs 2021-10-03 07:05:31 -07:00
Victor Zverovich
4a85db1ce1 Change default open mode to -rw-r--r-- (#2530) 2021-10-03 06:36:40 -07:00
Vladislav Shchapov
0a985fd4c6
Move size_ initialization to initializer list (#2529) 2021-10-02 17:20:33 -07:00
Victor Zverovich
012cc709d0 Workaround gcc _Pragma bug 59884 2021-10-02 15:41:47 -07:00
Victor Zverovich
d6590e3bd2 Fix compiler check 2021-10-02 08:46:18 -07:00
Victor Zverovich
134aec40f0 Fix search in docs 2021-10-02 07:58:08 -07:00
Victor Zverovich
48a476ae0f Update example (#2522) 2021-10-02 07:33:33 -07:00
Victor Zverovich
023c2018f7 Don't use strlen in constexpr 2021-10-02 07:17:05 -07:00
Victor Zverovich
800d4c8ac8 Refactor Windows workarounds 2021-10-02 06:06:08 -07:00
Mathias Born
32865aeaab
changed detection of Intel Compiler Classic to distinguish MS-Windows (#2510)
* changed detection of Intel Compiler Classic to distinguish MS-Windows

* replaced !FMT_ICC_ON_WINDOWS by FMT_ICC_POSIX
removed #pragma manged

* replaced FMT_ICC_POSIX with FMT_ICC_INTRINSIC_BUG to be crystal clear about the macro's purpose
2021-10-02 05:43:41 -07:00
Vertexwahn
7b339795a1
Describe a better approach of how to use {fmt} as a depency in a Bazel project (#2516) 2021-10-02 05:36:43 -07:00
Jonathan W
ae9bbe1169
Suppress warning C4127 in chrono.h (conditional expression is constant) (#2518) 2021-09-30 09:14:38 -07:00
Max FERGER
927dbd134d
Misplaced comma in README.rst (#2515) 2021-09-28 09:53:37 -07:00
Victor Zverovich
2a9a77dd8c Remove misplaced comment 2021-09-26 18:01:39 -07:00
Victor Zverovich
1aee4bc90a Refactor FP formatting 2021-09-26 14:37:33 -07:00
Victor Zverovich
e1bd6cc913 Refactor FP formatting 2021-09-26 10:25:46 -07:00
Victor Zverovich
027fcaf05e Replace use_grisu with fallback since Grisu is only one of multiple implemented algorithms 2021-09-26 08:44:05 -07:00
Victor Zverovich
716d69f27e Refactor FP formatting 2021-09-26 08:27:18 -07:00
Victor Zverovich
ff7e73af66 Always run grisu_gen_digits before fallback_format 2021-09-26 07:54:25 -07:00
Victor Zverovich
2976e31ac9 Refactor format_float 2021-09-25 11:20:56 -07:00
Victor Zverovich
807ee5ec31 Disable consteval in Apple clang 2021-09-25 05:55:05 -07:00
Vertexwahn
d9a731d486
Add basic support for Bazel (#2505) 2021-09-24 13:17:26 -07:00
jk-jeon
9c57357e05
Add static to a table (#2509) 2021-09-24 06:25:08 -07:00
Victor Zverovich
2742611cad Fix formatting 2021-09-18 11:09:24 -07:00
Victor Zverovich
5092b198bc Document group_digits 2021-09-18 10:50:30 -07:00
Alexey Ochapov
b4d9d82e1d
make FP formatting available to be used at compile-time (#2426)
* works only with FMT_HEADER_ONLY
* works only with float and double types (not long double)
2021-09-18 08:03:23 -07:00
Vladislav Shchapov
d9fd695ac7 Fix wchar_t tm formatting 2021-09-15 07:33:24 -07:00
Vladislav Shchapov
92614ecbf9 Optimize %T in tm formatting 2021-09-15 07:33:24 -07:00
Victor Zverovich
aaeca12d89 Move FMT_MAYBE_UNUSED to format.h where it is used 2021-09-13 07:51:36 -07:00
Victor Zverovich
3d0c7ae385 Move data to format.cc 2021-09-13 06:23:57 -07:00
Victor Zverovich
04e3a79f76 Use memcpy in more cases in copy2 2021-09-12 12:23:45 -07:00
Roman-Koshelev
e47e99bb09
Simplify format_decimal (#2498)
* Add copy2() constexpr

* Removed redundant format_decimal implementation for constexpr context
2021-09-12 10:36:06 -07:00
Victor Zverovich
9b6b0e403c Remove data 2021-09-12 09:46:00 -07:00
Victor Zverovich
4d1c6034eb Deprecate basic_data 2021-09-12 09:37:23 -07:00
Victor Zverovich
a3348eccdd Deprecate most of basic_data 2021-09-12 08:59:39 -07:00
Victor Zverovich
3a04481485 Remove data::hex_digits 2021-09-11 17:54:40 -07:00
Victor Zverovich
ad77331c04 Move log10_2_significand to format-inl.h 2021-09-11 09:36:23 -07:00
Victor Zverovich
d9ebc4e821 Add a function to get sign char 2021-09-11 09:17:59 -07:00
Victor Zverovich
c00eb4f4c6 Add missing inline 2021-09-10 09:01:18 -07:00
Victor Zverovich
25af02f21a positive -> nonnegative (#2493) 2021-09-10 08:52:54 -07:00
Victor Zverovich
67cb2dad37 Optimize %F in tm formatting 2021-09-10 07:48:50 -07:00