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

Function LookupGroup

extern/re2/re2/parse.cc:1622–1629  ·  view source on GitHub ↗

Look for a group with the given name.

Source from the content-addressed store, hash-verified

1620
1621// Look for a group with the given name.
1622static const UGroup* LookupGroup(const StringPiece& name,
1623 const UGroup *groups, int ngroups) {
1624 // Simple name lookup.
1625 for (int i = 0; i < ngroups; i++)
1626 if (StringPiece(groups[i].name) == name)
1627 return &groups[i];
1628 return NULL;
1629}
1630
1631// Look for a POSIX group with the given name (e.g., "[:^alpha:]")
1632static const UGroup* LookupPosixGroup(const StringPiece& name) {

Callers 3

LookupPosixGroupFunction · 0.85
LookupPerlGroupFunction · 0.85
LookupUnicodeGroupFunction · 0.85

Calls 1

StringPieceClass · 0.85

Tested by

no test coverage detected