MCPcopy Create free account
hub / github.com/RenderKit/embree / endsWith

Function endsWith

tutorials/common/tutorial/benchmark.cpp:65–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63CommandLine::CommandLinePool CommandLine::command_line_pool;
64
65bool endsWith(std::string const &str, std::string const &suffix)
66{
67 if (str.length() <= suffix.length())
68 return false;
69 return str.substr(str.length() - suffix.length(), str.length() - 1) == suffix;
70}
71
72bool startsWith(std::string const &str, std::string const &prefix)
73{

Callers 2

removeQuotesFunction · 0.70
mainMethod · 0.70

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected