ATLAS Offline Software
Loading...
Searching...
No Matches
StringUtil.h
Go to the documentation of this file.
1#ifndef ROOT_CORE_UTILS__STRING_UTIL_H
2#define ROOT_CORE_UTILS__STRING_UTIL_H
3
4//
5// Distributed under the Boost Software License, Version 1.0.
6// (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8
9// Please feel free to contact me (krumnack@iastate.edu) for bug
10// reports, feature suggestions, praise and complaints.
11
12
13// This module still needs to be documented. The interface provided
14// in this module is intended for experts only. The module is
15// considered to be in the pre-alpha stage.
16
17
18
20#include <regex>
21#include <string>
22
23class TString;
24
25namespace RCU
26{
32 std::string substitute (const std::string& str, const std::string& pattern,
33 const std::string& with);
34
35
40 bool match_expr (const std::regex& expr, const std::string& str);
41
42
49 std::string glob_to_regexp (const std::string& glob);
50}
51
52#endif
This module defines a variety of assert style macros.
Definition Assert.cxx:26
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...