|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #ifndef CXXUTILS_STRINGUTILS_H
7 #define CXXUTILS_STRINGUTILS_H
10 #include <string_view>
23 double atof(std::string_view
str);
28 std::vector<std::string>
tokenize(
const std::string& the_str,
29 std::string_view delimiters);
34 std::vector<int>
tokenizeInt(
const std::string& the_str,
std::vector< double > tokenizeDouble(const std::string &the_str, std::string_view delimiter)
std::string_view eraseWhiteSpaces(std::string_view str)
Removes all trailing and starting whitespaces from a string.
std::vector< int > tokenizeInt(const std::string &the_str, std::string_view delimiter)
std::vector< std::string > tokenize(const std::string &the_str, std::string_view delimiters)
Splits the string into smaller substrings.
double atof(std::string_view str)
Converts a string into a double / float.
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...