Add wuffs_base__parse_number_xxx options arg

This commit is contained in:
Nigel Tao committed 2020-07-07 16:19:46 +10:00
1 parent 832edf7227
commit 6b7ce30e32
9 files changed
+83 -53

No files matched your search

+1 -1
View File
@@ -1987,7 +1987,7 @@ wuffs_base__private_implementation__is_decimal_digit(uint8_t c) {
}
WUFFS_BASE__MAYBE_STATIC wuffs_base__result_f64 //
wuffs_base__parse_number_f64(wuffs_base__slice_u8 s) {
wuffs_base__parse_number_f64(wuffs_base__slice_u8 s, uint32_t options) {
// In practice, almost all "dd.ddddE±xxx" numbers can be represented
// losslessly by a uint64_t mantissa "dddddd" and an int32_t base-10
// exponent, adjusting "xxx" for the position (if present) of the decimal