NumeRe
v1.1.4
NumeRe: Framework für Numerische Rechnungen
fast_float.h
Go to the documentation of this file.
1
#ifndef FASTFLOAT_FAST_FLOAT_H
2
#define FASTFLOAT_FAST_FLOAT_H
3
4
#include <system_error>
5
6
namespace
fast_float
{
7
enum
chars_format
{
8
scientific
= 1<<0,
9
fixed
= 1<<2,
10
hex
= 1<<3,
11
general
=
fixed
|
scientific
12
};
13
14
15
struct
from_chars_result
{
16
const
char
*
ptr
;
17
std::errc
ec
;
18
};
19
20
struct
parse_options
{
21
constexpr
explicit
parse_options
(
chars_format
fmt =
chars_format::general
,
22
char
dot =
'.'
)
23
:
format
(fmt),
decimal_point
(dot) {}
24
26
chars_format
format
;
28
char
decimal_point
;
29
};
30
50
template
<
typename
T>
51
from_chars_result
from_chars
(
const
char
*first,
const
char
*
last
,
52
T &value,
chars_format
fmt =
chars_format::general
)
noexcept
;
53
57
template
<
typename
T>
58
from_chars_result
from_chars_advanced
(
const
char
*first,
const
char
*
last
,
59
T &value,
parse_options
options)
noexcept
;
60
61
}
62
#include "
parse_number.h
"
63
#endif
// FASTFLOAT_FAST_FLOAT_H
date::literals::last
CONSTDATA date::last_spec last
Definition:
date.h:1989
fast_float
Definition:
ascii_number.h:11
fast_float::from_chars
from_chars_result from_chars(const char *first, const char *last, T &value, chars_format fmt=chars_format::general) noexcept
Definition:
parse_number.h:66
fast_float::chars_format
chars_format
Definition:
fast_float.h:7
fast_float::hex
@ hex
Definition:
fast_float.h:10
fast_float::scientific
@ scientific
Definition:
fast_float.h:8
fast_float::general
@ general
Definition:
fast_float.h:11
fast_float::fixed
@ fixed
Definition:
fast_float.h:9
fast_float::from_chars_advanced
from_chars_result from_chars_advanced(const char *first, const char *last, T &value, parse_options options) noexcept
Definition:
parse_number.h:72
parse_number.h
fast_float::from_chars_result
Definition:
fast_float.h:15
fast_float::from_chars_result::ec
std::errc ec
Definition:
fast_float.h:17
fast_float::from_chars_result::ptr
const char * ptr
Definition:
fast_float.h:16
fast_float::parse_options
Definition:
fast_float.h:20
fast_float::parse_options::decimal_point
char decimal_point
Definition:
fast_float.h:28
fast_float::parse_options::parse_options
constexpr parse_options(chars_format fmt=chars_format::general, char dot='.')
Definition:
fast_float.h:21
fast_float::parse_options::format
chars_format format
Definition:
fast_float.h:26
kernel
core
utils
fast_float
fast_float.h
Generated by
1.9.3