MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / QuickDestroy

Method QuickDestroy

extern/re2/re2/regexp.cc:69–75  ·  view source on GitHub ↗

If it's possible to destroy this regexp without recurring, do so and return true. Else return false.

Source from the content-addressed store, hash-verified

67// If it's possible to destroy this regexp without recurring,
68// do so and return true. Else return false.
69bool Regexp::QuickDestroy() {
70 if (nsub_ == 0) {
71 delete this;
72 return true;
73 }
74 return false;
75}
76
77// Lazily allocated.
78static Mutex* ref_mutex;

Callers 1

DestroyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected