mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-05 16:49:48 +01:00
chore: minor improvement for docs (#4616)
Signed-off-by: bigmoonbit <bigmoonbit@outlook.com>
This commit is contained in:
@@ -708,7 +708,7 @@ following differences:
|
|||||||
precision that provides round-trip guarantees similarly to other languages
|
precision that provides round-trip guarantees similarly to other languages
|
||||||
like Java and Python. `std::format` is currently specified in terms of
|
like Java and Python. `std::format` is currently specified in terms of
|
||||||
`std::to_chars` which tries to generate the smallest number of characters
|
`std::to_chars` which tries to generate the smallest number of characters
|
||||||
(ignoring redundant digits and sign in exponent) and may procude more
|
(ignoring redundant digits and sign in exponent) and may produce more
|
||||||
decimal digits than necessary.
|
decimal digits than necessary.
|
||||||
|
|
||||||
## Configuration Options
|
## Configuration Options
|
||||||
@@ -748,7 +748,7 @@ configuring CMake.
|
|||||||
- `0` - off (default)
|
- `0` - off (default)
|
||||||
- `1` - disables locale support and applies some optimizations
|
- `1` - disables locale support and applies some optimizations
|
||||||
- `2` - disables some Unicode features, named arguments and applies more
|
- `2` - disables some Unicode features, named arguments and applies more
|
||||||
aggresive optimizations
|
aggressive optimizations
|
||||||
|
|
||||||
### Binary Size Optimization
|
### Binary Size Optimization
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ hide:
|
|||||||
<p>
|
<p>
|
||||||
The default is <b>locale-independent</b>, but you can opt into localized
|
The default is <b>locale-independent</b>, but you can opt into localized
|
||||||
formatting and {fmt} makes it work with Unicode, addressing issues in the
|
formatting and {fmt} makes it work with Unicode, addressing issues in the
|
||||||
standard libary.
|
standard library.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -737,7 +737,7 @@ template <typename T>
|
|||||||
using is_double_double = bool_constant<std::numeric_limits<T>::digits == 106>;
|
using is_double_double = bool_constant<std::numeric_limits<T>::digits == 106>;
|
||||||
|
|
||||||
// An allocator that uses malloc/free to allow removing dependency on the C++
|
// An allocator that uses malloc/free to allow removing dependency on the C++
|
||||||
// standard libary runtime. std::decay is used for back_inserter to be found by
|
// standard library runtime. std::decay is used for back_inserter to be found by
|
||||||
// ADL when applied to memory_buffer.
|
// ADL when applied to memory_buffer.
|
||||||
template <typename T> struct allocator : private std::decay<void> {
|
template <typename T> struct allocator : private std::decay<void> {
|
||||||
using value_type = T;
|
using value_type = T;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#define FMT_FUZZ_SEPARATE_ALLOCATION 1
|
#define FMT_FUZZ_SEPARATE_ALLOCATION 1
|
||||||
|
|
||||||
// The size of the largest possible type in use.
|
// The size of the largest possible type in use.
|
||||||
// To let the the fuzzer mutation be efficient at cross pollinating between
|
// To let the fuzzer mutation be efficient at cross pollinating between
|
||||||
// different types, use a fixed size format. The same bit pattern, interpreted
|
// different types, use a fixed size format. The same bit pattern, interpreted
|
||||||
// as another type, is likely interesting.
|
// as another type, is likely interesting.
|
||||||
constexpr auto fixed_size = 16;
|
constexpr auto fixed_size = 16;
|
||||||
|
|||||||
Reference in New Issue
Block a user