mimic++ v6
Loading...
Searching...
No Matches
StringMatchers.hpp File Reference
#include "mimic++/Fwd.hpp"
#include "mimic++/String.hpp"
#include "mimic++/matchers/GeneralMatchers.hpp"
#include <algorithm>
#include <concepts>
#include <ranges>
#include <tuple>
#include <utility>
Include dependency graph for StringMatchers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mimicpp::case_insensitive_t
 Tag type, used in string matchers. More...
 

Namespaces

namespace  mimicpp
 
namespace  mimicpp::matches
 
namespace  mimicpp::matches::str
 

Functions

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

Variables

struct mimicpp::case_insensitive_t mimicpp::case_insensitive