18 #ifndef _GLIBCXX_STRING
23 return str.find(start) == 0;
27 size_t slen = str.length();
28 size_t plen = postfix.length();
30 if (plen>slen) {
return false; }
31 return str.substr(slen-plen) == postfix;
35 static bool less_nocase(
char c1,
char c2) {
return toupper(c1) < toupper(c2); }
36 static bool nonequal_nocase(
char c1,
char c2) {
return toupper(c1) != toupper(c2); }
41 return lexicographical_compare(s1.begin(), s1.end(),
49 s1.length() >= s2.length() &&
50 !lexicographical_compare(s1.begin(), s1.begin()+s2.length(),
58 #error arb_stdstr.h included twice
59 #endif // ARB_STDSTR_H
return string(buffer, length)
static HelixNrInfo * start
static bool has_prefix(const std::string &s1, const std::string &s2)
bool beginsWith(const std::string &str, const std::string &start)
bool endsWith(const std::string &str, const std::string &postfix)
bool operator()(const std::string &s1, const std::string &s2) const