Commit Graph

74 Commits

Author SHA1 Message Date
571c02d475 Add xchar support for std::byte formatter (#4480)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2025-06-23 14:02:11 -07:00
da776c9a66 Test timezone 2025-04-12 07:53:58 -07:00
dad3237514 Fix a bug when copying the fill from basic_specs
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2025-01-03 09:16:21 -08:00
880e1494dc Improve xchar support for std::bitset formatter
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2025-01-03 09:16:21 -08:00
601be1cbe7 Add support for code units > 0xFFFF in fill 2024-10-19 08:15:50 -07:00
1bde49e545 Remove FMT_USE_USER_LITERALS 2024-09-11 11:27:27 -07:00
6c90b31fbd Improve debug codegen 2024-09-08 07:49:02 -07:00
f5a16a484b Cleanup 2024-09-06 12:41:53 -07:00
79e5ae919c Fix locale tests on FreeBSD 2024-09-03 12:50:03 -07:00
377cf203e3 Add opt out for built-in types 2024-08-29 11:21:29 -07:00
0b5287f8b7 Remove unused function 2024-05-15 16:47:35 -07:00
ee0c3351a4 Fix format_to + FMT_STRING for wide character type (#3931)
Added overload that takes a wformat_string.
Fixes issue #3925.
2024-04-17 08:30:48 -07:00
c0dac83982 Use p2197 format for complex by default 2024-03-19 07:55:45 +09:00
73f2b344b2 Add std::complex formatter
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2024-03-17 15:26:18 -07:00
3a6fb2fcaf Fix some typos. (#3843) 2024-02-08 10:59:52 -08:00
f9294f0e60 Improve handling of format specs 2024-01-15 06:31:24 -08:00
d70729215f Fix constness 2024-01-14 06:44:38 -08:00
fb66131efa Improve arg storage 2024-01-08 21:25:41 -08:00
0641b844ac Cleanup string traits 2024-01-05 19:31:04 -08:00
ebd5c8f994 Consistently use fmt:: when invoking format_to. (#3779)
This has been done partially in previous commits:

* 2ac6c5ca8b
* 258000064d
* ba50c19e82
* 5ab9d39253

A patch that includes the `std::error_code` changes here is
upstream in vcpkg, so that will be able to be removed when
updating to the next release.
2024-01-01 06:57:03 -08:00
23826669cf Cleanup error handling 2023-12-31 07:51:57 -08:00
c4283ec471 Fix a libc++ warning and move the test to the right place 2023-11-25 08:20:53 -08:00
130cf54cbc Use a more sensible locale in tests 2023-10-08 10:49:21 -07:00
492a99c964 Fix error: 'char_traits<custom_char>' is deprecated: char_traits<T> for T not equal to char, wchar_t, char8_t, char16_t or char32_t is non-standard and is provided for a temporary period. It will be removed in LLVM 18, so please migrate off of it. [-Werror,-Wdeprecated-declarations] (#3634)
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2023-09-18 15:46:17 -07:00
171a020c82 Pass correct Char to base format_as formatter (#3457) 2023-05-24 14:50:47 -07:00
ea49c91cd1 Cleanup argument construction 2023-05-11 18:43:39 -07:00
ebfb2e6779 Remove unused alias 2023-05-11 10:51:32 -07:00
5780269d57 Improve API safety 2023-05-11 10:19:56 -07:00
02bf4d1c1c Disable to_string_view ADL 2023-04-09 08:49:05 -07:00
5b8302079d Add optional support (#3303) 2023-02-25 06:45:56 -08:00
87c066a35b Implement println (#3267) 2023-01-24 12:30:00 -08:00
39971eb336 Fix localized format for float-point numbers (#3272) 2023-01-15 11:47:24 -08:00
a73a9b6a84 Refactor format string checks 2022-12-30 16:03:41 -08:00
8fe4d97d5e Reduce template instantiations 2022-12-30 08:44:23 -08:00
bd12aaa98e Simplify format string parsing 2022-12-25 12:31:38 -08:00
4841784e82 Simplify C99 strftime detection conditions
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2022-12-25 10:16:19 -08:00
cb72c23e9e Improve timezone tests
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2022-12-25 10:16:19 -08:00
dfb857ebef Refactor format spec parsing 2022-12-25 07:25:32 -08:00
d1745084e0 Simplify parse context 2022-12-24 15:20:24 -08:00
115001a3b1 Formatting of system clocks ought to be to UTC, not to local time.
This improves standards conformance of fmt.
2022-12-21 14:23:02 -08:00
9254cfa6f0 Support formatting of subseconds (#3115)
* Timestamp formatting shall print also subseconds, fixed a bug for fractional durations
2022-10-12 14:33:53 -07:00
b98ffb7dbd Improve locale handling 2022-09-04 21:07:30 -07:00
f187274d36 Add loc_value 2022-09-02 13:45:23 -07:00
fc5e59fe4a Don't use stringstream 2022-09-02 13:05:26 -07:00
d6a8704605 Improve locale support 2022-09-02 11:52:19 -07:00
56c72a671c Reduce locale dependency 2022-09-02 10:22:11 -07:00
64e29893cf Improve locale support 2022-09-01 14:48:43 -07:00
e724bbea16 Fix wchar_t corner cases 2022-08-24 12:23:10 -07:00
1f95c34381 Fix sign handling with large code units 2022-08-20 07:46:58 -07:00
fc23cfbf4e Fix testsuite on MinGW + MSVCRT
Fixes #2952. The testsuite indirectly called strftime() with conversion
specifiers defined only in C99. In MSVCRT this function conforms only to
C89. Only in the updated UCRT this functon provides the functionality of
C99.
2022-08-14 08:40:38 -07:00