LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
MetadataRegexHelpers.cc
Go to the documentation of this file.
1
#include "
art/Framework/Art/detail/MetadataRegexHelpers.h
"
2
3
using namespace
std::string_literals
;
4
5
std::regex
6
art::detail::regex_for_spec
(std::string
const
& spec)
7
{
8
return
std::regex{
"("
+ spec +
"\\s*:\\s*)(:?<string>)"
};
9
}
10
11
void
12
art::detail::replace_type
(std::string& str,
13
std::string
const
& spec,
14
std::regex
const
&
r
)
15
{
16
str = std::regex_replace(str, r,
"$1"
s + spec);
17
}
r
TRandom r
Definition:
spectrum.C:23
art::detail::regex_for_spec
std::regex regex_for_spec(std::string const &)
Definition:
MetadataRegexHelpers.cc:6
art::detail::replace_type
void replace_type(std::string &str, std::string const &spec, std::regex const &r)
Definition:
MetadataRegexHelpers.cc:12
string_literals
MetadataRegexHelpers.h
art
Framework
Art
detail
MetadataRegexHelpers.cc
Generated on Thu May 2 2024 20:59:28 for LArSoft by
1.8.11