mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
* Readme updated.
This commit is contained in:
parent
af8ece24d7
commit
329282003d
@ -404,7 +404,7 @@ out of range.
|
|||||||
Overloads of `fast_float::integer_times_pow10()` are provided for
|
Overloads of `fast_float::integer_times_pow10()` are provided for
|
||||||
signed and unsigned integer types: `int64_t`, `uint64_t`, etc.
|
signed and unsigned integer types: `int64_t`, `uint64_t`, etc.
|
||||||
|
|
||||||
You also can use not standard options:
|
## You also can use additional options, like allow_leading_plus and skip_white_space:
|
||||||
|
|
||||||
```C++
|
```C++
|
||||||
#include "fast_float/fast_float.h"
|
#include "fast_float/fast_float.h"
|
||||||
@ -420,10 +420,9 @@ int main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
For special case scenarious, like mathematical or other AST like parcer that already process minus sign
|
## For mathematical or other AST like parcers that already process sign and all other symbols before any number by itself
|
||||||
and only pasre in FastFloat positive numbers in fixed, scientific or hex format and do not have inf or nan
|
you can use FastFloat for only parse positive numbers in fixed, scientific or hex format with macros
|
||||||
in input you can use macros FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN that significantly reduce
|
FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN, that significantly reduce the code size and improve performance:
|
||||||
the code size and improve performance:
|
|
||||||
|
|
||||||
```C++
|
```C++
|
||||||
#define FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
|
#define FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user