1 Index: re2/prefilter.cc
2 ===================================================================
7 // Format a Info in string form.
8 string Prefilter::Info::ToString() {
10 - // Sometimes when iterating on children of a node,
11 - // some children might have NULL Info. Adding
12 - // the check here for NULL to take care of cases where
13 - // the caller is not checking.
23 VLOG(0) << "BuildInfo " << re->ToString()
24 - << ": " << info->ToString();
25 + << ": " << (info ? info->ToString() : "");
32 string Prefilter::DebugString() const {
38 LOG(DFATAL) << "Bad op in Prefilter::DebugString: " << op_;
40 for (int i = 0; i < subs_->size(); i++) {
43 - s += (*subs_)[i]->DebugString();
44 + Prefilter* sub = (*subs_)[i];
45 + s += sub ? sub->DebugString() : "<nil>";
50 for (int i = 0; i < subs_->size(); i++) {
53 - s += (*subs_)[i]->DebugString();
54 + Prefilter* sub = (*subs_)[i];
55 + s += sub ? sub->DebugString() : "<nil>";
60 ===================================================================
66 void CharClass::Delete() {
69 uint8 *data = reinterpret_cast<uint8*>(this);