MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / hasSuffix

Function hasSuffix

src/libfreenect2.cpp:1501–1508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1499}
1500
1501bool hasSuffix(const std::string& str, const std::string& suffix)
1502{
1503 if (str.length() < suffix.length())
1504 {
1505 return false;
1506 }
1507 return str.compare(str.length() - suffix.length(), suffix.length(), suffix) == 0;
1508}
1509
1510bool parseFrameFilename(const std::string& frame_filename, size_t timestamp_sequence[2])
1511{

Callers 2

parseFrameFilenameFunction · 0.70
runMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected