7#ifndef MFRAME_90D9B92C_CB56_4072_B34E_C233A3D5684D
8#define MFRAME_90D9B92C_CB56_4072_B34E_C233A3D5684D
15#include "./../lang/NonInstantiable.h"
84 static constexpr const char*
const TEXT_TRUE =
"true";
105 static bool isTrue(
const char* str,
int count);
117 static bool isFalse(
const char* str,
int count);
Definition NonInstantiable.h:29
布林值靜態工具類
Definition Booleans.h:41
static bool isBoolean(const char *str, int count)
判斷字串是否為布林值字串
static bool isFalse(const char *str, int count)
判斷字串是否代表假值 (false)
static bool isTrue(const char *str, int count)
判斷字串是否代表真值 (true)
static constexpr const char *const TEXT_TRUE
真值的字符串表示
Definition Booleans.h:84
static constexpr const int TEXT_FALSE_LENGTH
"false"字符串的長度
Definition Booleans.h:88
static constexpr const char *const TEXT_FALSE
假值的字符串表示
Definition Booleans.h:85
static constexpr const int TEXT_TRUE_LENGTH
"true"字符串的長度
Definition Booleans.h:86
virtual ~Booleans(void) override=default
Destroy the Booleans object.
static bool parseBoolean(bool &result, const char *str, int count)
解析字串為布林值