Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
cetlib
cetlib
split_path.cc
Go to the documentation of this file.
1
// ======================================================================
2
//
3
// split_path: Split the string 'path' into components delimited by a
4
// single colon. Adjacent colons result in an empty string.
5
//
6
// ======================================================================
7
8
#include "
cetlib/split_path.h
"
9
10
#include "boost/algorithm/string.hpp"
11
12
void
13
cet::split_path
(
std::string
const
& path, std::vector<std::string>& components)
14
{
15
if
(path.empty())
16
components.clear();
17
else
18
boost::algorithm::split
(components, path, boost::algorithm::is_any_of(
":"
));
19
}
split_path.h
string
std::string string
Definition:
nybbler.cc:12
cet::split_path
void split_path(std::string const &path, std::vector< std::string > &components)
Definition:
split_path.cc:13
cet::split
void split(std::string const &s, char c, OutIter dest)
Definition:
split.h:35
Generated by
1.8.11