MCPcopy Create free account
hub / github.com/Samsung/rlottie / jsonFiles

Function jsonFiles

example/lottieperf.cpp:17–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17static std::vector<std::string>
18jsonFiles(const std::string &dirName)
19{
20 DIR *d;
21 struct dirent *dir;
22 std::vector<std::string> result;
23 d = opendir(dirName.c_str());
24 if (d) {
25 while ((dir = readdir(d)) != NULL) {
26 if (isJsonFile(dir->d_name))
27 result.push_back(dirName + dir->d_name);
28 }
29 closedir(d);
30 }
31
32 std::sort(result.begin(), result.end(), [](auto & a, auto &b){return a < b;});
33
34 return result;
35}
36
37class Renderer
38{

Callers 4

showMethod · 0.85
PerfTestMethod · 0.85
UxSampleTestMethod · 0.85
elm_mainFunction · 0.85

Calls 3

isJsonFileFunction · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by 2

showMethod · 0.68
UxSampleTestMethod · 0.68