#include <matchers.h>
Public Types | |
| enum | Type { Type::kExact, Type::kPrefix, Type::kSuffix, Type::kSafeRegex, Type::kContains } |
Public Member Functions | |
| bool | case_sensitive () const |
| bool | Match (absl::string_view value) const |
| StringMatcher & | operator= (const StringMatcher &other) |
| StringMatcher & | operator= (StringMatcher &&other) noexcept |
| bool | operator== (const StringMatcher &other) const |
| RE2 * | regex_matcher () const |
| const std::string & | string_matcher () const |
| StringMatcher ()=default | |
| StringMatcher (const StringMatcher &other) | |
| StringMatcher (StringMatcher &&other) noexcept | |
| std::string | ToString () const |
| Type | type () const |
Static Public Member Functions | |
| static absl::StatusOr< StringMatcher > | Create (Type type, absl::string_view matcher, bool case_sensitive=true) |
Private Member Functions | |
| StringMatcher (std::unique_ptr< RE2 > regex_matcher) | |
| StringMatcher (Type type, absl::string_view matcher, bool case_sensitive) | |
Private Attributes | |
| bool | case_sensitive_ = true |
| std::unique_ptr< RE2 > | regex_matcher_ |
| std::string | string_matcher_ |
| Type | type_ = Type::kExact |
Definition at line 32 of file matchers/matchers.h.
|
strong |
| Enumerator | |
|---|---|
| kExact | |
| kPrefix | |
| kSuffix | |
| kSafeRegex | |
| kContains | |
Definition at line 34 of file matchers/matchers.h.
|
default |
| grpc_core::StringMatcher::StringMatcher | ( | const StringMatcher & | other | ) |
Definition at line 56 of file matchers/matchers.cc.
|
noexcept |
Definition at line 76 of file matchers/matchers.cc.
|
private |
Definition at line 49 of file matchers/matchers.cc.
|
explicitprivate |
Definition at line 53 of file matchers/matchers.cc.
|
inline |
Definition at line 67 of file matchers/matchers.h.
|
static |
Definition at line 34 of file matchers/matchers.cc.
| bool grpc_core::StringMatcher::Match | ( | absl::string_view | value | ) | const |
Definition at line 107 of file matchers/matchers.cc.
| StringMatcher & grpc_core::StringMatcher::operator= | ( | const StringMatcher & | other | ) |
Definition at line 65 of file matchers/matchers.cc.
|
noexcept |
Definition at line 85 of file matchers/matchers.cc.
| bool grpc_core::StringMatcher::operator== | ( | const StringMatcher & | other | ) | const |
Definition at line 96 of file matchers/matchers.cc.
|
inline |
Definition at line 65 of file matchers/matchers.h.
|
inline |
Definition at line 62 of file matchers/matchers.h.
| std::string grpc_core::StringMatcher::ToString | ( | ) | const |
Definition at line 131 of file matchers/matchers.cc.
|
inline |
Definition at line 59 of file matchers/matchers.h.
Definition at line 76 of file matchers/matchers.h.
|
private |
Definition at line 75 of file matchers/matchers.h.
|
private |
Definition at line 74 of file matchers/matchers.h.
|
private |
Definition at line 73 of file matchers/matchers.h.