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

#include <canonical_tables.h>

Public Member Functions

 RegExpKey (const String &pattern, RegExpFlags flags)
 
bool Equals (const RegExp &other) const
 
uword Hash () const
 

Public Attributes

const Stringpattern_
 
RegExpFlags flags_
 

Detailed Description

Definition at line 436 of file canonical_tables.h.

Constructor & Destructor Documentation

◆ RegExpKey()

dart::RegExpKey::RegExpKey ( const String pattern,
RegExpFlags  flags 
)
inline

Definition at line 438 of file canonical_tables.h.

439 : pattern_(pattern), flags_(flags) {}
const String & pattern_
FlutterSemanticsFlag flags

Member Function Documentation

◆ Equals()

bool dart::RegExpKey::Equals ( const RegExp other) const
inline

Definition at line 441 of file canonical_tables.h.

441 {
442 return pattern_.Equals(String::Handle(other.pattern())) &&
443 (flags_ == other.flags());
444 }
static Object & Handle()
Definition object.h:407
bool Equals(const String &str) const
Definition object.h:13311

◆ Hash()

uword dart::RegExpKey::Hash ( ) const
inline

Definition at line 445 of file canonical_tables.h.

445 {
446 // Must agree with RegExp::CanonicalizeHash.
448 }
int value() const
Definition object.h:12716
uword Hash() const
Definition object.h:10195
uint32_t CombineHashes(uint32_t hash, uint32_t other_hash)
Definition hash.h:12

Member Data Documentation

◆ flags_

RegExpFlags dart::RegExpKey::flags_

Definition at line 451 of file canonical_tables.h.

◆ pattern_

const String& dart::RegExpKey::pattern_

Definition at line 450 of file canonical_tables.h.


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