MCPcopy Create free account
hub / github.com/BirolLab/abyss / endsWith

Function endsWith

Common/StringUtil.h:148–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146/** Return true if the second string is a suffix of the string s. */
147template <size_t N>
148bool endsWith(const std::string& s, const char (&suffix)[N])
149{
150 size_t n = N - 1;
151 return s.size() > n && equal(s.end() - n, s.end(), suffix);
152}
153
154/** Return true if the second string is a suffix of the string s. */
155static inline

Callers 8

TESTFunction · 0.85
zcatExecFunction · 0.85
isReadNamePairFunction · 0.85
connectPairFunction · 0.85
loadSequencesFunction · 0.85
replaceSuffixFunction · 0.85
isSingleEndFunction · 0.85
needsFlippingFunction · 0.85

Calls 3

sizeMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by 1

TESTFunction · 0.68