Home
last modified time | relevance | path

Searched refs:ref_map (Results 1 – 1 of 1) sorted by relevance

/external/regex-re2/re2/
Dregexp.cc62 static map<Regexp*, int> *ref_map; variable
71 if (ref_map != NULL) { in Ref()
72 r = (*ref_map)[this]; in Ref()
83 if (ref_map == NULL) { in Incref()
84 ref_map = new map<Regexp*, int>; in Incref()
88 (*ref_map)[this]++; in Incref()
91 (*ref_map)[this] = kMaxRef; in Incref()
107 int r = (*ref_map)[this] - 1; in Decref()
110 ref_map->erase(this); in Decref()
112 (*ref_map)[this] = r; in Decref()