Commit Graph

  • 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
  • 9c57357e05 Add static to a table (#2509) jk-jeon 2021-09-24 06:25:08 -07:00
  • 2742611cad Fix formatting Victor Zverovich 2021-09-18 11:09:24 -07:00
  • 5092b198bc Document group_digits Victor Zverovich 2021-09-18 10:47:51 -07:00
  • b4d9d82e1d make FP formatting available to be used at compile-time (#2426) Alexey Ochapov 2021-09-18 18:03:23 +03:00
  • d9fd695ac7 Fix wchar_t tm formatting Vladislav Shchapov 2021-09-13 12:12:36 +05:00
  • 92614ecbf9 Optimize %T in tm formatting Vladislav Shchapov 2021-09-13 11:42:26 +05:00
  • aaeca12d89 Move FMT_MAYBE_UNUSED to format.h where it is used Victor Zverovich 2021-09-13 07:51:36 -07:00
  • 3d0c7ae385 Move data to format.cc Victor Zverovich 2021-09-12 20:36:39 -07:00
  • 04e3a79f76 Use memcpy in more cases in copy2 Victor Zverovich 2021-09-12 12:23:45 -07:00
  • e47e99bb09 Simplify format_decimal (#2498) Roman-Koshelev 2021-09-12 20:36:06 +03:00
  • 9b6b0e403c Remove data Victor Zverovich 2021-09-12 09:46:00 -07:00
  • 4d1c6034eb Deprecate basic_data Victor Zverovich 2021-09-12 09:29:56 -07:00
  • a3348eccdd Deprecate most of basic_data Victor Zverovich 2021-09-12 08:36:46 -07:00
  • 3a04481485 Remove data::hex_digits Victor Zverovich 2021-09-11 17:54:40 -07:00
  • ad77331c04 Move log10_2_significand to format-inl.h Victor Zverovich 2021-09-11 09:36:23 -07:00
  • d9ebc4e821 Add a function to get sign char Victor Zverovich 2021-09-11 08:47:55 -07:00
  • c00eb4f4c6 Add missing inline Victor Zverovich 2021-09-10 08:59:22 -07:00
  • 25af02f21a positive -> nonnegative (#2493) Victor Zverovich 2021-09-10 08:52:54 -07:00
  • 67cb2dad37 Optimize %F in tm formatting Victor Zverovich 2021-09-10 07:33:45 -07:00
  • 1aa98f8b93 Eliminate double copying in vformat_to_n (#2489) Roman-Koshelev 2021-09-09 18:10:29 +03:00
  • a58c133821 Improve code_point_length codegen on older gcc Victor Zverovich 2021-09-07 19:34:13 -07:00
  • aeee70a815 Remove unnecessary cast Victor Zverovich 2021-09-06 21:14:11 -07:00
  • c771ba361c Fix build for the clang-10 / libstdc++-9 couple (#2491) Jean-Michaël Celerier 2021-09-07 17:52:34 +02:00
  • ab6e2272cc Clarify shifts encoding Victor Zverovich 2021-09-06 18:45:34 -07:00
  • e4728409e7 Use throw_format_error in more places to reduce bloat Victor Zverovich 2021-09-06 16:42:17 -07:00
  • e3ebf366a6 Inline padding shifts Victor Zverovich 2021-09-06 16:26:50 -07:00
  • 894faf3fed Refactor presentation types Victor Zverovich 2021-09-06 10:24:21 -07:00
  • 4eb97fa4e3 Reduce code bloat Victor Zverovich 2021-09-05 16:22:15 -07:00
  • 6b55c83252 is_const_formattable -> has_const_formatter Victor Zverovich 2021-09-05 08:35:08 -07:00
  • 2fe94ad7e3 Make specifiers support in tuple_join an opt-in Victor Zverovich 2021-09-05 07:34:06 -07:00
  • 3940de5952 thousands -> group_digits Victor Zverovich 2021-09-05 06:47:18 -07:00
  • c4d0f96a6d Implement format specs in fmt::thousands Victor Zverovich 2021-09-04 06:47:21 -07:00
  • 3b9c442689 Implement thousands separators without locales Victor Zverovich 2021-09-03 22:04:58 -07:00
  • 08f98c7fac Simplify get_arg_index_by_name Victor Zverovich 2021-09-03 21:17:36 -07:00
  • a151f955a0 Remove FMT_OVERRIDE Victor Zverovich 2021-09-03 18:15:17 -07:00
  • 42a225cbd9 Remove redundand final Victor Zverovich 2021-09-03 17:31:06 -07:00
  • bf20d19901 Simplify the core API Victor Zverovich 2021-09-03 16:43:58 -07:00
  • fc0884037e Move FMT_GCC_VISIBILITY_HIDDEN to format.h Victor Zverovich 2021-09-03 16:25:58 -07:00
  • 1aeed2dbca Require inline namespaces Victor Zverovich 2021-09-03 15:59:23 -07:00
  • 799bea4730 Remove FMT_HAS_GXX_CXX11 Victor Zverovich 2021-09-03 15:49:40 -07:00