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 and WebKit/Safari
Apache License 2.0
1.35k stars 124 forks source link

from_chars integer parser #231

Closed mayawarrier closed 9 months ago

mayawarrier commented 9 months ago

This PR implements the C++17 function: from_chars_result from_chars( const char first, const char last, / integer-type /& value, int base = 10);

Tests contributed by @TheRandomGuy146275. Resolves #86

lemire commented 9 months ago

@mayawarrier This is fantastic work and I am happy to merge. I have a few minor comments, can you have a look?

mayawarrier commented 9 months ago

@lemire Thank you! I applied the suggestion. Awaiting your review.

lemire commented 9 months ago

Merging.