![]() |
ATLAS Offline Software
|
#include <string>#include <string_view>#include <vector>#include <charconv>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::trimWhiteSpaces (std::string_view str) noexcept |
| Removes all trailing and starting whitespaces from a string. | |
| std::vector< std::string > | CxxUtils::tokenize (std::string_view the_str, std::string_view delimiters) |
| Splits the string into smaller substrings. | |
| std::vector< std::string > | CxxUtils::tokenize (std::string_view the_str, char delimiter) |
| std::vector< double > | CxxUtils::tokenizeDouble (std::string_view the_str, std::string_view delimiter) |
| std::vector< int > | CxxUtils::tokenizeInt (std::string_view str, std::string_view delimiter) |