LArSoft
v06_85_00
Liquid Argon Software toolkit - http://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 Jul 26 2018 13:09:45 for LArSoft by
1.8.11