Commit Graph

149 Commits

Author SHA1 Message Date
Victor Zverovich 4cf59ce734 Integrate Grisu and sprintf digit generators 2019-11-23 06:56:29 -08:00
Victor Zverovich 7395472dde Refactor floating-point formatting 2019-11-22 18:49:19 -08:00
Victor Zverovich 2bc5585ff0 Fix computing lower boundaries for smallest normalized double 2019-10-18 17:56:52 -07:00
Orivej Desh 599e0aef45 Support single precision floats in grisu formatting
Fixes #1336
2019-10-18 07:08:41 -07:00
Victor Zverovich 1cbc5fa6cb Handle negative exponent and rename value/pow10 to numerator/denominator 2019-10-13 12:50:48 -07:00
Victor Zverovich f7a5748fd3 Partially implement (FPP)^2 2019-10-13 09:28:35 -07:00
Victor Zverovich 5e58eb97b1 Implement add_compare 2019-10-13 08:05:06 -07:00
Victor Zverovich b55551f900 Implement more comparison operators 2019-10-12 09:22:24 -07:00
Victor Zverovich e4d6d9d7c8 Implement divmod 2019-10-09 13:40:50 -07:00
Victor Zverovich b60114533f Implement more bigint operations 2019-10-06 12:49:23 -07:00
Victor Zverovich c41cea8b18 Initial implementation of square 2019-10-05 16:37:52 -07:00
Victor Zverovich c85ae23c73 Add max_value 2019-09-08 09:21:30 -07:00
Victor Zverovich b3bf665764 Implement multiplication and part of assignment from pow of 10 2019-09-08 08:27:00 -07:00
Victor Zverovich 0887887e23 Implement left shift 2019-09-07 18:10:36 -07:00
Victor Zverovich ac71d853be Refactor normalize and clean up 2019-09-07 17:28:59 -07:00
Victor Zverovich 56b5c192a0 Add a bigint stub and reenable grisu 2019-09-07 13:50:22 -07:00
Deniz Evrenci 6de0454b42 Add support for built-in __int128 when available 2019-09-04 07:05:08 -07:00
Victor Zverovich e76446958c Cleanup and remove deprecated visit 2019-07-03 14:31:01 -07:00
Vedran Miletić c2e84ee9cc Fix FormatTest.StrError on Solaris 2019-07-03 06:09:24 -07:00
Victor Zverovich e29708ee57 uintptr -> fallback_uintptr to avoid confusion with uintptr_t 2019-06-14 18:47:36 -07:00
Victor Zverovich f03a6c5325 Cleanup 2019-06-14 13:38:44 -07:00
Victor Zverovich 874d6727e4 Remove workarounds for pre-C++11 compilers 2019-06-13 20:56:08 -07:00
Victor Zverovich e5422db4b2 Fix handling of uintptr_t 2019-06-12 08:16:41 -07:00
Victor Zverovich d07cc2026b FMT_EXPLICIT -> explicit, FMT_NULL -> nullptr 2019-05-30 07:42:36 -07:00
Victor Zverovich ea2976e6d5 Move internal::uintptr_t test to format-impl-test (#1152) 2019-05-11 06:58:22 -07:00
denchat 3fd134be03 Move test_count_digits to format-impl-test and disable gtest warnings (#1147)
* This translation unit includes `gtest.h` in which using something like `strncpy`

Suppress MSVC warnings from `gtest.h` included.

Warning sample:
fmt-master\test\gtest\gtest.h(2873,10): warning: 'strncpy' is deprecated: This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]

* Moving `test_count_digits` to format-impl-test then count_digits<4>(internal::uintptr_t) shall not be exported

* retaining _CRT_SECURE_NO_WARNINGS always defined should be no harms.
2019-05-07 12:09:11 -07:00
Victor Zverovich 8d8ea21c69 Partially implement Grisu3 2019-04-27 12:17:21 -07:00
Bruce Mitchener aeb5ad3ce1 Enable [[noreturn]] some. 2019-04-08 07:53:59 -07:00
Victor Zverovich 07d5a86a7c Fix warnings 2019-04-06 22:10:10 -07:00
Victor Zverovich a82b3680dc More tests and fixed precision fixes 2019-03-13 19:47:07 -07:00
Victor Zverovich 1632f72cbe Test get_round_direction 2019-03-10 11:14:50 -07:00
Victor Zverovich 835087dd04 Add color-test 2019-03-10 07:57:29 -07:00
Victor Zverovich a97757736b Use grisu for fixed precision 2019-02-23 15:50:50 -10:00
Victor Zverovich 8af651be39 Implement fixed precision 2019-02-22 10:47:27 -10:00
Victor Zverovich 5a314a5288 Eliminate extra copy on floating-point formatting 2019-02-06 10:17:50 -08:00
Elias Kosunen 7fbbfed8c6 Fix warnings caused by usage of deprecated functionality 2019-02-02 05:48:39 -08:00
Victor Zverovich 58b6f8db48 Format the code using clang-format 2019-01-13 06:58:20 -08:00
Denis Blank ae1de3a8d3 Add support for using text_style in format and vformat directly (#993)
* Closes #993
2019-01-01 09:26:54 -05:00
Nicolas 93fd473b8f Add support for builtin terminal colors. (#974) 2018-12-15 06:16:00 -08:00
Nicolas 24594c747e Disable printing the reset escape code when no style modifiers where applied. (#973) 2018-12-09 15:57:20 -08:00
Nicolas 749276072f Add file stream support for stylized text printing. (#967) 2018-12-09 09:28:48 -08:00
Nicolas 81b5c4a5fd Add experimental emphasis support (#961) 2018-12-06 07:56:01 -08:00
Daniela Engert ec384302db additional test for print with background color
checks for clashes with other function overloads in fmt with templated parameters on the first or second position in the parameter list
2018-10-25 16:54:54 -07:00
Victor Zverovich 20c708bf6d Fix build on gcc 4.4 2018-10-24 10:52:02 -07:00
Victor Zverovich 2924622157 Fix naming of basic_format_specs members 2018-10-17 10:13:10 -07:00
Victor Zverovich bda5f9a556 Replace grisu2_specs with core_format_specs 2018-10-17 08:55:45 -07:00
Victor Zverovich e8efdef8de Avoid extra copy 2018-10-17 08:19:46 -07:00
Victor Zverovich 50b18a3c10 Integrate Grisu 2018-10-14 14:33:25 -07:00
Victor Zverovich 57983423c3 Remove signbit workaround 2018-10-10 09:41:46 -07:00
Victor Zverovich d7f17613f5 Fix compilation on platforms with exotic double (#878) 2018-09-26 08:45:34 -07:00