1#ifndef UTIL_CLI_CMDOPTION_STRING_H
2#define UTIL_CLI_CMDOPTION_STRING_H
20 static bool eq(Tc left, Tc right) {
return toupper(left) == toupper(right); }
21 static bool lt(Tc left, Tc right) {
return toupper(left) < toupper(right); }
23 static int compare(
const Tc *left,
const Tc *right,
size_t n) {
25 char cl = (Tc)toupper(*left), cr = (Tc)toupper(*right);
23 static int compare(
const Tc *left,
const Tc *right,
size_t n) {
…}
36 static const Tc *
find(
const char *s,
int n, Tc a) {
37 while (n-- > 0 && toupper(*s) != toupper(a)) ++s;
38 return n >= 0 ? s : 0;
36 static const Tc *
find(
const char *s,
int n, Tc a) {
…}
std::basic_string< char, ci_char_traits< char > > cmd_option_ci_string
static const Tc * find(const char *s, int n, Tc a)
static int compare(const Tc *left, const Tc *right, size_t n)
static bool eq(Tc left, Tc right)
static bool lt(Tc left, Tc right)