26 #if ! defined (octave_caseless_str_h)
27 #define octave_caseless_str_h 1
29 #include "octave-config.h"
57 while (p1 != end () && p2 != s.end ())
59 char lp1 = std::tolower (*p1);
60 char lp2 = std::tolower (*p2);
71 if (length () >= s.length ())
78 bool compare (
const std::string& s, std::size_t limit = std::string::npos)
const
85 while (p1 != end () && p2 != s.end () && k++ < limit)
87 if (std::tolower (*p1) != std::tolower (*p2))
94 return (limit == std::string::npos) ? size () == s.size () : k == limit;
caseless_str(const std::string &s)
std::string::const_iterator const_iterator
bool operator<(const std::string &s) const
std::string::iterator iterator
caseless_str & operator=(const caseless_str &)=default
bool compare(const std::string &s, std::size_t limit=std::string::npos) const
caseless_str(const caseless_str &)=default
caseless_str(const char *s)