Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::CharacterSet Class Reference

#include <regexp_ast.h>

Inheritance diagram for dart::CharacterSet:
dart::ValueObject

Public Member Functions

 CharacterSet (uint16_t standard_set_type)
 
 CharacterSet (ZoneGrowableArray< CharacterRange > *ranges)
 
 CharacterSet (const CharacterSet &that)
 
ZoneGrowableArray< CharacterRange > * ranges ()
 
uint16_t standard_set_type () const
 
void set_standard_set_type (uint16_t special_set_type)
 
bool is_standard ()
 
void Canonicalize ()
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Detailed Description

Definition at line 128 of file regexp_ast.h.

Constructor & Destructor Documentation

◆ CharacterSet() [1/3]

dart::CharacterSet::CharacterSet ( uint16_t  standard_set_type)
inlineexplicit

Definition at line 130 of file regexp_ast.h.

131 : ranges_(nullptr), standard_set_type_(standard_set_type) {}
uint16_t standard_set_type() const
Definition: regexp_ast.h:139

◆ CharacterSet() [2/3]

dart::CharacterSet::CharacterSet ( ZoneGrowableArray< CharacterRange > *  ranges)
inlineexplicit

Definition at line 132 of file regexp_ast.h.

133 : ranges_(ranges), standard_set_type_(0) {}
ZoneGrowableArray< CharacterRange > * ranges()
Definition: regexp.cc:4785

◆ CharacterSet() [3/3]

dart::CharacterSet::CharacterSet ( const CharacterSet that)
inline

Definition at line 134 of file regexp_ast.h.

135 : ValueObject(),
136 ranges_(that.ranges_),
137 standard_set_type_(that.standard_set_type_) {}

Member Function Documentation

◆ Canonicalize()

void dart::CharacterSet::Canonicalize ( )

Definition at line 4869 of file regexp.cc.

4869 {
4870 // Special/default classes are always considered canonical. The result
4871 // of calling ranges() will be sorted.
4872 if (ranges_ == nullptr) return;
4874}
static void Canonicalize(ZoneGrowableArray< CharacterRange > *ranges)
Definition: regexp.cc:4876

◆ is_standard()

bool dart::CharacterSet::is_standard ( )
inline

Definition at line 143 of file regexp_ast.h.

143{ return standard_set_type_ != 0; }

◆ ranges()

ZoneGrowableArray< CharacterRange > * dart::CharacterSet::ranges ( )

Definition at line 4785 of file regexp.cc.

4785 {
4786 if (ranges_ == nullptr) {
4787 ranges_ = new ZoneGrowableArray<CharacterRange>(2);
4788 CharacterRange::AddClassEscape(standard_set_type_, ranges_);
4789 }
4790 return ranges_;
4791}
static void AddClassEscape(uint16_t type, ZoneGrowableArray< CharacterRange > *ranges)
Definition: regexp.cc:4651

◆ set_standard_set_type()

void dart::CharacterSet::set_standard_set_type ( uint16_t  special_set_type)
inline

Definition at line 140 of file regexp_ast.h.

140 {
141 standard_set_type_ = special_set_type;
142 }

◆ standard_set_type()

uint16_t dart::CharacterSet::standard_set_type ( ) const
inline

Definition at line 139 of file regexp_ast.h.

139{ return standard_set_type_; }

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