19 if (c >=
'A' && c <=
'Z') {
79 std::string lowercase_content =
data_;
80 std::transform(lowercase_content.begin(), lowercase_content.end(), lowercase_content.begin(),
detail::tolower);
82 if (lowercase_content.empty()) {
86 if (
"no" == lowercase_content ||
"false" == lowercase_content ||
"disabled" == lowercase_content ||
87 "disable" == lowercase_content ||
"0" == lowercase_content) {
96 for (
size_t i = 0; i <
data_.size(); ++i) {
97 if (delim ==
data_[i]) {
103 size_t begin_pos = 0;
105 while (end_pos != std::string::npos && begin_pos <
data_.size()) {
106 end_pos =
data_.find(delim, begin_pos);
107 if (end_pos == std::string::npos && begin_pos <
data_.size()) {
112 begin_pos = end_pos + 1;
unsigned short to_ushort() const
void split(char delim, std::vector< cmd_option_value > &out)
cmd_option_value(const char *str_data)
uint16_t to_uint16() const
long long to_longlong() const
bool to_logic_bool() const
uint32_t to_uint32() const
unsigned char to_uchar() const
uint64_t to_uint64() const
unsigned int to_uint() const
unsigned long long to_ulonglong() const
const char * to_string() const
unsigned long to_ulong() const
const std::string & to_cpp_string() const
static char tolower(char c)