GRPC C++  1.39.1
Public Types | Public Member Functions | Static Public Member Functions
grpc_core::StringMatcher Class Reference

#include <matchers.h>

Public Types

enum class  Type {
  kExact , kPrefix , kSuffix , kSafeRegex ,
  kContains
}
 

Public Member Functions

 StringMatcher ()=default
 
 StringMatcher (const StringMatcher &other)
 
StringMatcheroperator= (const StringMatcher &other)
 
 StringMatcher (StringMatcher &&other) noexcept
 
StringMatcheroperator= (StringMatcher &&other) noexcept
 
bool operator== (const StringMatcher &other) const
 
bool Match (absl::string_view value) const
 
std::string ToString () const
 
Type type () const
 
const std::string & string_matcher () const
 
RE2 * regex_matcher () const
 
bool case_sensitive () const
 

Static Public Member Functions

static absl::StatusOr< StringMatcherCreate (Type type, absl::string_view matcher, bool case_sensitive=true)
 

Member Enumeration Documentation

◆ Type

Enumerator
kExact 
kPrefix 
kSuffix 
kSafeRegex 
kContains 

Constructor & Destructor Documentation

◆ StringMatcher() [1/3]

grpc_core::StringMatcher::StringMatcher ( )
default

◆ StringMatcher() [2/3]

grpc_core::StringMatcher::StringMatcher ( const StringMatcher other)

◆ StringMatcher() [3/3]

grpc_core::StringMatcher::StringMatcher ( StringMatcher &&  other)
noexcept

Member Function Documentation

◆ case_sensitive()

bool grpc_core::StringMatcher::case_sensitive ( ) const
inline

◆ Create()

absl::StatusOr< StringMatcher > grpc_core::StringMatcher::Create ( Type  type,
absl::string_view  matcher,
bool  case_sensitive = true 
)
static

◆ Match()

bool grpc_core::StringMatcher::Match ( absl::string_view  value) const

◆ operator=() [1/2]

StringMatcher & grpc_core::StringMatcher::operator= ( const StringMatcher other)

◆ operator=() [2/2]

StringMatcher & grpc_core::StringMatcher::operator= ( StringMatcher &&  other)
noexcept

◆ operator==()

bool grpc_core::StringMatcher::operator== ( const StringMatcher other) const

◆ regex_matcher()

RE2* grpc_core::StringMatcher::regex_matcher ( ) const
inline

◆ string_matcher()

const std::string& grpc_core::StringMatcher::string_matcher ( ) const
inline

◆ ToString()

std::string grpc_core::StringMatcher::ToString ( ) const

◆ type()

Type grpc_core::StringMatcher::type ( ) const
inline

The documentation for this class was generated from the following files: