LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
strip_containing_names.cc
Go to the documentation of this file.
1
#include "
fhiclcpp/types/detail/strip_containing_names.h
"
2
3
// If 'find_{first,last}_of' returns std::string::npos, then 'pos' will
4
// be 0 and the call to substr will return the full key.
5
6
std::string
7
fhicl::detail::strip_first_containing_name
(std::string
const
& key)
8
{
9
auto
const
pos = key.find_first_of(
"."
) + 1;
10
return
key.substr(pos);
11
}
12
13
std::string
14
fhicl::detail::strip_all_containing_names
(std::string
const
& key)
15
{
16
auto
const
pos = key.find_last_of(
"."
) + 1;
17
return
key.substr(pos);
18
}
strip_containing_names.h
fhicl::detail::strip_first_containing_name
std::string strip_first_containing_name(std::string const &key)
Definition:
strip_containing_names.cc:7
fhicl::detail::strip_all_containing_names
std::string strip_all_containing_names(std::string const &key)
Definition:
strip_containing_names.cc:14
fhiclcpp
types
detail
strip_containing_names.cc
Generated on Thu May 2 2024 20:59:31 for LArSoft by
1.8.11