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

Function hasSuffix

tools/streamer_recorder/ProtonectSR.cpp:107–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105/// [logger]
106
107bool hasSuffix(const std::string& str, const std::string& suffix)
108{
109 if (str.length() < suffix.length())
110 {
111 return false;
112 }
113 return str.compare(str.length() - suffix.length(), suffix.length(), suffix) == 0;
114}
115
116/// [main]
117/**

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected