MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / startsWithOneOf

Method startsWithOneOf

externals/simplecpp/simplecpp.cpp:205–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205bool simplecpp::Token::startsWithOneOf(const char c[]) const
206{
207 return std::strchr(c, string[0]) != nullptr;
208}
209
210bool simplecpp::Token::endsWithOneOf(const char c[]) const
211{

Callers 2

combineOperatorsMethod · 0.80
constFoldComparisonMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected