Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
dart::CanonicalRegExpTraits Class Reference

#include <canonical_tables.h>

Static Public Member Functions

static const char * Name ()
 
static bool ReportStats ()
 
static bool IsMatch (const Object &a, const Object &b)
 
static bool IsMatch (const RegExpKey &a, const Object &b)
 
static uword Hash (const Object &key)
 
static uword Hash (const RegExpKey &key)
 
static ObjectPtr NewKey (const RegExpKey &key)
 

Detailed Description

Definition at line 457 of file canonical_tables.h.

Member Function Documentation

◆ Hash() [1/2]

static uword dart::CanonicalRegExpTraits::Hash ( const Object key)
inlinestatic

Definition at line 467 of file canonical_tables.h.

467 {
468 return RegExp::Cast(key).CanonicalizeHash();
469 }

◆ Hash() [2/2]

static uword dart::CanonicalRegExpTraits::Hash ( const RegExpKey key)
inlinestatic

Definition at line 470 of file canonical_tables.h.

470{ return key.Hash(); }

◆ IsMatch() [1/2]

static bool dart::CanonicalRegExpTraits::IsMatch ( const Object a,
const Object b 
)
inlinestatic

Definition at line 461 of file canonical_tables.h.

461 {
462 return RegExp::Cast(a).CanonicalizeEquals(RegExp::Cast(b));
463 }
static bool b
struct MyStruct a[10]

◆ IsMatch() [2/2]

static bool dart::CanonicalRegExpTraits::IsMatch ( const RegExpKey a,
const Object b 
)
inlinestatic

Definition at line 464 of file canonical_tables.h.

464 {
465 return a.Equals(RegExp::Cast(b));
466 }

◆ Name()

static const char * dart::CanonicalRegExpTraits::Name ( )
inlinestatic

Definition at line 459 of file canonical_tables.h.

459{ return "CanonicalRegExpTraits"; }

◆ NewKey()

ObjectPtr dart::CanonicalRegExpTraits::NewKey ( const RegExpKey key)
static

Definition at line 122 of file canonical_tables.cc.

122 {
124 key.flags_);
125}
static RegExpPtr CreateRegExp(Thread *thread, const String &pattern, RegExpFlags flags)
Definition regexp.cc:5573
static Thread * Current()
Definition thread.h:361

◆ ReportStats()

static bool dart::CanonicalRegExpTraits::ReportStats ( )
inlinestatic

Definition at line 460 of file canonical_tables.h.

460{ return false; }

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