fastfloat / fast_float

Fast and exact implementation of the C++ from_chars functions for number types: 4x to 10x faster than strtod, part of GCC 12, Chromium, Redis and WebKit/Safari
Apache License 2.0
1.54k stars 132 forks source link

Support for multiple decimal points #223

Closed thbeu closed 11 months ago

thbeu commented 11 months ago

First things first: Thank you for this library!

I see that parse_options_t supports a single character only as decimal point, so for example either ',' xor '.'. My intention is to both convert 3.1416 and 3,1416 to floating point number and not caring about the decimal point of the actual locale. Is there any shortcut within the library?

lemire commented 11 months ago

Is there any shortcut within the library?

No. I think that a library like fast_float is the wrong place where to put such functionality. You should preprocess your files.