#include <RootCoreUtils/Assert.h>
#include <RootCoreUtils/StringUtil.h>
#include <string>
#include <string_view>
#include <regex>
Go to the source code of this file.
|
| namespace | RCU |
| | This module defines a variety of assert style macros.
|
|
| std::string | RCU::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 substituted string guarantee: out of memory II requires: !pattern.empty()
|
| bool | RCU::match_expr (const std::regex &expr, std::string_view str) |
| | returns: whether we can match the entire string with the regular expression guarantee: strong failures: out of memory II
|
| std::string | RCU::glob_to_regexp (std::string_view glob) |
| | returns: a string that is the regular expression equivalent of the given glob expression guarantee: strong failures: out of memory II rationale: I am returning a TString instead of an std::string, so that this can be passed directly into regexp
|