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

Method find

be/src/gutil/strings/stringpiece.cc:68–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68int StringPiece::find(StringPiece s, size_type pos) const {
69 if (length_ <= 0 || pos > static_cast<size_type>(length_)) {
70 if (length_ == 0 && pos == 0 && s.length_ == 0) return 0;
71 return npos;
72 }
73 const char *result = memmatch(ptr_ + pos, length_ - pos,
74 s.ptr_, s.length_);
75 return result ? result - ptr_ : npos;
76}
77
78int StringPiece::find(char c, size_type pos) const {
79 if (length_ <= 0 || pos >= static_cast<size_type>(length_)) {

Callers 15

leaveEdgeFunction · 0.45
updateRanksFunction · 0.45
DataTableFunction · 0.45
_fnScrollDrawFunction · 0.45
_fnCalculateColumnWidthsFunction · 0.45
CFunction · 0.45
QtFunction · 0.45
eeFunction · 0.45
datatables.min.jsFile · 0.45

Calls 1

memmatchFunction · 0.85

Tested by 15

getRowSizeMethod · 0.36
createOwnerPolicyMethod · 0.36
matchesMethod · 0.36
test_set_and_set_allMethod · 0.36
__init__Method · 0.36
count_valueMethod · 0.36
_get_table_locationMethod · 0.36
has_valueMethod · 0.36