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