|
kaycxx-assert
C++ assertion library
|
Defines the assert_match function. More...
#include <format>#include <regex>#include <string>#include <string_view>#include <utility>#include <kaycxx/assert/assertion_error.hpp>#include <kaycxx/assert/detail/source_location.hpp>#include <kaycxx/assert/detail/regex_matches.hpp>#include <kaycxx/assert/detail/string_like.hpp>#include <kaycxx/assert/detail/to_string.hpp>

Go to the source code of this file.
Namespaces | |
| namespace | kaycxx |
| Root namespace for kaycxx libraries. | |
| namespace | kaycxx::assert |
| Assertion functions and related types. | |
Functions | |
| template<detail::string_like T> | |
| void | kaycxx::assert::assert_match (T const &actual, std::string_view pattern, std::string_view reason={}, std::optional< std::source_location > location=KAYCXX_ASSERT_DEFAULT_SOURCE) |
| Asserts that the argument matches the given pattern. | |
| template<detail::string_like T> | |
| void | kaycxx::assert::assert_match (T const &actual, std::regex const ®ex, std::string_view reason={}, std::optional< std::source_location > location=KAYCXX_ASSERT_DEFAULT_SOURCE) |
| Asserts that the argument matches the given regular expression. | |
Defines the assert_match function.