23 #if ! defined (octave_caseless_str_h)
24 #define octave_caseless_str_h 1
26 #include "octave-config.h"
46 std::string::operator = (pname);
52 const_iterator p1 = begin ();
53 const_iterator p2 = s.begin ();
55 while (p1 != end () && p2 != s.end ())
57 char lp1 = std::tolower (*p1);
58 char lp2 = std::tolower (*p2);
69 if (
length () >= s.length ())
78 const_iterator p1 = begin ();
79 const_iterator p2 = s.begin ();
83 while (p1 != end () && p2 != s.end () && k++ < limit)
85 if (std::tolower (*p1) != std::tolower (*p2))
92 return (limit == std::string::npos) ?
size () == s.size () : k == limit;
caseless_str(const char *s)
bool operator<(const std::string &s) const
caseless_str(const caseless_str &name)
std::string::const_iterator const_iterator
caseless_str & operator=(const caseless_str &pname)
bool compare(const std::string &s, size_t limit=std::string::npos) const
std::string::iterator iterator
caseless_str(const std::string &s)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string