#include <cmath>#include <regex>#include <set>#include <string>#include <vector>#include "autopas/utils/NumberInterval.h"#include "autopas/utils/NumberSet.h"#include "autopas/utils/NumberSetFinite.h"

Go to the source code of this file.
Namespaces | |
| namespace | autopas |
| This is the main namespace of AutoPas. | |
| namespace | autopas::utils |
| In this namespace some helper classes and functions can be found used inside of AutoPas. | |
| namespace | autopas::utils::StringUtils |
| Some functions to parse enums from (input-) strings. | |
Functions | |
| int | autopas::utils::StringUtils::anonymous_namespace{StringUtils.h}::needlemanWunschScore (std::string s1, std::string s2) |
| Calculates a similarity score of s1 and s2 based on the Needleman-Wunsch string alignment algorithm. | |
| std::string | autopas::utils::StringUtils::matchStrings (const std::vector< std::string > &haystack, std::string needle) |
| Finds best match of needle in haystack. | |
| std::vector< std::string > | autopas::utils::StringUtils::tokenize (const std::string &searchString, const std::string &delimiters) |
| Splits a string by multiple delimiters. | |
| std::array< double, 3 > | autopas::utils::StringUtils::parseArrayD3 (const std::string &string) |
| Converts a string to std::array<double,3>. | |
| bool | autopas::utils::StringUtils::parseBoolOption (const std::string &booleanOption) |
| Converts a string to bool. | |
| std::set< double > | autopas::utils::StringUtils::parseDoubles (const std::string &doubleString) |
| Converts a string to a set of doubles. | |
| std::unique_ptr< autopas::NumberSet< double > > | autopas::utils::StringUtils::parseNumberSet (const std::string &setString) |
| Converts a string to a NumberSet<double>. | |
Variables | |
| constexpr char | autopas::utils::StringUtils::delimiters [] = " ,;|/" |
| All accepted delimiters to split input strings. | |
| constexpr char | autopas::utils::StringUtils::delimitersRgx [] = "[\\s,;|/]" |
| Regex for all delimiters to split input strings. | |
| constexpr char | autopas::utils::StringUtils::delimitersRgxInv [] = "[^\\s,;|/]" |
| Regex for all but delimiters to split input strings as regex. | |
| static const std::string | autopas::utils::StringUtils::regexDoubleStr |
| Regex for a double e.g. | |