ATLAS Offline Software
PhysicsAnalysis
D3PDTools
RootCoreUtils
RootCoreUtils
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
19
#include <
RootCoreUtils/Global.h
>
20
21
#pragma GCC diagnostic push
22
#pragma GCC diagnostic ignored "-Wpragmas"
23
#pragma GCC diagnostic ignored "-Wunknown-pragmas"
24
#pragma GCC diagnostic ignored "-Wkeyword-macro"
25
#include <boost/regex.hpp>
26
#pragma GCC diagnostic pop
27
28
#include <string>
29
30
class
TString;
31
32
namespace
RCU
33
{
39
std::string
substitute
(
const
std::string&
str
,
const
std::string&
pattern
,
40
const
std::string& with);
41
42
47
bool
match_expr
(
const
boost::regex
& expr,
const
std::string&
str
);
48
49
56
std::string
glob_to_regexp
(
const
std::string& glob);
57
}
58
59
#endif
mergePhysValFiles.pattern
pattern
Definition:
DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:26
Global.h
RCU
This module defines a variety of assert style macros.
Definition:
Assert.cxx:26
PrepareReferenceFile.regex
regex
Definition:
PrepareReferenceFile.py:43
RCU::match_expr
bool match_expr(const boost::regex &expr, const std::string &str)
returns: whether we can match the entire string with the regular expression guarantee: strong failure...
Definition:
StringUtil.cxx:40
RCU::substitute
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...
Definition:
StringUtil.cxx:24
str
Definition:
BTagTrackIpAccessor.cxx:11
RCU::glob_to_regexp
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...
Definition:
StringUtil.cxx:56
Generated on Sun Dec 22 2024 21:18:37 for ATLAS Offline Software by
1.8.18