Flutter Engine
 
Loading...
Searching...
No Matches
Catalog::Match Class Reference

#include <catalog.h>

Public Member Functions

std::string_view GetMatcher () const
 
std::string_view GetMatchedText () const
 

Static Public Member Functions

static Match MakeWithString (std::string_view matcher, std::string matched_text)
 
static Match MakeWithView (std::string_view matcher, std::string_view matched_text)
 

Detailed Description

Definition at line 30 of file catalog.h.

Member Function Documentation

◆ GetMatchedText()

std::string_view Catalog::Match::GetMatchedText ( ) const
inline

Definition at line 43 of file catalog.h.

43 {
44 if (matched_text_.empty()) {
45 return owned_matched_text_;
46 } else {
47 return matched_text_;
48 }
49 }

◆ GetMatcher()

std::string_view Catalog::Match::GetMatcher ( ) const
inline

Definition at line 42 of file catalog.h.

42{ return matcher_; }

◆ MakeWithString()

static Match Catalog::Match::MakeWithString ( std::string_view  matcher,
std::string  matched_text 
)
inlinestatic

Definition at line 32 of file catalog.h.

33 {
34 return Match(matcher, std::move(matched_text));
35 }

◆ MakeWithView()

static Match Catalog::Match::MakeWithView ( std::string_view  matcher,
std::string_view  matched_text 
)
inlinestatic

Definition at line 37 of file catalog.h.

38 {
39 return Match(matcher, matched_text);
40 }

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