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

Function HasPrefixString

be/src/gutil/strings/util.h:171–174  ·  view source on GitHub ↗

Returns whether str begins with prefix.

Source from the content-addressed store, hash-verified

169
170// Returns whether str begins with prefix.
171inline bool HasPrefixString(const StringPiece& str,
172 const StringPiece& prefix) {
173 return str.starts_with(prefix);
174}
175
176// Returns whether str ends with suffix.
177inline bool HasSuffixString(const StringPiece& str,

Callers 11

ConsumerThreadMethod · 0.85
ShouldInjectFunction · 0.85
WaitForBindFunction · 0.85
AssertLogCountMethod · 0.85
TEST_FFunction · 0.85
IsBeingDebuggedFunction · 0.85
TESTFunction · 0.85
DoUnixSocketTestMethod · 0.85
TEST_FFunction · 0.85
BuildDeltaMethod · 0.85

Calls 1

starts_withMethod · 0.80

Tested by 8

ConsumerThreadMethod · 0.68
WaitForBindFunction · 0.68
AssertLogCountMethod · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68
DoUnixSocketTestMethod · 0.68
TEST_FFunction · 0.68
BuildDeltaMethod · 0.68