string_view_utils: Add sv_contains()

This commit is contained in:
Martin Piatka
2022-10-25 16:18:45 +02:00
parent 7cb9771962
commit 344ddd5117
3 changed files with 4 additions and 9 deletions

View File

@@ -207,14 +207,6 @@ void debug_dump(const void *lp, int len)
}
}
namespace{
bool sv_contains(std::string_view haystack, std::string_view needle){
return haystack.find(needle) != std::string_view::npos;
}
} //anon namespace
bool parse_log_cfg(const char *conf_str,
int *log_lvl,
bool *logger_skip_repeats,