|
NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
|
字符串到数值的转换函数 更多...
#include "NeForce/core/numeric/math.hpp"#include "NeForce/core/numeric/int128.hpp"#include "NeForce/core/string/string_view.hpp"函数 | |
| constexpr float32_t | neforce::to_float32 (const string_view sv, size_t *idx=nullptr) |
| 将字符串转换为32位浮点数 | |
| constexpr float64_t | neforce::to_float64 (const string_view sv, size_t *idx=nullptr) |
| 将字符串转换为64位浮点数 | |
| constexpr decimal_t | neforce::to_decimal (const string_view sv, size_t *idx=nullptr) |
| 将字符串转换为decimal浮点数 | |
| constexpr int64_t | neforce::to_int64 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为64位有符号整数 | |
| constexpr uint64_t | neforce::to_uint64 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为64位无符号整数 | |
| constexpr int32_t | neforce::to_int32 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为32位有符号整数 | |
| constexpr uint32_t | neforce::to_uint32 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为32位无符号整数 | |
| constexpr int16_t | neforce::to_int16 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为16位有符号整数 | |
| constexpr uint16_t | neforce::to_uint16 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为16位无符号整数 | |
| constexpr int8_t | neforce::to_int8 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为8位有符号整数 | |
| constexpr uint8_t | neforce::to_uint8 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为8位无符号整数 | |
| constexpr uint128_t | neforce::to_uint128 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为128位无符号整数 | |
| constexpr int128_t | neforce::to_int128 (const string_view sv, size_t *idx=nullptr, const int base=10) |
| 将字符串转换为128位有符号整数 | |
| constexpr uint128_t | neforce::operator""_u128 (const char *str, const size_t len) |
| 128位无符号整数字符串字面量 | |
| constexpr int128_t | neforce::operator""_i128 (const char *str, const size_t len) |
| 128位有符号整数字符串字面量 | |