MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / substr

Method substr

Bcore/src/main/cpp/Dobby/tests/catch.hpp:9615–9620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9613 }
9614}
9615auto StringRef::substr(size_type start, size_type size) const noexcept -> StringRef {
9616 if (start < m_size)
9617 return StringRef(m_start + start, size);
9618 else
9619 return StringRef();
9620}
9621auto StringRef::operator==(StringRef const &other) const noexcept -> bool {
9622 return size() == other.size() && (std::strncmp(m_start, other.m_start, size()) == 0);
9623}

Callers 15

GetMultiDexSuffixMethod · 0.45
SplitFunction · 0.45
TrimFunction · 0.45
registerTestMethodsFunction · 0.45
addPatternMethod · 0.45
operator*Method · 0.45
loadBufferMethod · 0.45
setMethod · 0.45
normaliseOptFunction · 0.45
trimFunction · 0.45
replaceInPlaceFunction · 0.45
expandAliasesMethod · 0.45

Calls 1

StringRefClass · 0.85

Tested by

no test coverage detected