7#ifndef MFRAME_E2DC1ED1_7C31_4A99_AF60_2B859E6190C9
8#define MFRAME_E2DC1ED1_7C31_4A99_AF60_2B859E6190C9
15#include "./../lang/NonInstantiable.h"
16#include "./../numb/Integer.h"
94 static_cast<int>(
sizeof(
"-2147483648"));
97 static_cast<int>(
sizeof(
"07777777777777777"));
100 static_cast<int>(
sizeof(
"0xFFFFFFFF"));
113 return static_cast<uint32
>(value);
123 return static_cast<int>(value);
Definition NonInstantiable.h:29
整數靜態工具類
Definition Integers.h:44
static constexpr const char *const TEXT_MAX_VALUE
最大值字符串表示
Definition Integers.h:88
static constexpr const int MAX_ASCII_HEX
最大十六進制ASCII長度
Definition Integers.h:99
static int castSigned(uint32 value)
轉換為有符號整數
Definition Integers.h:122
virtual ~Integers(void) override=default
Destroy the Integers object.
static bool parseInteger(int &result, const char *str)
將字串解析為整數
static constexpr const int MAX_ASCII_VALUE
最大ASCII值長度
Definition Integers.h:93
static bool isInteger(const char *str, int count=-1)
判斷字串是否為有效整數格式
static constexpr const char *const TEXT_MIN_VALUE
最小值字符串表示
Definition Integers.h:90
static constexpr const int MAX_ASCII_OCTAL
最大八進制ASCII長度
Definition Integers.h:96
static uint32 castUnsigned(int value)
轉換為無符號整數
Definition Integers.h:112