rapidyaml  0.16.0
parseandemitYAML,anddoitfast
atox: generic chars to value

Dispatches to the most appropriate and efficient conversion function. More...

Functions

bool c4::atox (csubstr s, uint8_t *v) noexcept
 
bool c4::atox (csubstr s, uint16_t *v) noexcept
 
bool c4::atox (csubstr s, uint32_t *v) noexcept
 
bool c4::atox (csubstr s, uint64_t *v) noexcept
 
bool c4::atox (csubstr s, int8_t *v) noexcept
 
bool c4::atox (csubstr s, int16_t *v) noexcept
 
bool c4::atox (csubstr s, int32_t *v) noexcept
 
bool c4::atox (csubstr s, int64_t *v) noexcept
 
bool c4::atox (csubstr s, float *v) noexcept
 
bool c4::atox (csubstr s, double *v) noexcept
 
template<class T >
auto c4::atox (csubstr buf, T *v) noexcept-> bool::type
 
template<class T >
bool c4::atox (csubstr s, T **v) noexcept
 

Detailed Description

Dispatches to the most appropriate and efficient conversion function.

Function Documentation

bool c4::atox ( csubstr  s,
uint8_t *  v 
)
inlinenoexcept

Definition at line 2302 of file charconv.hpp.

Referenced by c4::atox(), and c4::from_chars().

2302 { return atou(s, v); }
bool atou(csubstr str, T *v) noexcept
Convert a trimmed string to an unsigned integral value.
Definition: charconv.hpp:1558
bool c4::atox ( csubstr  s,
uint16_t *  v 
)
inlinenoexcept

Definition at line 2303 of file charconv.hpp.

2303 { return atou(s, v); }
bool atou(csubstr str, T *v) noexcept
Convert a trimmed string to an unsigned integral value.
Definition: charconv.hpp:1558
bool c4::atox ( csubstr  s,
uint32_t *  v 
)
inlinenoexcept

Definition at line 2304 of file charconv.hpp.

2304 { return atou(s, v); }
bool atou(csubstr str, T *v) noexcept
Convert a trimmed string to an unsigned integral value.
Definition: charconv.hpp:1558
bool c4::atox ( csubstr  s,
uint64_t *  v 
)
inlinenoexcept

Definition at line 2305 of file charconv.hpp.

2305 { return atou(s, v); }
bool atou(csubstr str, T *v) noexcept
Convert a trimmed string to an unsigned integral value.
Definition: charconv.hpp:1558
bool c4::atox ( csubstr  s,
int8_t *  v 
)
inlinenoexcept

Definition at line 2306 of file charconv.hpp.

2306 { return atoi(s, v); }
bool atoi(csubstr str, T *v) noexcept
Convert a trimmed string to a signed integral value.
Definition: charconv.hpp:1466
bool c4::atox ( csubstr  s,
int16_t *  v 
)
inlinenoexcept

Definition at line 2307 of file charconv.hpp.

2307 { return atoi(s, v); }
bool atoi(csubstr str, T *v) noexcept
Convert a trimmed string to a signed integral value.
Definition: charconv.hpp:1466
bool c4::atox ( csubstr  s,
int32_t *  v 
)
inlinenoexcept

Definition at line 2308 of file charconv.hpp.

2308 { return atoi(s, v); }
bool atoi(csubstr str, T *v) noexcept
Convert a trimmed string to a signed integral value.
Definition: charconv.hpp:1466
bool c4::atox ( csubstr  s,
int64_t *  v 
)
inlinenoexcept

Definition at line 2309 of file charconv.hpp.

2309 { return atoi(s, v); }
bool atoi(csubstr str, T *v) noexcept
Convert a trimmed string to a signed integral value.
Definition: charconv.hpp:1466
bool c4::atox ( csubstr  s,
float *  v 
)
inlinenoexcept

Definition at line 2310 of file charconv.hpp.

2310 { return atof(s, v); }
bool atof(csubstr str, float *v) noexcept
Convert a string to a single precision real number.
Definition: charconv.hpp:2121
bool c4::atox ( csubstr  s,
double *  v 
)
inlinenoexcept

Definition at line 2311 of file charconv.hpp.

2311 { return atod(s, v); }
bool atod(csubstr str, double *v) noexcept
Convert a string to a double precision real number.
Definition: charconv.hpp:2182
template<class T >
auto c4::atox ( csubstr  buf,
T *  v 
) -> bool ::type
inlinenoexcept

Definition at line 2313 of file charconv.hpp.

2313 { return atoi(buf, v); }
bool atoi(csubstr str, T *v) noexcept
Convert a trimmed string to a signed integral value.
Definition: charconv.hpp:1466
template<class T >
bool c4::atox ( csubstr  s,
T **  v 
)
inlinenoexcept

Definition at line 2316 of file charconv.hpp.

2316 { intptr_t tmp; bool ret = atox(s, &tmp); if(ret) { *v = (T*)tmp; } return ret; }
bool atox(csubstr s, T **v) noexcept
Definition: charconv.hpp:2316