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
#include <regex>
21
#include <string>
22
23
class
TString;
24
25
namespace
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
mergePhysValFiles.pattern
pattern
Definition:
DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:25
Global.h
RCU
This module defines a variety of assert style macros.
Definition:
Assert.cxx:26
RCU::match_expr
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...
Definition:
StringUtil.cxx:39
PrepareReferenceFile.regex
regex
Definition:
PrepareReferenceFile.py:43
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:52
Generated on Mon Sep 29 2025 21:19:15 for ATLAS Offline Software by
1.8.18