Shim implementing std::from_chars support for floating-point number types in GCC < 11. More...
#include <string>
#include <system_error>
Go to the source code of this file.
Classes | |
struct | cras::from_chars_result |
Namespaces | |
cras | |
Enumerations | |
enum | cras::chars_format { cras::scientific = 1 << 0, cras::fixed = 1 << 2, cras::hex = 1 << 3, cras::general = fixed | scientific } |
Functions | |
::cras::from_chars_result | cras::from_chars (const char *first, const char *last, float &value, ::cras::chars_format fmt=::cras::chars_format::general) noexcept |
Convert the given string to its best float representation. The behavior is similar to std::from_chars(), i.e. no leading space of plus sign is allowed. More... | |
::cras::from_chars_result | cras::from_chars (const char *first, const char *last, double &value, ::cras::chars_format fmt=::cras::chars_format::general) noexcept |
Convert the given string to its best double representation. The behavior is similar to std::from_chars(), i.e. no leading space of plus sign is allowed. More... | |
inline ::cras::from_chars_result | cras::from_chars (const ::std::string &string, float &value, ::cras::chars_format fmt=::cras::chars_format::general) noexcept |
Convert the given string to its best float representation. The behavior is similar to std::from_chars(), i.e. no leading space of plus sign is allowed. More... | |
inline ::cras::from_chars_result | cras::from_chars (const ::std::string &string, double &value, ::cras::chars_format fmt=::cras::chars_format::general) noexcept |
Convert the given string to its best double representation. The behavior is similar to std::from_chars(), i.e. no leading space of plus sign is allowed. More... | |
Shim implementing std::from_chars support for floating-point number types in GCC < 11.
Definition in file from_chars.h.