ATLAS Offline Software
Loading...
Searching...
No Matches
Analysis::CalibrationDataInterface Namespace Reference

Functions

std::vector< std::string > split (const std::string &str, const char token=';')
 local utility function: split string into a vector of substrings separated by a specified separator, and with whitespace in the results trimmed

Function Documentation

◆ split()

std::vector< std::string > Analysis::CalibrationDataInterface::split ( const std::string & str,
const char token = ';' )

local utility function: split string into a vector of substrings separated by a specified separator, and with whitespace in the results trimmed

Definition at line 9 of file CalibrationDataInternals.cxx.

9 {
10 std::vector<std::string> result;
11 boost::split(result, str, [&token] (char c) { return c == token ;});
12 for (std::string& element : result) {
13 boost::trim(element);
14 }
15 return result;
16 }