Dispatches to the most appropriate and efficient conversion function.
More...
|
| 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 |
| |
Dispatches to the most appropriate and efficient conversion function.
| bool c4::atox |
( |
csubstr |
s, |
|
|
uint8_t * |
v |
|
) |
| |
|
inlinenoexcept |
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
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.
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