9 #ifndef STK_UTIL_UTIL_CI_TRAITS_H 10 #define STK_UTIL_UTIL_CI_TRAITS_H 33 static bool eq(
const char &c1,
const char &c2) {
34 return std::toupper(c1) == std::toupper(c2);
46 static bool lt(
const char &c1,
const char &c2) {
47 return std::toupper(c1) < std::toupper(c2);
63 static int compare(
const char *s1,
const char *s2, std::size_t n);
78 static const char *
find(
const char *s, std::size_t n,
const char &c);
81 #endif // STK_UTIL_UTIL_CI_TRAITS_H static bool lt(const char &c1, const char &c2)
Member function lt return true is c1 less than c2.
Class ignorecase_traits is a character traits class that ignores case during compares.
static const char * find(const char *s, std::size_t n, const char &c)
Member function find returns char pointer to first occurrence of character c in first n characters of...
static int compare(const char *s1, const char *s2, std::size_t n)
Member function compare compares up to n characters of s1 and s2 and returns -1 if s1 is less then s2...
static bool eq(const char &c1, const char &c2)
Member function eq return true is c1 and c2 are equal.