MCPcopy Create free account
hub / github.com/apache/impala / Find

Method Find

be/src/gutil/strings/split.h:401–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399 LimitImpl(Delimiter delimiter, int limit)
400 : delimiter_(std::move(delimiter)), limit_(limit), count_(0) {}
401 StringPiece Find(StringPiece text) {
402 if (count_++ == limit_) {
403 return StringPiece(text.end(), 0); // No more matches.
404 }
405 return delimiter_.Find(text);
406 }
407
408 private:
409 Delimiter delimiter_;

Callers

nothing calls this directly

Calls 2

StringPieceClass · 0.70
endMethod · 0.45

Tested by

no test coverage detected