ATLAS Offline Software
Loading...
Searching...
No Matches
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

namespace  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.
double CxxUtils::atof (std::string_view str)
 Converts a string into a double / float.
std::string_view CxxUtils::eraseWhiteSpaces (std::string_view str)
 Removes all trailing and starting whitespaces from a string.
std::vector< std::string > CxxUtils::tokenize (const std::string &the_str, std::string_view delimiters)
 Splits the string into smaller substrings.
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)