6#ifndef ROOT_CORE_UTILS__STRING_UTIL_H
7#define ROOT_CORE_UTILS__STRING_UTIL_H
22 std::string
substitute(std::string_view str, std::string_view pattern,
23 std::string_view with);
29 bool match_expr(
const std::regex& expr, std::string_view str);
This module defines a variety of assert style macros.
bool match_expr(const std::regex &expr, std::string_view str)
returns: whether we can match the entire string with the regular expression guarantee: strong failure...
std::string substitute(std::string_view str, std::string_view pattern, std::string_view with)
effects: substitute all occurences of "pattern" with "with" in the string "str" returns: the substitu...
std::string glob_to_regexp(std::string_view glob)
returns: a string that is the regular expression equivalent of the given glob expression guarantee: s...