ATLAS Offline Software
Loading...
Searching...
No Matches
CalibrationDataInternals.cxx
Go to the documentation of this file.
2
4
5namespace Analysis {
7
8 // local utility function: split string into a vector of substrings separated by a specified separator
9 std::vector<std::string> split(const std::string& str, const char token) {
10 std::vector<std::string> result = CxxUtils::tokenize(str, token);
11 for (std::string& element : result) {
12 element = CxxUtils::trimWhiteSpaces(element);
13 }
14 return result;
15 }
16
17 }
18}
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,...
The namespace of all packages in PhysicsAnalysis/JetTagging.
std::string_view trimWhiteSpaces(std::string_view str) noexcept
Removes all trailing and starting whitespaces from a string.
std::vector< std::string > tokenize(std::string_view the_str, std::string_view delimiters)
Splits the string into smaller substrings.