|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
字符串到数值的转换函数 更多...
#include "NeForce/core/exception/exception.hpp"#include "NeForce/core/numeric/math.hpp"#include "NeForce/core/string/string_view.hpp"函数 | |
| NEFORCE_NODISCARD constexpr float32_t | to_float32 (const string_view sv, size_t *idx=nullptr) |
| 将字符串转换为32位浮点数 | |
| NEFORCE_NODISCARD constexpr float64_t | to_float64 (const string_view sv, size_t *idx=nullptr) |
| 将字符串转换为64位浮点数 | |
| NEFORCE_NODISCARD constexpr decimal_t | to_decimal (const string_view sv, size_t *idx=nullptr) |
| 将字符串转换为decimal浮点数 | |
| NEFORCE_NODISCARD constexpr int64_t | to_int64 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为64位有符号整数 | |
| NEFORCE_NODISCARD constexpr uint64_t | to_uint64 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为64位无符号整数 | |
| NEFORCE_NODISCARD constexpr int32_t | to_int32 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为32位有符号整数 | |
| NEFORCE_NODISCARD constexpr uint32_t | to_uint32 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为32位无符号整数 | |
| NEFORCE_NODISCARD constexpr int16_t | to_int16 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为16位有符号整数 | |
| NEFORCE_NODISCARD constexpr uint16_t | to_uint16 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为16位无符号整数 | |
| NEFORCE_NODISCARD constexpr int8_t | to_int8 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为8位有符号整数 | |
| NEFORCE_NODISCARD constexpr uint8_t | to_uint8 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为8位无符号整数 | |