23 #if !defined (octave_caseless_str_h)
24 #define octave_caseless_str_h 1
48 operator std::string (
void)
const {
return *
this; }
55 while (p1 != end () && p2 != s.end ())
57 char lp1 = std::tolower (*p1), lp2 = std::tolower (*p2);
68 if (
length () >= s.length ())
75 bool compare (
const std::string& s,
size_t limit = std::string::npos)
const
82 while (p1 != end () && p2 != s.end () && k++ < limit)
84 if (std::tolower (*p1) != std::tolower (*p2))
91 return (limit == std::string::npos) ?
size () == s.size () : k == limit;