Classes | Namespaces | Enumerations | Functions
from_chars.h File Reference

Shim implementing std::from_chars support for floating-point number types in GCC < 11. More...

#include <string>
#include <system_error>
Include dependency graph for from_chars.h:

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...
 

Detailed Description

Shim implementing std::from_chars support for floating-point number types in GCC < 11.

Author
Martin Pecka SPDX-License-Identifier: BSD-3-Clause SPDX-FileCopyrightText: Czech Technical University in Prague

Definition in file from_chars.h.



cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sat Jun 17 2023 02:32:53