Commit Graph

  • e0136fc8bd Qualify calls to make_wformat_args. Fixes #2639. (#2641) Marek Kurdej 2021-12-10 15:36:42 +01:00
  • ac1b5f3da5 Refactor problematic trailing returns in arg_mapper Victor Zverovich 2021-12-09 18:08:22 -08:00
  • fd62fba985 Don't convert scoped enums to integers Victor Zverovich 2021-12-09 11:11:17 -08:00
  • c652f8243a Make header guard consistent with header name Victor Zverovich 2021-12-09 10:49:47 -08:00
  • a9c7b9b8f7 Clarify that _format is deprecated Victor Zverovich 2021-12-09 10:34:27 -08:00
  • e4f0564aa6 Disable is_streamable for string[_view] Victor Zverovich 2021-12-09 09:48:55 -08:00
  • 91533d3c33 Minor tweaks to chrono subsecond formatting Victor Zverovich 2021-12-09 06:55:31 -08:00
  • 0bbc9708f9 Implement c++20 std::chrono::duration subsecond formatting (#2623) matrackif 2021-12-09 15:45:13 +01:00
  • 9d5b9defde Enable tzset only on Windows desktop app (#2633) Vladislav Shchapov 2021-12-08 04:22:36 +05:00
  • 215f21a038 Detect overflow on large precision Victor Zverovich 2021-12-05 07:12:10 -08:00
  • c240d98ffd Optimize tm formatting (Non C-locales and %Z) (#2617) Vladislav Shchapov 2021-12-05 00:02:31 +05:00
  • 6ab73113fc Mark grow as FMT_CONSTEXPR20 (#2630) Andrew Corrigan 2021-12-03 10:13:30 -05:00
  • 713c7c7c62 Cleanup os.cc Victor Zverovich 2021-12-01 06:47:41 -08:00
  • 9b1807a8a2 fix int -> uint warning (#2611) Acretock 2021-12-01 19:40:17 +05:00
  • ec3b097cb9 [doc] FMT_STRING supports C++14 and no-op in C++11 (#2620) Lounarok 2021-11-28 23:02:15 +08:00
  • c472a27818 Fix handling of very large precision in fixed format Victor Zverovich 2021-11-27 08:23:05 -08:00
  • 201971e293 Make MSVC use [[nodiscard]] (#2615) Alex Guteniev 2021-11-26 17:32:50 +02:00
  • acad8cfab1 Reformat all source code; no functional changes Florin Iucha 2021-11-25 11:52:21 -05:00
  • 491ba2dda5 Annotate fmt::format and fmt::formatted_size as [[nodiscard]] Florin Iucha 2021-11-24 17:09:41 -05:00
  • 5abe9e8266 Add platform-specific 'z' formatter Vladislav Shchapov 2021-11-13 14:31:57 +05:00
  • be3a3a5aed Use predefined formats for C-locale Vladislav Shchapov 2021-11-11 21:33:33 +05:00
  • a3ab36c803 Formatting of function pointers, member function pointers, member object pointers... (#2610) Alex Guteniev 2021-11-23 22:55:22 +02:00
  • 19cac63fe4 Broken link in README.rst Eric Curtin 2021-11-19 16:43:48 +00:00
  • 43419a4ada Workaround a bug in gcc Victor Zverovich 2021-11-19 07:32:42 -08:00
  • c089f7d497 Simplify std::tm formatter Vladislav Shchapov 2021-11-13 22:51:13 +05:00
  • aa5517f6b9 Reuse tm_writer in chrono_formatter Vladislav Shchapov 2021-11-13 22:46:16 +05:00
  • 50140be7ae Reuse tm_writer in weekday formatter Vladislav Shchapov 2021-11-13 22:45:25 +05:00
  • 8b89454994 Improve consistency Victor Zverovich 2021-11-13 08:59:56 -08:00
  • 5380ff4d88 Detect types convertible to unformattable pointers Victor Zverovich 2021-11-13 08:26:27 -08:00
  • 094b66e81d changed locale retrieval way to a fancy one Pavel Novikov 2021-11-12 23:28:59 +03:00
  • b69ae4854c Reorder classes (#2591) Vladislav Shchapov 2021-11-11 06:09:23 +05:00
  • 0b843af56b sped up chrono.h formatting for cases without providing locale (#2576) Pavel Novikov 2021-11-07 19:52:57 +03:00
  • 12b1d8b14a Fix precision 0 with std::chrono::duration and added additional tests. (#2588) lukester1975 2021-11-06 15:57:22 +00:00
  • e67f92c55c Cleanup warnings with nvhpc/21.9. (#2582) Olli Lupton 2021-11-05 20:17:11 +01:00
  • 812733cc96 const qualify format function for systen_clock Victor Zverovich 2021-10-31 09:41:16 -07:00
  • 028f227752 Handle implicit conversions in write Victor Zverovich 2021-10-31 08:09:32 -07:00
  • 5b0aa638cf Minor grammar fix Victor Zverovich 2021-10-30 09:14:13 -07:00
  • 6eaceb5f73 Fix incompatible between docutils 1.18.0 and sphinx 3.3.0 (#2575) Vladislav Shchapov 2021-10-30 21:12:36 +05:00
  • 0697c5edb6 FMT_USE_FCNTL can be predefined (#2573) timkalu 2021-10-30 17:35:48 +02:00
  • 1031eedf27 Replacing strftime with std::time_put (#2550) Vladislav Shchapov 2021-10-30 20:25:45 +05:00
  • 90034e4c4b Add FMT_ASSERT and validation of values of struct tm members (#2564) Vladislav Shchapov 2021-10-28 01:29:07 +05:00
  • df40e94673 Upgrade module-test to msvc 16.11.5 and 17.0-pre5 (#2558) Daniela Engert 2021-10-24 17:12:39 +02:00
  • e6d5059cbb Simplify js tag in basic-bootstrap theme (#2562) zhsj 2021-10-24 21:36:10 +08:00
  • 3b6e409cd8 Enable consteval for msvc 17.0-pre5 (#2559) Daniela Engert 2021-10-23 16:19:57 +02:00
  • 249f03bbb7 do not detect LLVM based IBMXL compiler (on ppc) as clang (#2555) Axel Kohlmeyer 2021-10-20 09:21:49 -04:00
  • 7463c83205 Fix overflow for very bigger years (>2*10^9) (#2551) Vladislav Shchapov 2021-10-19 19:04:55 +05:00
  • 1266c2b600 Fix handling of exotic character types Victor Zverovich 2021-10-17 08:58:41 -07:00
  • 684e2fdc94 Minor cleanup Victor Zverovich 2021-10-17 06:33:27 -07:00
  • a1d586302f Minor cleanup Victor Zverovich 2021-10-17 06:07:03 -07:00
  • 7a604cdd98 Cleanup Vladislav Shchapov 2021-10-17 01:27:10 +05:00
  • aeb54b0dd9 Fix bug on '%Y' and '%C' formats with negative years Requested changes Vladislav Shchapov 2021-10-16 22:17:11 +05:00
  • f88c020fc0 Generalization of strftime/wcsftime function calls in tests Vladislav Shchapov 2021-10-14 22:06:49 +05:00
  • 2eeddba756 Renaming, splitting of functions Vladislav Shchapov 2021-10-14 18:31:41 +05:00
  • 2754546080 Fix errors in ISO week-base-year formatter Vladislav Shchapov 2021-10-14 17:50:16 +05:00
  • 218cecb6d1 Fix error in test Vladislav Shchapov 2021-10-14 17:07:33 +05:00
  • e9f4453b0e Fix Microsoft Visual Studio 14.0 build Vladislav Shchapov 2021-10-13 21:15:41 +05:00
  • 27c3674ce1 Improve performance Vladislav Shchapov 2021-10-13 20:45:08 +05:00
  • 5dc3dd3d4a New tests Vladislav Shchapov 2021-10-13 20:26:11 +05:00
  • f8542cd988 Unified formatters for std::chrono::time_point<std::chrono::system_clock, Duration> and std::tm Vladislav Shchapov 2021-10-10 21:43:55 +05:00
  • 4707373d33 Fix year formatter Vladislav Shchapov 2021-10-10 21:08:04 +05:00
  • 79c00ad8f2 Improve ISO week-base-year formatter Vladislav Shchapov 2021-10-10 19:52:02 +05:00
  • fbaaa5906b Improve week of the year formatter Vladislav Shchapov 2021-10-10 17:39:39 +05:00
  • cde44ddb72 Improve year formatter Vladislav Shchapov 2021-10-10 13:50:43 +05:00
  • b04601b918 Switch from std::strftime/std::wcsftime to internal implementation for locale independent formats Vladislav Shchapov 2021-10-10 00:23:47 +05:00
  • d3d30a46f0 New tests Vladislav Shchapov 2021-10-09 23:17:51 +05:00
  • 7911d8d3f5 Add format spec checker Vladislav Shchapov 2021-10-09 19:12:26 +05:00
  • fbbfc3b03c Reorder formatters Vladislav Shchapov 2021-10-09 16:55:40 +05:00
  • 509eac9575 Workarounds for implementation-defined std::strftime behavior Vladislav Shchapov 2021-10-09 16:47:13 +05:00
  • 85b38190d1 New tests for all C++11 std::strftime format specifiers Vladislav Shchapov 2021-10-09 16:27:02 +05:00
  • 7aca36bca4 Extending fmt::join to support C++20-only ranges. (#2549) Barry Revzin 2021-10-16 12:02:03 -05:00
  • f5371a75f4 locale.h -> format.h Victor Zverovich 2021-10-14 15:57:10 -07:00
  • febdef43f5 fix: add workaround for intel parameter pack bug Josh Essman 2021-10-14 10:21:40 -07:00
  • f56756986b fix: check to make sure both 'if constexpr' and return type deduction are available Josh Essman 2021-10-13 17:43:05 -05:00
  • dcd282bb26 Namespace qualify calls to get Victor Zverovich 2021-10-09 06:43:48 -07:00
  • 9c14474d30 Include <bit> when using std::bit_cast Oliver Lee 2021-10-09 13:02:03 +02:00
  • 1e96e01766 Fix compiler flag check (#2540) Victor Zverovich 2021-10-09 06:05:05 -07:00
  • 7e4bc94510 Speeding up write_significand() (#2499) Roman-Koshelev 2021-10-09 15:27:38 +03:00
  • 26c1ca4c3e Replaced default spec with equivalent one, which is potentially more optimizable (#2537) Pavel Novikov 2021-10-08 17:09:54 +03:00
  • 1e865b3539 Fix docs Victor Zverovich 2021-10-03 07:05:31 -07:00
  • 4a85db1ce1 Change default open mode to -rw-r--r-- (#2530) Victor Zverovich 2021-10-03 06:10:38 -07:00
  • 0a985fd4c6 Move size_ initialization to initializer list (#2529) Vladislav Shchapov 2021-10-03 05:20:33 +05:00
  • 012cc709d0 Workaround gcc _Pragma bug 59884 Victor Zverovich 2021-10-02 13:35:12 -07:00
  • d6590e3bd2 Fix compiler check Victor Zverovich 2021-10-02 08:46:18 -07:00
  • 134aec40f0 Fix search in docs Victor Zverovich 2021-10-02 07:58:08 -07:00
  • 48a476ae0f Update example (#2522) Victor Zverovich 2021-10-02 07:33:33 -07:00
  • 023c2018f7 Don't use strlen in constexpr Victor Zverovich 2021-10-02 07:03:08 -07:00
  • 800d4c8ac8 Refactor Windows workarounds Victor Zverovich 2021-10-02 06:06:08 -07:00
  • 32865aeaab changed detection of Intel Compiler Classic to distinguish MS-Windows (#2510) Mathias Born 2021-10-02 14:43:41 +02:00
  • 7b339795a1 Describe a better approach of how to use {fmt} as a depency in a Bazel project (#2516) Vertexwahn 2021-10-02 14:36:43 +02:00
  • ae9bbe1169 Suppress warning C4127 in chrono.h (conditional expression is constant) (#2518) Jonathan W 2021-09-30 18:14:38 +02:00
  • 927dbd134d Misplaced comma in README.rst (#2515) Max FERGER 2021-09-28 18:53:37 +02:00
  • 2a9a77dd8c Remove misplaced comment Victor Zverovich 2021-09-26 18:01:39 -07:00
  • 1aee4bc90a Refactor FP formatting Victor Zverovich 2021-09-26 14:37:33 -07:00
  • e1bd6cc913 Refactor FP formatting Victor Zverovich 2021-09-26 09:00:09 -07:00
  • 027fcaf05e Replace use_grisu with fallback since Grisu is only one of multiple implemented algorithms Victor Zverovich 2021-09-26 08:44:05 -07:00
  • 716d69f27e Refactor FP formatting Victor Zverovich 2021-09-26 08:20:28 -07:00
  • ff7e73af66 Always run grisu_gen_digits before fallback_format Victor Zverovich 2021-09-26 07:54:25 -07:00
  • 2976e31ac9 Refactor format_float Victor Zverovich 2021-09-25 08:34:56 -07:00
  • 807ee5ec31 Disable consteval in Apple clang Victor Zverovich 2021-09-25 05:55:05 -07:00
  • d9a731d486 Add basic support for Bazel (#2505) Vertexwahn 2021-09-24 22:17:26 +02:00