return std::strcmp(a, b);
#else
return strcmp(a, b);
-#endif
+#endif
}
///
return std::strncmp(a, b, len);
#else
return strncmp(a, b, len);
-#endif
+#endif
}
///
///
double strToDbl(string const & str);
-///
+///
char lowercase(char c);
-///
+///
char uppercase(char c);
///
/// convert \a T to string
template<typename T>
inline
-string const tostr(T const & t)
+string const tostr(T const & t)
{
ostringstream ostr;
ostr << t;
typedef string first_argument_type;
typedef string second_argument_type;
typedef bool result_type;
-
+
bool operator()(string const & haystack, string const & needle) const {
return contains(haystack, needle);
}
/** Search a token in this string using the delim.
Doesn't modify the original string. Returns -1 in case of
- failure.
+ failure.
Example:
\code
"a;bc;d".tokenPos(';', "bc") == 1;