ATLAS Offline Software
Namespaces | Functions
Control/CxxUtils/CxxUtils/StringUtils.h File Reference
#include <string>
#include <string_view>
#include <vector>
#include <iostream>
Include dependency graph for Control/CxxUtils/CxxUtils/StringUtils.h:

Go to the source code of this file.

Namespaces

 CxxUtils
 

Functions

int CxxUtils::atoi (std::string_view str)
 Helper functions to unpack numbers decoded in string into integers and doubles The strings are required to contain only digits, a floating point dot, the signs +- or a whitespace Exceptions are thrown otherwise. More...
 
double CxxUtils::atof (std::string_view str)
 Converts a string into a double / float. More...
 
std::string_view CxxUtils::eraseWhiteSpaces (std::string_view str)
 Removes all trailing and starting whitespaces from a string. More...
 
std::vector< std::string > CxxUtils::tokenize (const std::string &the_str, std::string_view delimiters)
 Splits the string into smaller substrings. More...
 
std::vector< double > CxxUtils::tokenizeDouble (const std::string &the_str, std::string_view delimiter)
 
std::vector< int > CxxUtils::tokenizeInt (const std::string &the_str, std::string_view delimiter)