mimic++ v4
Loading...
Searching...
No Matches
mimicpp::matches::str Namespace Reference

Functions

template<string Pattern>
constexpr auto eq (Pattern &&pattern)
 Tests, whether the target string compares equal to the expected string.
 
template<case_foldable_string Pattern>
constexpr auto eq (Pattern &&pattern, const case_insensitive_t)
 Tests, whether the target string compares case-insensitively equal to the expected string.
 
template<string Pattern>
constexpr auto starts_with (Pattern &&pattern)
 Tests, whether the target string starts with the pattern string.
 
template<string Pattern>
constexpr auto starts_with (Pattern &&pattern, const case_insensitive_t)
 Tests, whether the target string starts case-insensitively with the pattern string.
 
template<string Pattern>
constexpr auto ends_with (Pattern &&pattern)
 Tests, whether the target string ends with the pattern string.
 
template<string Pattern>
constexpr auto ends_with (Pattern &&pattern, const case_insensitive_t)
 Tests, whether the target string ends case-insensitively with the pattern string.
 
template<string Pattern>
constexpr auto contains (Pattern &&pattern)
 Tests, whether the pattern string is part of the target string.
 
template<string Pattern>
constexpr auto contains (Pattern &&pattern, const case_insensitive_t)
 Tests, whether the pattern string is case-insensitively part of the target string.