Browse Source

str.cpp

webui
Antonio SJ Musumeci 1 week ago
parent
commit
2ea8931858
  1. 8
      src/str.cpp

8
src/str.cpp

@ -291,6 +291,14 @@ str::startswith(const string &str_,
(str_.compare(0,prefix_.size(),prefix_) == 0));
}
bool
str::startswith(const string &str_,
const char *prefix_)
{
return ((str_.size() >= prefix_.size()) &&
(str_.compare(0,prefix_.size(),prefix_) == 0));
}
bool
str::endswith(const string &str_,
const string &suffix_)

Loading…
Cancel
Save