33 #include <boost/algorithm/string/compare.hpp> 34 #include <boost/algorithm/string/predicate.hpp> 35 #include <unordered_set> 42 const char*
tr(
const char* str)
50 if (str ==
"y" || str ==
"Y")
53 boost::algorithm::is_iequal ignore_case{};
54 if (boost::algorithm::equals(
"yes", str, ignore_case))
64 if (str ==
"n" || str ==
"N")
67 boost::algorithm::is_iequal ignore_case{};
68 if (boost::algorithm::equals(
"no", str, ignore_case))
bool is_no(const std::string &str)
bool is_yes(const std::string &str)
const arg_descriptor< bool > arg_help
const char * i18n_translate(const char *s, const std::string &context)
const arg_descriptor< bool > arg_version