72#define PRECICE_AS_STRING(message) [&] { \
73 std::ostringstream oss; \
94template <
class Container>
98 for (
const auto &candidate : expected) {
Utility class to build a string from C functions with output pointers and static maximum length.
std::array< char, MAX+1 > _data
std::size_t editDistance(std::string_view s1, std::string_view s2)
bool convertStringToBool(std::string const &value)
Evaluates a string to find out if it represents a bool.
std::string truncate_wstring_to_string(std::wstring wstr, char fill)
std::string wrapText(const std::string &text, int linewidth, int indentation)
std::string & checkAppendExtension(std::string &filename, const std::string &extension)
Checks if filename has the given extension, if not appends it.
std::vector< StringMatch > computeMatches(std::string_view given, const Container &expected)
Main namespace of the precice library.
bool operator<(const StringMatch &other) const