MCPcopy Create free account
hub / github.com/ablab/spades / find_last_not_of

Method find_last_not_of

ext/src/llvm/StringRef.cpp:291–296  ·  view source on GitHub ↗

find_last_not_of - Find the last character in the string that is not \arg C, or npos if not found.

Source from the content-addressed store, hash-verified

289/// find_last_not_of - Find the last character in the string that is not
290/// \arg C, or npos if not found.
291StringRef::size_type StringRef::find_last_not_of(char C, size_t From) const {
292 for (size_type i = std::min(From, Length) - 1, e = -1; i != e; --i)
293 if (Data[i] != C)
294 return i;
295 return npos;
296}
297
298/// find_last_not_of - Find the last character in the string that is not in
299/// \arg Chars, or npos if not found.

Callers 1

printMethod · 0.80

Calls 4

minFunction · 0.50
sizeMethod · 0.45
setMethod · 0.45
testMethod · 0.45

Tested by

no test coverage detected