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

Method substr

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

Source from the content-addressed store, hash-verified

216}
217
218StringPiece StringPiece::substr(size_type pos, size_type n) const {
219 if (pos > length_) pos = length_;
220 if (n > length_ - pos) n = length_ - pos;
221 return StringPiece(ptr_ + pos, n);
222}
223
224const StringPiece::size_type StringPiece::npos = size_type(-1);

Callers 15

Chart-2.9.4.min.jsFile · 0.80
qFunction · 0.80
NFunction · 0.80
cFunction · 0.80
_fnAddOptionsHtmlFunction · 0.80
_tFunction · 0.80
_fnAddOptionsHtmlFunction · 0.80
_tFunction · 0.80
c3.v7.min.jsFile · 0.80
cFunction · 0.80
dFunction · 0.80
sFunction · 0.80

Calls 1

StringPieceClass · 0.70

Tested by 10

ReadAndCompareMethod · 0.64
TestDecimalResultTypeMethod · 0.64
TEST_PFunction · 0.64
assertQueryStateFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
GetProcessVMSizeMethod · 0.64
curl_status_codeFunction · 0.64
tokenMethod · 0.64
auth_mechMethod · 0.64