mFrame
載入中...
搜尋中...
無符合項目
Floats.h
1
7#ifndef MFRAME_D058821B_1E72_462D_A6EC_00EA14E01C9D
8#define MFRAME_D058821B_1E72_462D_A6EC_00EA14E01C9D
9
10/* ***************************************************************************************
11 * Include
12 */
13
14//----------------------------------------------------------------------------------------
15
16//----------------------------------------------------------------------------------------
17#include "./../lang/Object.h"
18
19/* ***************************************************************************************
20 * Namespace
21 */
22namespace mframe::numb {
23 class Floats;
24} // namespace mframe::numb
25
26/* ***************************************************************************************
27 * Class/Interface/Struct/Enum
28 */
30 /* *************************************************************************************
31 * Variable
32 */
33
34 /* *************************************************************************************
35 * Abstract Method
36 */
37
38 /* *************************************************************************************
39 * Construct Method
40 */
41 private:
45 Floats(void) = default;
46
50 virtual ~Floats(void) override = default;
51 /* *************************************************************************************
52 * Operator Method
53 */
54
55 /* *************************************************************************************
56 * Public Method <Override>
57 */
58
59 /* *************************************************************************************
60 * Public Method
61 */
62
63 /* *************************************************************************************
64 * Protected Method
65 */
66
67 /* *************************************************************************************
68 * Private Method
69 */
70
71 /* *************************************************************************************
72 * Static Variable
73 */
74 public:
75 static const int MAX_ASCII_VALUE;
76 static const float MAX_VALUE;
77 static const float MIN_VALUE;
78 /* *************************************************************************************
79 * Static Method
80 */
81 public:
93 static bool isFloat(const char* str, int limit = -1);
94
111 static bool parseFloat(float& result, const char* str, int limit = -1);
112};
113
114/* ***************************************************************************************
115 * End of file
116 */
117
118#endif /* MFRAME_D058821B_1E72_462D_A6EC_00EA14E01C9D */
Definition Object.h:34
Definition Floats.h:29
static bool parseFloat(float &result, const char *str, int limit=-1)
轉換浮點數
static bool isFloat(const char *str, int limit=-1)
判斷浮點數
Definition Boolean.h:23