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

Method substr

extern/re2/re2/stringpiece.cc:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22StringPiece StringPiece::substr(size_type pos, size_type n) const {
23 if (pos > size_) pos = size_;
24 if (n > size_ - pos) n = size_ - pos;
25 return StringPiece(data_ + pos, n);
26}
27
28StringPiece::size_type StringPiece::find(const StringPiece& s,
29 size_type pos) const {

Callers 4

truncFunction · 0.45
PossibleMatchRangeMethod · 0.45
RandomTextFunction · 0.45

Calls 1

StringPieceClass · 0.85

Tested by

no test coverage detected