23 #if ! defined (octave_caseless_str_h) 24 #define octave_caseless_str_h 1 26 #include "octave-config.h" 46 std::string::operator = (
pname);
55 while (p1 != end () && p2 !=
s.end ())
57 char lp1 = std::tolower (*p1);
58 char lp2 = std::tolower (*p2);
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;
bool compare(const std::string &s, size_t limit=std::string::npos) const
caseless_str(const char *s)
caseless_str(const caseless_str &name)
nd deftypefn *std::string name
std::string::const_iterator const_iterator
caseless_str & operator=(const caseless_str &pname)
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
bool operator<(const std::string &s) const