bool is_valid_bool()

in src/hbase/client/hbase-configuration-loader.cc [29:41]


bool is_valid_bool(const std::string &raw) {
  if (raw.empty()) {
    return false;
  }

  if (!strcasecmp(raw.c_str(), "true")) {
    return true;
  }
  if (!strcasecmp(raw.c_str(), "false")) {
    return true;
  }
  return false;
}