ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
RootCoreUtils
RootCoreUtils
StringUtil.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#ifndef ROOT_CORE_UTILS__STRING_UTIL_H
7
#define ROOT_CORE_UTILS__STRING_UTIL_H
8
9
#include <regex>
10
#include <string>
11
12
namespace
RCU
13
{
19
std::string
substitute
(std::string_view str, std::string_view pattern,
20
std::string_view with);
21
26
bool
match_expr
(
const
std::regex& expr, std::string_view str);
27
28
33
std::string
glob_to_regexp
(std::string_view glob);
34
}
35
36
#endif
RCU
This module defines a variety of assert style macros.
Definition
Assert.cxx:23
RCU::match_expr
bool match_expr(const std::regex &expr, std::string_view str)
returns: whether we can match the entire string with the regular expression guarantee: strong failure...
Definition
StringUtil.cxx:30
RCU::substitute
std::string 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 substitu...
Definition
StringUtil.cxx:14
RCU::glob_to_regexp
std::string glob_to_regexp(std::string_view glob)
returns: a string that is the regular expression equivalent of the given glob expression guarantee: s...
Definition
StringUtil.cxx:35
Generated on
for ATLAS Offline Software by
1.17.0