#include <regexp.h>
Definition at line 92 of file regexp.h.
◆ OutSet()
Definition at line 94 of file regexp.h.
94: first_(0), remaining_(nullptr), successors_(nullptr) {}
◆ Extend()
OutSet * dart::OutSet::Extend |
( |
unsigned |
value, |
|
|
Zone * |
zone |
|
) |
| |
Definition at line 4947 of file regexp.cc.
4947 {
4949 if (successors() != nullptr) {
4950 for (
int i = 0;
i < successors()->length();
i++) {
4951 OutSet* successor = successors()->At(
i);
4952 if (successor->Get(
value))
return successor;
4953 }
4954 } else {
4955 successors_ = new (zone) ZoneGrowableArray<OutSet*>(2);
4956 }
4959 successors()->Add(
result);
4961}
bool Get(unsigned value) const
◆ Get()
bool dart::OutSet::Get |
( |
unsigned |
value | ) |
const |
Definition at line 4977 of file regexp.cc.
4977 {
4979 return (first_ & (1 <<
value)) != 0;
4980 } else if (remaining_ == nullptr) {
4981 return false;
4982 } else {
4984 }
4985}
static constexpr unsigned kFirstLimit
static bool ArrayContains(ZoneGrowableArray< unsigned > *array, unsigned value)
◆ Trace
◆ kFirstLimit
constexpr unsigned dart::OutSet::kFirstLimit = 32 |
|
staticconstexpr |
The documentation for this class was generated from the following files:
- third_party/dart-lang/sdk/runtime/vm/regexp.h
- third_party/dart-lang/sdk/runtime/vm/regexp.cc