17 template <
typename Separator1,
typename Separator2>
20 const std::string& str,
const Separator1& sep1,
size_t sep1_size,
21 const Separator2& sep2) {
23 std::string::size_type start = str.find(sep1);
24 if (start == std::string::npos)
29 std::string::size_type limit = str.find(sep2, start);
31 if (limit == std::string::npos)
34 return str.substr(start, limit - start);
std::string extract_between(const std::string &str, const char *sep1, const char *sep2)
Search the string for given start and end separators and extract all characters between the both...
static std::string extract_between_template(const std::string &str, const Separator1 &sep1, size_t sep1_size, const Separator2 &sep2)
std::basic_string< char, std::char_traits< char >, Allocator< char > > string
string with Manager tracking