diff options
Diffstat (limited to 'lilo-config/common/String.cc')
-rw-r--r-- | lilo-config/common/String.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lilo-config/common/String.cc b/lilo-config/common/String.cc index 6fda1fa..f8a0e35 100644 --- a/lilo-config/common/String.cc +++ b/lilo-config/common/String.cc @@ -98,7 +98,7 @@ bool String::casecmp(char const * const s) const return false; return (strncasecmp(data(), s, size())==0); } -bool String::tqcontains(String const &s, bool cs) const +bool String::contains(String const &s, bool cs) const { if(cs) if(strstr(cstr(), s.cstr())) @@ -226,10 +226,10 @@ String &String::regex(String const &expr, bool cs) const } return *ret; } -String &String::tqreplace(String const &what, String const &with, bool all) const +String &String::replace(String const &what, String const &with, bool all) const { String *result; - if(!tqcontains(what)) { + if(!contains(what)) { result=new String(*this); return *result; } @@ -331,7 +331,7 @@ void StringList::operator +=(StringList const * const s) for(const_iterator it=s->begin(); it!=s->end(); it++) insert(end(), *it); } -bool StringList::tqcontains(String const &s) const +bool StringList::contains(String const &s) const { for(const_iterator it=begin(); it!=end(); it++) if(*it == s) |