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

Method find

extern/re2/re2/stringpiece.cc:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28StringPiece::size_type StringPiece::find(const StringPiece& s,
29 size_type pos) const {
30 if (pos > size_) return npos;
31 const_pointer result = std::search(data_ + pos, data_ + size_,
32 s.data_, s.data_ + s.size_);
33 size_type xpos = result - data_;
34 return xpos + s.size_ <= size_ ? xpos : npos;
35}
36
37StringPiece::size_type StringPiece::find(char c, size_type pos) const {
38 if (size_ <= 0 || pos >= size_) return npos;

Callers 15

IsDefinedMethod · 0.45
AddMethod · 0.45
EditValueMethod · 0.45
EditNameMethod · 0.45
DeleteMethod · 0.45
GetValueMethod · 0.45
GetValueAndParamMethod · 0.45
ParseUnicodeGroupFunction · 0.45
ParsePerlFlagsMethod · 0.45
CachedRuneByteSuffixMethod · 0.45
PreVisitMethod · 0.45

Calls 2

searchFunction · 0.50
findFunction · 0.50

Tested by 3

EnginesFunction · 0.36
RunSearchMethod · 0.36
TESTFunction · 0.36